You select the area to change — a person in the background, a shirt color, a dull sky — and describe what should go there, and the model fills it in to match the lighting and perspective. Outpainting can, for example, turn a portrait image into a landscape one.
You’ll find it in Adobe Firefly (Generative Fill in Photoshop), Canva, Photoroom and ChatGPT. The prompt library has a “Photo editing” section with ready-made prompts for it.