Refine a layer with the AI chat
Generate an image as a new layer, then keep refining it, or any other layer, in a chat. Every result is a version you can go back to, and Undo always works.
The AI chat panel lets you describe a picture, get it as a new layer and then keep asking for changes, such as "make the sky warmer". Each layer has its own chat. The image model is FLUX.2 [klein] on Cloudflare Workers AI. It is optional, needs no account and uses the same free daily allowance as the AI assistant. Nothing is sent until you confirm.
#Open the chat
There are three ways to open it:
- Click the AI chat button in the More panels strip of the sidebar. The chat opens in its own column beside the canvas, and the panel you had open stays open. On a phone, the button is in the properties sheet at the bottom of the screen.
- Click the sparkle button on any row of the Layers panel. It opens the chat of that layer, and starts one if the layer has none yet.
- Select a layer that was made or changed with AI. Its chat opens by itself. To stop this, untick Open AI chat when selecting AI layers at the bottom of the panel.
Layers that contain AI content show a small AI badge in the Layers panel. Point at the badge to see which model made them.
#Arrange the chat
- On a wide screen, the chat is a column between the canvas and the sidebar. Drag its edge next to the canvas to make it wider or narrower, or focus that edge and use the arrow keys. Wide chat widens it for long conversations. The size is remembered on this device.
- In a narrower window, the chat opens over the sidebar.
- On a phone, the chat is a sheet that covers half of the screen, and almost all of it while you type. Tap the arrow at its top, or press Escape, to make it smaller.
- When you scroll up to read older messages, the chat stays where you are. Jump to latest takes you back to the newest message.
- The message box grows as you type, and a counter shows how many of the 1,000 characters you have used.
- Close the chat with the × button.
#Create a new image
- Open the chat with no AI layer selected. The panel shows AI chat: new image.
- Describe the picture, for example "a lighthouse on a rocky coast at sunset, watercolor". English descriptions usually give the best results.
- Click Send, or press Enter. Press Shift+Enter for a new line.
- Check what will be sent and click Send on the sheet.
The image is added as a new layer, centred and scaled down to fit the canvas if needed, and its chat opens with version 1.
#Refine a layer
- Select the layer and open its chat.
- Describe the change, for example "add snow on the roofs".
- Click Send and confirm.
The result replaces the pixels of the layer, and the chat keeps it as a new version. The layer keeps its position, size, opacity, blend mode and mask. Undo brings the previous pixels back.
Each turn starts from the layer as it is now. If you painted, erased or filtered the layer after the last AI version, your edits are sent with the next request and kept. A text, shape or smart object layer becomes a pixel layer when a result is applied; adjustment layers have no pixels to send.
#Versions, Edit from and Compare
The strip at the top of the chat shows every version as "2 / 4". Click one to put it back on the layer; this is one step you can undo. Under each result:
| Button | What it does |
|---|---|
| Use this version | Puts this version back on the layer. |
| Edit from here | Makes the next request edit this version instead of the layer as it is now. |
| Compare | Shows this version over the one it was made from, with a slider. |
| Copy prompt | Copies the prompt that was sent. |
The Edit from list above the text box offers the same choice: The layer now (with your edits), Original (version 1) or any later version.
#Transparent background
Image models cannot draw transparency. When your request asks for it, for example "a red apple on a transparent background", the Transparent background (removed on this device) box ticks itself. PixelForge then removes the background of the result in your browser with the same on-device model as Remove Background. This step sends nothing. You can tick or untick the box yourself.
#Variants, references and snippets
- Variants: in the Images menu next to the text box, choose 2 variants, 3 variants or 4 variants to get several takes of the same request at once. Each image costs the same as one request, and the price line shows the total credits and Neurons before you send. The first variant is applied; the others are kept as versions of the same message. Use Use this version to switch, or Keep as layer to add one as a new layer next to it.
- References: to keep the same character, face and design in a new pose, pick up to three layers in the References menu. Reduced copies (512 px) of those layers are sent with your request, after you agree to it on the consent sheet.
- Snippets: under Snippets, save the text in the box, or the part you selected, as a reusable phrase, such as a style ending. Save for this project keeps it in this project's file; Save on this device keeps it for every document. Saved snippets appear above the text box: click one to insert it where the cursor is.
The line under the chat's status shows today's images and Neurons for everyone, used and left, and when they reset in your own time. If a request would go over what is left, the chat says so before sending.
#What is sent
Before the first request, a sheet lists exactly what leaves your device and shows the exact image:
| Request | What is sent to Cloudflare Workers AI |
|---|---|
| New image | Your description only. |
| Refine | Your request, up to six earlier messages of this chat as text, and a reduced JPEG copy (512 px) of the layer or of the version chosen in Edit from, without file name or metadata. |
Consent is remembered separately for each provider and kind of data: agreeing to send text does not cover images. Each request uses about 2 credits of the free daily allowance. PixelForge's AI service does not store your text or images, and Cloudflare does not keep them or train on them. They may be processed outside the EU, including in the United States. See Privacy and your data.
#Where the chat is kept
The chat stays on your device. It is saved with your draft and in .pixelforge project files. It is not included in cloud saves, exported images or PSD files. Duplicating a layer copies its chat. Merging or flattening layers keeps no chat.
Exported PNG, JPEG and WebP files that contain AI content are labelled as such in their metadata (IPTC digital source type), so other apps and websites can tell. The label depends on the visible layers when you export, never on the chat.
#Limits and messages
- A chat keeps up to 60 messages and 24 versions; the oldest go first.
- A request takes up to about 20 seconds. Click Stop to cancel; nothing is applied.
- If the service is paused or a limit is reached, the panel says so. Local editing keeps working.
#If a prompt is declined
Cloudflare's safety filter sometimes declines a harmless request because of a single word. The panel then says so and offers a few tips:
- Describe clothing by material, cut and colour, such as "buttoned brown leather waistcoat", rather than by garment names that can read as suggestive.
- Keep it non-explicit: describe the pose, setting, lighting and art style rather than the body.
Click Edit prompt to put your text back in the message box, then reword it. Declined prompts don't use your daily AI credits. Content the filter doesn't allow can't be made with any wording, and repeatedly sending declined prompts can pause AI requests from your network for a while.
- Results can be inaccurate or unexpected; review them before use.
Still stuck? See Troubleshooting or report a problem.