mirror of
https://github.com/open-webui/docs
synced 2025-06-16 11:28:36 +00:00
2.0 KiB
2.0 KiB
Image Generation
Open WebUI now supports image generation through two backends: AUTOMATIC1111 and OpenAI DALL·E. This guide will help you set up and use both options.
AUTOMATIC1111
Open WebUI supports image generation through the AUTOMATIC1111 API. Follow these steps to get started:
Initial Setup
- Ensure that you have AUTOMATIC1111 installed.
- Launch AUTOMATIC1111 with additional flags to enable API access:
For Docker installations of Open WebUI, use the./webui.sh --api --listen
--listen
flag to allow connections outside of localhost.
Configuring Open WebUI
- In Open WebUI, navigate to Settings > Images.
- In the API URL field, enter the address where AUTOMATIC1111's API is accessible:
If you're running a Docker installation of Open WebUI and AUTOMATIC1111 on the same host, usehttp://<your_automatic1111_address>:7860
host.docker.internal
as your address.
OpenAI DALL·E
Open WebUI also supports image generation through the OpenAI DALL·E APIs. This option now includes a selector for choosing between DALL·E 2 and DALL·E 3, each supporting different image sizes.
Initial Setup
- Obtain an API key from OpenAI.
Configuring Open WebUI
- In Open WebUI, navigate to Settings > Images.
- Select OpenAI as your image generation backend.
- Enter your OpenAI API key.
- Choose the DALL·E model you wish to use. Note that image size options will depend on the selected model:
- DALL·E 2: Supports
256x256
,512x512
, or1024x1024
images. - DALL·E 3: Supports
1024x1024
,1792x1024
, or1024x1792
images.
- DALL·E 2: Supports
Using Image Generation
- First, use a text generation model to write a prompt for image generation.
- After the response has finished, you can click the Picture icon to generate an image.