How to use generative fill online
By Pixuvia · · Updated

Generative fill repaints a selected part of a photo from a short text description, so you can add an object, replace one or change a surface while the rest of the image stays as it was. You select the area, type what should be there and an AI model paints it to match the light, perspective and texture around it.
You don't need Photoshop for it. This guide uses Generative Fill in the Pixuvia Editor, a layered editor that runs in the browser and uses Photoshop's menu names. Most of what follows is about the selection, because the selection decides more of the result than the prompt does.
On this page
- What does generative fill do in a layered editor?
- Why does the selection change the result?
- How big should the selection be?
- How to use Generative Fill, step by step
- What should you type, and can you leave it empty?
- What is the prompt box in the bar under the selection?
- How do you work with the result layer?
- When is Content-Aware Fill the better choice?
- Questions
- Sources
What does generative fill do in a layered editor?
Generative Fill sends the model the visible image around your selection and asks it to paint only inside it. The answer comes back cut to the selection's shape and lands on a new layer named Generative Fill, directly above the layer you were on. Your photo's own pixels are never painted over.
That new layer is what makes it safe to experiment. Hide it and the original is there. Delete it and nothing happened. Keep two attempts on two layers and switch between them. The whole run is also one history step, so Ctrl+Z (Cmd+Z on a Mac) takes it back.
Why does the selection change the result?
The model can only paint inside the selection, and it fills the shape you give it. A long, low lasso over water suggests a boat lying on it. A tall, narrow one suggests a person or a post. A square box gives the model no hint at all, so the result often ends up square-ish too.
Whatever you leave outside the selection stays exactly as it was, and the model treats it as a fixed fact to blend into. Whatever you include gets replaced. So selecting a whole jacket swaps the jacket, while selecting only its front panel keeps the sleeves and collar and asks the model to match them.


How big should the selection be?
Make it a little larger than the thing you want, and larger still in the direction its shadow or reflection would fall. A canoe on a lake needs room below it for the reflection; a vase on a table needs room for the shadow on the side away from the light. If the selection hugs the outline exactly, the model has nowhere to put the shadow, and the object looks pasted on.
Too loose is also a problem. Every pixel inside the selection gets repainted, so a selection that takes in half the shoreline asks for a new shoreline too. Draw around what should change, plus that margin, and no more.
A few rules that follow from how the Editor sends the job:
- The model sees a band of surroundings. Besides the selection, the Editor sends the image around it, half the selection's longest side on every side (at least 64 pixels). A tiny selection therefore gets little context. If a small fill looks out of place, select a slightly larger area.
- Very large selections lose detail. The area sent, selection plus surroundings, is painted at up to 2048 pixels on its long side. Anything bigger is painted smaller and scaled up to fit, so it can look softer than the photo around it. Two smaller fills keep more detail than one huge one.
- Feather sets the edge. The result is cut by the selection's own edge. A Feather of a few pixels in the selection tool's options bar gives a soft seam that blends; at 0 px the edge follows the selection exactly.
- Hidden layers are left out. Generative Fill reads every visible layer, not just the current one. Hide a layer you don't want copied into the result.
How to use Generative Fill, step by step
- Open your photo in the Editor: drop it on the start screen or choose File > Open….
- Press L for the Lasso and draw the shape the new content should take, a little larger than the thing itself. For a plain box, press M for the Rectangular Marquee.
- Choose Edit > Generative Fill…, or click ⋯ in the bar under the selection and pick Generative Fill…
- Under What goes there, describe what should appear in the selection: "a red canoe, side view", not "add a canoe". The OK button waits for at least 3 characters.
- Under Model, pick Fast (FLUX.1 Fill) for a quick try or Pro (FLUX.1 Fill Pro) for finer detail. Each row shows the credits it uses.
- Click OK. Signed out, the button reads Sign in instead. The selection pulses while the model works, which can take up to a minute.
- Check the new layer named Generative Fill above the one you were on. Keep it, mask it, lower its opacity or delete it and try another selection.

What should you type, and can you leave it empty?
Describe what should be in the selected area as if it were already there: the thing, its color and material, and how it sits. "A red canoe, side view" works better than "add a canoe here", because the model paints a description and has no use for the instruction. Leave out what is outside the selection; the surrounding image already tells the model about the light and the scene.
The box can't be left empty: Generative Fill needs at least 3 characters. That is deliberate, since it is the tool for putting something new in. To fill a selection with more of its surroundings instead, which is how you remove things, use one of these:
- Erase with AI… (Edit menu, or the labeled button in the bar under a selection) removes what the selection covers with no prompt at all, also on a new layer.
- Content-Aware Fill (Edit menu) fills the selection from the pixels around it with no AI model and no credits. More on it below.
The guide to removing an object from a photo covers removal in depth, and the object remover page does it in one step.
What is the prompt box in the bar under the selection?
As soon as you make a selection, a bar appears under it with its own What goes there box, a model chip, a quality chip and Generate. That box is Edit by Prompt, a different tool from Generative Fill: it uses the image generator's models (Seedream 5 Flash and others), looks at the whole current layer rather than the area around the selection, and is good at changes that depend on the full picture, like matching a season or a style.

Its result also lands on a new layer, named "AI Edit:" and the first words of your prompt, but that layer covers the whole layer you edited and carries a layer mask made from your selection. So you can paint the mask white to let more of the edit through, or black to pull it back. Generative Fill's layer instead holds only the pixels inside the selection. The guide to editing a photo with an AI prompt covers Edit by Prompt and its models; the AI photo editor page sends a photo straight to it in the Studio.
How do you work with the result layer?
Judge the result at 100% zoom, not fitted to the screen: seams and soft patches show up at full size. Then treat the Generative Fill layer like any other.
- Compare. Click the eye next to the layer in the Layers panel to hide and show it.
- Soften the seam. Click Add Layer Mask at the bottom of the Layers panel and paint black with a soft brush where the edge looks hard. The layer mask tutorial shows how.
- Tone it down. Lower the layer's Opacity in the Layers panel when the new object is too bright or too saturated next to the photo.
- Try again. Hide or delete the layer, adjust the selection and run it again. Each attempt is a new run and uses credits; the earlier layer stays until you delete it.
- Keep it editable. Export as PSD to keep the layer separate for later; PNG and JPG flatten it into the image.
One thing to know: if you change the document's size or delete the layer you started from while a run is working, the Editor drops the result and says so, rather than placing it somewhere it no longer fits.
When is Content-Aware Fill the better choice?
Content-Aware Fill is the standard method: it copies texture from around the selection into it, uses no credits. Reach for it when the area should become more of what surrounds it, such as a cable across the sky, a spot on a wall or a chain on wooden boards. It struggles where it would have to invent something, like a face, lettering or an object that isn't anywhere else in the photo. That is the job of Generative Fill.
It works differently on one point: Content-Aware Fill paints straight into the current layer and samples only that layer. To keep the original untouched, copy the layer first. Choose Select > All (Ctrl+A), press Ctrl+J (Cmd on a Mac) for a copy on a new layer, deselect, select the area and choose Edit > Content-Aware Fill.


A good order for a cluttered photo: remove things with Content-Aware Fill first, then add what is missing with Generative Fill. For more room around the photo rather than new things inside it, Image > Generative Expand… grows the canvas instead; the guide to extending a photo's background covers it.
Questions
Why is Generative Fill grayed out?
It needs a pixel selection with something in it, and only one AI run can work at a time. Make a selection with any selection tool, wait for a running job to finish, and the menu item turns on.
Do I lose credits when a run fails?
No. If the model refuses the request or the run fails, the credits for it are returned. A result you simply don't like counts as a run, so test ideas on Fast first.
Can I use generative fill on a PSD file?
Yes. Open the PSD in the Pixuvia Editor, select an area and run Generative Fill. It reads every visible layer, adds its result as a new layer, and File > Export As > PSD saves that layer with the rest.