^^>>> curl -s -X POST \ (22) 12:25:10
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{
"parts": [
{"text": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"}
]
}]
}'
curl: (22) The requested URL returned error: 429
curl: (22) The requested URL returned error: 429
curl: (22) The requested URL returned error: 429
curl: (22) The requested URL returned error: 429
i am talking about rate limits for image generation.
i have tried diffrent google accounts, diffrent api keys, diffrent gcp project, diffrent image gen models, but all return me the same error
The service is receiving too many requests from you [item 0]
You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. * Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.5-flash-preview-image * Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.5-flash-preview-image * Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.5-flash-preview-image Please retry in 11.893074872s.
i am getting this error on even my organisation’s api keys which have also set up billing for the api key. i think this might be an issue on how google has setup limits on thier image generation models specifically. becuase with the same api keys that i tried, text generation works fine
^^>>> curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:generateContent" \ 12:18:45
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"contents": [
{
"parts": [
{
"text": "Explain how AI works in a few words"
}
]
}
]
}'
{
"candidates": [
{
"content": {
"parts": [
{
"text": "AI analyzes vast amounts of data to find patterns and make predictions.",
"thoughtSignature": "EoUHCoIHAXLI2nxl8ZrxAtUuRmoUkETPNxzu23YB/NaADVYK3/w9q/2tv2J/bToWPRUT1qTC/KZEVyHngD2/ZFbaAhkdip2iKknOK58OaMq+EGE4wM5ZG4Lznz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
}
],
"role": "model"
},
"finishReason": "STOP",
"index": 0
}
],
"usageMetadata": {
"promptTokenCount": 8,
"candidatesTokenCount": 13,
"totalTokenCount": 256,
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 8
}
],
"thoughtsTokenCount": 235
},
"modelVersion": "gemini-3-flash-preview",
"responseId": "9nZwab_TG4C64-EP6aDd2Ak"
}