# Two image generation paths

> Cube Agent 2.4.1 Release (Build 2004105) User Guide.
> Category: Chat. Content baseline: 2026-12-05.
> Web page: https://cubeagent.app/en/docs/image_paths/

## Cube Agent offers multiple image generation paths

- **In-chat image generation**: Turn on **Generate image** in **Tools**, and the assistant calls your image model automatically whenever needed, showing results directly inside the chat. To edit an image, simply say “Change this to a night scene.” Uses the model set in **Default Models → Image Generation** and can be triggered by any chat model that supports tool calling.
- **Image Generation Workspace**: The standalone text-to-image, image-to-image, and gallery workspace under **Settings → Assistant capabilities → Image Generation**, using the model set in **Default Models → Image Generation**.
- **Web Workbench image generation (Pro)**: Generate images in batches inside the built-in Web Server browser panel with configurable model, aspect ratio, and count.

## Switch image models inside chat

- In the input bar's **Tools** panel, the **Generate image** row shows the current image model — tap **Switch model** on the right to change it.
- If no model is selected yet or the current one becomes unavailable, a **Choose image model** button appears right where generation failed — pick one and ask the assistant to draw again.
- Switching updates **Default Models → Image Generation**, so the Image Generation Workspace uses the same model next time you open it. The in-chat picker only lists models already connected; to connect a new image service, use **Add Model via AI** inside the workspace's model picker.

## How to choose

Use in-chat image generation when you want to converse and generate side by side. Use the Image Generation Workspace when you want centralized prompt templates, reference images, and image history.

## Notes

In-chat image generation and the Image Generation Workspace share the same image model and inherit the workspace's resolution, render quality, output format, and image recipe parameters; in chat, aspect ratio is selected by the assistant based on your request. Images generated in chat are stored in that conversation's files (or temporary cache in Incognito Chat, auto-deleted on exit) and do not enter the workspace gallery. The workspace offers fuller generation settings and batch tasks.
