mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #19019] issue: Image generation doesn't work with OpenRouter #105744
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vladkvit on GitHub (Nov 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19019
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.36
Ollama Version (if applicable)
No response
Operating System
Fedora 42 Server
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
When I pick Google: Gemini 2.5 Flash Image (Nano Banana) as the model and enable the "image integration", I expect image generation to work.
Actual Behavior
Have open-webui container installed and configured with OpenRouter
Open up open-webui in a browser.
Pick Google: Gemini 2.5 Flash Image (Nano Banana) as the model
Click "integrations" -> enable "Image"
Type in "penguin" in the prompt
Get the following error:
Processing 2 input tokens...
Creating image
An error occurred while generating an image
This endpoint's maximum context length is 32768 tokens. However, you requested about 95048 tokens (43 of text input, 95005 in the output). Please reduce the length of either one, or use the "middle-out" transform to compress your prompt automatically.
Steps to Reproduce
Install Fedora 42 Server.
With Podman, install the open-webui container
Have open-webui installed through Docker and configured with OpenRouter
Open up open-webui in a browser.
Pick Google: Gemini 2.5 Flash Image (Nano Banana) as the model
Click "integrations" -> enable "Image"
Type in "penguin" in the prompt
Logs & Screenshots
Additional Information
No response
@silentoplayz commented on GitHub (Nov 7, 2025):
Related comment on a related discussion - https://github.com/open-webui/open-webui/issues/17626#issuecomment-3502789423
@ShirasawaSama commented on GitHub (Nov 10, 2025):
Fix PR: #19073