Hey everyone,
I’m running into an intermittent issue with the gemini-2.5-flash-image-preview model and hoping someone can shed some light on it. The issue was not existent 2-3 weeks ago, and has been getting worse.
Example:
1: ”%photo% “generate 3d image avatar of main character in animated form”
2 ”main character, dressed in explorer’s attire, stepping into the shadowy forest”
The Problem
Sometimes (not always) I get this error when generating images:
finish_reason=<FinishReason.IMAGE_OTHER: ‘IMAGE_OTHER’>
No other error message, no prompt_feedback, just IMAGE_OTHER. The weird part is it’s completely random - same input that worked fine 5 minutes ago suddenly fails.
What I’m doing
I’m building an app that creates cartoon-style avatars from photos and uses them in illustrated stories. Nothing inappropriate - just family-friendly content with non-realistic art styles.
Input is typically:
- A regular photo (~1290 image tokens)
- Text prompt for the style (~64 text tokens)
What I’ve tried
- The token counts look normal
- Same inputs work sometimes, fail other times
- No pattern I can identify
Questions
1. What does IMAGE_OTHER actually mean? The docs just say “other image-related reasons” which isn’t super helpful for debugging.
2. Could this be a false positive on safety filters? The content is pretty tame.
3. Is there a recommended retry strategy for this?
4. Any way to get more diagnostic info about why a specific request failed?
Has anyone else run into this? Any ideas what might be causing the intermittent behavior?
Thanks!