Learn

Getting started with AI Gen

Six short lessons, about ten minutes in all. Every picture on this page was made in LayerShop with local models, and the prompts shown are the ones that were used.

1. The panel

Open it with Window › AI Gen. It docks as a tab next to Properties and Adjustments. If local AI is not set up yet, the panel offers to do it: see the setup wizard.

LayerShop with a meadow open and a mask painted in red where a stag should go; the AI Gen panel is at the top right, on Edit, Change, with the Layers panel below it

The panel has two tabs of its own, and they say what you are there to do:

  • Create makes a new image from a prompt.
  • Edit changes a picture that is there. The row under the tabs picks the task: Change or Restyle.

Everything else is the same on both: choose a model, write a prompt, press Generate or Ctrl + Enter. Esc stops a running generation. The gear next to the model opens that model's settings, which you rarely need.

2. Create an image

  1. Make a new document, File › New. The example is 1536 × 1024.
  2. In AI Gen choose Create and pick a model. Qwen Image 2.1 is a good first choice.
  3. Describe the picture, the way you would describe a photograph to someone who cannot see it.
  4. Press Generate.
An alpine meadow at sunrise, wildflowers and tall grass in the foreground, a still lake in the middle distance, dark pine forest and snow-capped mountains behind, low golden light, thin morning mist, landscape photograph, 35mm, natural colours
The generated meadow at sunrise[qwen_image_2.1] An alpine meadow at sunrise…

Size and shape

The selection decides the shape of the result; with no selection it is the whole canvas. Models are trained near one megapixel, so LayerShop renders at about that size in your selection's proportions and fits the result to it. The line under the Generate button tells you what will be asked:

Canvas 1536 × 1024 px → 1216 × 832 px

To generate into part of the canvas, drag a marquee first. The picture is made for that rectangle, and the selection becomes the new layer's mask.

3. Paint where it goes

This is the one most people came for: put something into a picture so that it looks as if it was always there. You show where with a brush, and say what.

  1. Click the layer that holds the picture. It must be a pixel layer.
  2. Choose Edit › Change and a model. The stag below was made with Qwen Image 2.1; FLUX.2 Klein 9B fills well too.
  3. Pick the brush under the prompt and paint roughly where the new thing goes, a little larger than it. The painted part shows as a red tint. Any selection tool works as well.
  4. Say what belongs there. A short line is enough.
  5. Press Generate.
The AI Gen panel on Edit, Change: Qwen Image 2.1, the meadow layer as the source, the prompt 'majestic stag here looking directly into the camera.', the mask tools with the brush at 79 px, and Generate
majestic stag here looking directly into the camera.
Before: the meadow with a mask painted in red where the stag should go
After: a red deer stag standing in the grass where the mask was painted, looking at the camera
Painted maskAfter

The model is shown the picture around the painted area as well as the area itself, which is why the stag is lit like the grass around it. The result arrives as a new layer whose mask is what you painted, and the soft edge of the brush means the join does not show.

The mask tools

ButtonWhat it does
BrushPaint what to repaint. It shows as a red tint over the picture.
EraserPaint out what should stay.
− size +The brush size, for both.
Rectangle, EllipseDrag on the picture instead of painting. Shift adds to the selection, Alt takes away.
BinClears the mask.

Two settings worth knowing

Both are under Advanced, above Generate.

  • Context is how much of the picture around the selection the model sees, 25% by default. More helps it match the surroundings. Less keeps a subject from growing larger than the selection and being cut off by it.
  • Strength is how far the result may depart from what is there. 100% paints the selection afresh. Around 50 to 70% keeps the shapes and colours and changes the detail.

4. Change by instruction

Edit models work the other way round: you tell them what to change. The same Edit › Change task does this when the chosen model is an edit model, and the hint in the prompt box becomes "Say what to change…".

Change the season to deep winter: fresh snow covers the meadow and the pine trees, the lake is frozen, cold blue dawn light. Keep the stag and the composition exactly as they are.
Before: the stag in the summer meadow
After: the same scene in winter, the stag unchanged
BeforeAfter
  • Source is the picture to change: a layer, this document with all its layers, or another open document.
  • A selection scopes the edit. Only the area around the selection is sent to the model and only the selection comes back, so the rest of the picture stays exactly as it was. Edit models redraw everything they are given and it drifts slightly; the selection is how you prevent that. Feather it for a soft join.
  • Refs are other pictures the instruction can use. Press + beside Refs, pick a layer, the document, or a layer of another open document, and give it a name. Then type @ and the name in the prompt: "put @Scarf around her neck". Up to three, saved with the document in PSD and .pcraft files. See it on the home page.
  • Quality, under Advanced: Draft runs about a quarter of the steps to try an idea in seconds, Standard is the model's normal setting, Detail adds a fifth more for hands and fine detail.

Some models do both. FLUX.2 Klein 9B follows an instruction by default; to have it fill the selection instead, set Advanced › Method to Fill the selection.

5. Restyle

Edit › Restyle redraws a picture following the prompt. It starts from your picture instead of from nothing, so the composition carries over.

a watercolour painting of a red deer stag in an alpine meadow, lake, pine forest and mountains behind, loose wet washes of colour, soft bleeding edges, white paper showing through, hand-painted illustration
Before: the photograph
After: a watercolour at 45% strength, same composition
PhotoStrength 45%

Strength is the one control that matters. At 45% the stag, the lake, the treeline and the peaks stay where they were. Raise it and the model takes more liberties. Here is the same prompt and seed at 60%: still a watercolour of the meadow, but with a second stag and the scene rearranged.

The same restyle at 60% strength: two stags, larger, and the scene rearranged[krea2_turbo] a watercolour painting… · strength 60%

How far a given strength goes depends on the picture and the model, so it pays to try two values, and two models. A small subject drifts sooner than a large one. Fast models with very few steps move in coarse jumps: 60% of four steps is two.

6. Working with the layers

Each generation is a new layer above the one you worked on, named after the model and the prompt. The picture underneath is not changed.

The Layers panel: the watercolour and winter edits hidden at the top, the stag layer selected with the painted mask beside it, then the meadow and the Background, each generated layer named after its model and prompt
  • Compare by clicking the layer's eye.
  • Blend the edge by painting on the layer's mask with a soft brush.
  • Try again with Ctrl + Z and Generate, or keep both layers and choose later.
  • Reuse a prompt. Select a generated layer and click Load from layer, the button beside the model, to put the prompt it was made with back in the box and choose the model it was made with again. For a layer made with regions, its boxes come back too. The tab you are on stays as it is; to try the same prompt on another model, choose that model afterwards. Each generated layer keeps its model, prompt and settings after saving and reopening, in PSD, PSB and layered TIFF files. Flat formats such as PNG and JPEG do not keep them.

Tips

  • Lock the seed (Advanced › Seed) when you are refining a prompt. The next image then differs only by what you changed.
  • Feather selections by a few pixels before filling or editing. Hard edges are where joins show.
  • Describe light and lens, not only the subject. "Low golden light, 35mm" does more than "beautiful".
  • For text in an image, use Ming Image and put the words you want in quotes.
  • The first image after starting is slow, because the model has to load from disk. The ones after it are fast.
  • Running out of graphics memory? Lower Render size (MP) in the model's settings, or pick a smaller model.

What is not there yet

This is a preview, and a few one-click tasks you might expect under Edit are still on the list. The first two already work in a few steps, as the home page shows:

  • Expand in one click. Today: make room with Image › Canvas Size, select the new transparent edge, and fill it.
  • Remove in one click. Today: select the object and fill the selection ("empty grass, no animal"), or tell an edit model "remove the white van".
  • Upscale and sharpening.

Anything else can be done with a custom workflow. If one of these matters to your work, say so.