Gemini 3 flash invalid json responses, AI error costing me money?

Gemini 3 Flash seems to get it’s self into loops at random, doesn’t throw an error (shows 200)

Happens randomly, we’ll see what I’m billed for, but returning bad looping 0’s for json is not something that should run until my timeout counter hits…..

from a retry of a different prompt.

Hi @Jay_Cee ,

Could you please share a minimal reproducible code along with your generationConfig, any prompt/system instructions and json schema? This will help us diagnose the issue efectively.