RESOURCE_EXHAUSTED gemini-2.5-flash

Hi, this morning I got a RESOURCE_EXHAUSTED error and I can’t get rid of it.

curl “``https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent``”
-H “x-goog-api-key: XXX”
-H ‘Content-Type: application/json’
-X POST
-d ‘{
“contents”: [
{
“parts”: [{ “text”: “Explain how AI works in a few words”}]
}
]
}’
Response
{
“error”: {
“code”: 429,
“message”: “Resource has been exhausted (e.g. check quota).”,
“status”: “RESOURCE_EXHAUSTED”
}
}

I am easily under the rate limit, but the API stopped working. Any idea how to fix this, or can Google fix this?

Yeah, I’m getting the same thing

It works again, but it would be great to know if I am really hitting some limit and when it will reset.

Hi there thanks for the feedback. Want to note that we are working on adding quota limit data into the API header response.

In the new Interactions API, this precise quota data is available in the error body