Hello,
I’m experiencing repeated 503 UNAVAILABLE errors when using the Gemini API with the gemini-3.1-flash-lite model.
My application logs show five API errors over several hours:
-
14:55 — 503 UNAVAILABLE
-
15:02 — 503 UNAVAILABLE
-
15:11 — 503 UNAVAILABLE
-
15:13 — 503 UNAVAILABLE
-
17:44 — 503 UNAVAILABLE
The error message is:
This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later.
However, my usage dashboard shows very low usage:
-
RPM: 1 / 15
-
Input TPM: 148 / 250,000
-
RPD: 5 / 500
I’m particularly confused about the input token counter.
Does Gemini count input tokens toward usage limits when a request fails with a 503 error, even if no response is generated?
Could you also clarify whether the entire prompt is processed before the service returns a 503, or whether the request can fail before processing is completed?
For context, November 2 is the only day I’ve used the API this month, so these usage figures should correspond to today’s activity.
I’m also using the official Google Gen AI Python SDK, which I understand performs automatic retries for transient errors. Could these retries affect the usage counters?
I’d appreciate any clarification.
Thank you!