# Image generation

> Image generation in SecondStack creates and edits pictures in a chat: Quick edit, Annotate, Edit in composer, the thread's Gallery tab and images kept in Files.

Canonical: <https://docs.secondstack.ai/chat-app/image-generation/>
Updated: 2026-11-06
Checked against: v3.7.2

---

Image generation in SecondStack creates and edits pictures in a chat: pick an image model, describe the picture, then edit it with Quick edit, Annotate or Edit in composer. A thread's Gallery tab shows its images, and Library → Files keeps them all. Aster (Personal Assistant in the app) generates images too, through its image generation Skill.

**Labels in the app**

| Our word | Label in the app |
|---|---|
| the image models, in the picker | IMAGE GENERATION |
| a thread's images | Gallery |
| all your images | Library → Files |
| Aster, the personal agent | Personal Assistant |

Video: [Image Generation in SecondStack AI](https://docs.secondstack.ai/videos/image-generation/) (4:40)

## How you generate an image

An image starts with an image model from the picker and a prompt, and the composer shows the settings that model supports:

1. Open the model picker and choose a model under **IMAGE GENERATION**. The composer gains an **Image generation settings** popover.
2. Set the options the model offers. Depending on the model these are **Aspect Ratio**, **Resolution**, **Quality** (Auto, Low, Medium, High, Standard or HD), **Background** (Auto, Opaque or Transparent) and **Batch Count**, the number of images generated in parallel, up to 4.
3. Describe the picture and send. A batch runs as separate requests, so when one of them fails you still get the others, with a note of how many failed.

Each model shows only the options it supports, as your administrator configured it in ControlTower. Quality and Background apply to generation only: provider edit endpoints do not take them, so an edit ignores both.

## Three ways to edit an image

Every generated image offers an **Edit image** button with three modes, and each suits a different kind of change:

- **Quick edit** opens a one-line field on the image, **Describe your edit...**, for a change you can say in a sentence without leaving the thread.
- **Annotate** opens the editor **Annotate image**, where you mark the areas to change and attach an instruction to each mark.
- **Edit in composer** sends the image and its generation prompt to the composer, so you describe the change as a full message and add other context. When the composer already holds a draft, the app asks **Replace current draft?** first.

Dragging an image into the composer does the same as Edit in composer.

## How you annotate an image

The Annotate image editor turns marks on the picture into numbered instructions, so an edit lands where you pointed:

1. Draw with **Pen**, **Arrow**, **Rectangle** or **Pin**, and correct with **Eraser**, **Undo**, **Redo** and **Clear**.
2. Write an instruction for each pin under **Instructions**, where every pin has its own field, **Describe the edit for this pin**.
3. Add guidance for the whole picture under **Additional instructions**, pick an image model in the editor's own selector, and choose **Send**.

The Chat App sends the original and the annotated copy together, with a note that tells the model which marks are yours, so the edit stays faithful to the source and the marks never appear in the result. Leaving the editor with marks asks **Discard annotations?** before it drops them.

## Where you find your images

Images live in two places: the thread that made them, and your Library for every thread at once.

- A thread with an image model gets two tabs, **Thread** and **Gallery**. Gallery replaces the transcript with a grid of that thread's images, in **Grid layout** or **Free layout**. A message that produced several images offers **Download 4 images** for the batch, saved one by one. **Delete image** removes one image and keeps the message and its other images in the conversation.
- **Library → Files** lists files from your chats and personal Collections, filtered with **All**, **Images** or **Files**, in **Grid** or **List** view. Each entry says whether it was **Generated** or **Uploaded** and in which thread, with **Open**, **Download**, **Copy image** and **Go to thread**. Editing stays in the thread, because an edit needs the thread's context.

Images generated in a temporary chat are deleted when the chat ends and never reach the Library.

Every image request goes through [SecondGate](/gateway/) and counts against the same [budgets](/controltower/budgets-and-spend/) as a chat.

## What image generation does not do

- An edit does not apply Quality or Background. Both settings belong to generation only.
- A batch does not fall back to another model. The four parallel requests go to the model you picked.
- The Library does not edit images. You open the thread and edit there.
- The Chat App does not keep images from a temporary chat, in the thread or in the Library.
- Video and audio generation are not part of v3.7.2.

## Related

- [Chat App](/chat-app/)
- [Collections](/chat-app/collections/)
- [Custom Prompts](/chat-app/custom-prompts/)
- [Budgets and spend](/controltower/budgets-and-spend/)
- [Your first day](/getting-started/first-steps/)
