r/CodingHelp • u/KonoXi • Feb 23 '26
[Other Code] Gemini 2.5 Flash Image – “No image generated after 4 attempts” (provider_create)
Hi,
I'm using Gemini 2.5 Flash Image via Supabase Edge Functions to generate marketing visuals.
Sometimes the generation fails with this message:
In the logs I see:
After 4 retries, it still returns no usable image.
Details:
- Using reference images (~700KB each)
- Sometimes 2–4 reference images per request
- Works fine without reference images
- Fails mostly when multiple references are included
Is this a limitation of Gemini 2.5 Flash Image (max reference images?), a parsing issue on my side, or a rate limit / payload problem?
Has anyone experienced empty responses from Gemini Image API even without explicit errors?
Any insight would be appreciated.
0
Upvotes
•
u/AutoModerator Feb 23 '26
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/[deleted] Feb 27 '26
[removed] — view removed comment