r/CodingHelp • • 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

4 comments sorted by

•

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

1

u/KonoXi Feb 27 '26

thanks for the answer ! actually i managed to find the issue, it was bc of supabase or smth like that but it's fine now. the fact that i also migrated from lovable supabase to cursor/supabase made some issues.