mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 07:24:59 -05:00
[GH-ISSUE #20634] issue: OpenRouter image generation Chunk too big error
#89981
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 @eniraa on GitHub (Jan 13, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20634
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.7.2
Ollama Version (if applicable)
No response
Operating System
Debian 13.0
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Image generation succeeds and the image is displayed
Actual Behavior
A
Chunk too bigerror is displayedSteps to Reproduce
Google: Nano Banana Pro (Gemini 3 Pro Image Preview)Logs & Screenshots
Docker log
Additional Information
I have tested with these environment variables both set and unset, all with the same issue.
@owui-terminator[bot] commented on GitHub (Jan 13, 2026):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19019 issue: Image generation doesn't work with OpenRouter
by vladkvit • Nov 07, 2025 •
bug#19522 feat: open router image create/edit
by davidpede • Nov 26, 2025 •
bug#19816 issue: duplicated images when using openrouter
by M0n7y5 • Dec 08, 2025 •
bug#19800 issue: "Chunk too big" error when using "perplexity/sonar-deep-research:online" in open router
by mahdikohan • Dec 07, 2025 •
bug#20436 issue: image generation cannot finish normally
by lywbh • Jan 07, 2026 •
bugShow 1 more related issues
by shentong0722 • Jan 04, 2026 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@eniraa commented on GitHub (Jan 13, 2026):
This version is after #19073 was merged, so I don't think the previous issues are in the same situation. I have also attached a screenshot from the network tab:
@Classic298 commented on GitHub (Jan 13, 2026):
try with larger buffer size. gemini 3 pro can create 4k images
@eniraa commented on GitHub (Jan 13, 2026):
Tried with
34359738368, which is significantly larger than the suggestions I've seen in the closed issues; same problem. Do you have any recommendations for how high I should set it?NB I've also tried on Gemini 2.5 and encountered the same problem, so I am a little skeptical that it's due to the size that I've set. There's a chance that my
docker-compose.ymlis not configured correctly, so to get that out of the way, I'll paste it below:@Classic298 commented on GitHub (Jan 13, 2026):
are you using two different config syntax types?
@eniraa commented on GitHub (Jan 13, 2026):
I have tested both the
environmentkey in adocker-compose.ymland having an external.env. Neither of these worked to resolve the problem.@Classic298 commented on GitHub (Jan 14, 2026):
cc @ShirasawaSama
@ShirasawaSama commented on GitHub (Jan 14, 2026):
Have you tried a smaller value? For example: 31457280
@PVBLIC-F commented on GitHub (Jan 16, 2026):
I use OpenRouter too. I worked around this by turning off streaming for the models I’m using to generate images.
@ShirasawaSama commented on GitHub (Jan 23, 2026):
Have you tried manually cloning the repository to use OpenWebUI instead of using Docker? Would you still encounter issues this way?
@Classic298 commented on GitHub (Feb 6, 2026):
cannot reproduce even with many tries as long as the env vars are correctly configured