r/OpenWebUI • u/DadKillerX • 2d ago
Website / Community Free local image generation in Open WebUI: point the OpenAI image engine at Hatchlight
If you run Open WebUI with local LLMs but images still go to a paid API, this might help. Hatchlight is an open-source desktop app that runs image models (SDXL, FLUX, Z-Image, Qwen-Image and more) on your own GPU. It picks the build of each model that fits your VRAM, with no Python or workflows to set up. It also answers OpenAI's image API, so Open WebUI can use it as is.
Setup:
- Admin Panel > Settings > Images: turn on image generation, engine OpenAI.
- API base URL: http://localhost:4096/v1 (or the address in Hatchlight's Settings > Use with other apps). API key: any text.
- Model: a Hatchlight id like local/sdxl-turbo, or leave dall-e-3 and it uses the best free model you installed.
It can also use the checkpoints and LoRAs you already have in ComfyUI, Forge, Forge Neo, SwarmUI or Stability Matrix folders, without copying them.
Docker note: Open WebUI usually runs in a container, and Hatchlight on a desktop only answers this computer. Run the container with --network=host, or run Hatchlight in server mode (also a Docker image, ghcr.io/hatchlight/hatchlight) and give Open WebUI an API token.
Honest limits: SDXL Turbo makes 512 px pictures, so choose SDXL or FLUX for larger ones. Paid cloud models are never used unless you turn that on and name one.
MIT, no account, no telemetry. I'd like to hear what breaks with your setup.
1
u/iliekdesu 1d ago
Why use this instead of just a headless ComfyUI?
1
u/ledafaze 1d ago
Just pay for image API