Image Generation
Generate and edit images from a prompt without leaving the chat, using a local or hosted image model. An administrator sets up one connection per image backend, and users pick from the models those connections offer. For videos, see Generate Videos.
Set up a connection
- Open Admin Panel > Settings > Images & Videos and switch on Image Generation, Image Edit or both.
- Under Manage Image Connections, click + (Add Connection).
- Pick the Connection Type, enter a Name and the URL (plus the key if the backend needs one), and click the verify icon next to the URL to check the server.
- Under Capabilities, keep Generate, Edit or both on. Only capabilities the backend supports can be switched on: AUTOMATIC1111 handles generation only, and a ComfyUI connection needs the matching workflow.
- Click Access and choose the users who may use the connection, then click Save.
| Connection Type | Use it for | Edit support |
|---|---|---|
| OpenAI compatible | OpenAI, Azure OpenAI, LiteLLM, Lumenfall, Image Router and any other server with an OpenAI style images API | Yes |
| Gemini | Imagen and Gemini image models | Yes |
| ComfyUI | Your own ComfyUI workflows | Yes, with an edit workflow |
| AUTOMATIC1111 | A local Stable Diffusion server | No |
A server that offers both generating and editing needs only one connection. OpenAI compatible connections have the same authentication choices as model connections, plus custom Headers.
A new connection is private to administrators until you share it. Click Access and pick the users or groups that may use its models, or make it public for everyone. Users without access never see its models.
Models
Model IDs lists the models a connection offers. Leave it empty and the connection offers its default model:
- OpenAI compatible: every image model a LiteLLM server lists, otherwise
gpt-image-2. - Gemini:
imagen-3.0-generate-002. - ComfyUI: the model set in the workflow.
- AUTOMATIC1111: the checkpoint that is loaded.
Add model IDs when the server offers several, such as gpt-image-1.5 next to gpt-image-2. With Model IDs set on an AUTOMATIC1111 connection, picking a model that is not loaded switches the checkpoint for everyone using that server.
Under Default Models you choose the Default Generation Model and Default Edit Model used when neither the chat nor the model picks one. A model can also carry its own Default image model in the model editor, under Workspace > Models > Edit.
Advanced holds optional settings that depend on the backend; each engine page names the ones it needs.
📄️ Usage
Enable image generation in a conversation, create images from prompts, and edit or combine uploaded images in Open WebUI.
📄️ AUTOMATIC1111
This tutorial is a community contribution and is not supported by the Open WebUI team. It serves only as a demonstration on how to customize Open WebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
📄️ ComfyUI
This tutorial is a community contribution and is not supported by the Open WebUI team. It serves only as a demonstration on how to customize Open WebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
📄️ OpenAI
This tutorial is a community contribution and is not supported by the Open WebUI team. It serves only as a demonstration on how to customize Open WebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
📄️ Gemini
This tutorial is a community contribution and is not supported by the Open WebUI team. It serves only as a demonstration on how to customize Open WebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
📄️ Image Router
This tutorial is a community contribution and is not supported by the Open WebUI team. It serves only as a demonstration on how to customize Open WebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
📄️ Lumenfall
This tutorial is a community contribution and is not supported by the Open WebUI team. It serves only as a demonstration on how to customize Open WebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
📄️ Generate Videos
Turn on video generation, connect a video provider such as OpenAI, LiteLLM, OpenRouter or ComfyUI, and let users create videos from a prompt in chat.