Open WebUI native integration
This guide shows how to combine ImageRouter with your favourite Large-Language-Model in Open WebUI so the same chat can both think and draw.
The recipe works with any LLM supported by Open WebUI (GPT-4, Mistral, Gemini, local Ollama models…) and any image model provided by Image Router.
Setup
-
Open http://localhost:3000 (or wherever you host Open WebUI) and click your profile picture (bottom left).
-
Navigate to the Admin Panel, open Settings, and click Images on the left sidebar.
-
Change the OpenAI Engine endpoint to
https://api.imagerouter.io/v1/openai
and enter your API key. Get an API key here if you need. -
Toggle Image Generation (Experimental) ON. Disable Image Prompt Generation if you wish (recommended).
-
Set a default model. Any model from this list.
-
Click Save. (We can ignore steps and image size as they have no effect on images)
- Open a New chat and toggle Image before sending the prompt. You can also ask the LLM to generate a prompt, then click the little image icon under the AI response. Enjoy!