When making a call to genai.embed_content(), the script fails with a 429 ResourceExhausted error related to the free tier quota. However, the Google Cloud Console’s Quota Dashboard for the project associated with my API key shows *0% usage
The usage under the free tier shows as follows
![]()
I’ve tried with multiple API keys under different accounts and nothing works.
Error:
google.api_core.exceptions.ResourceExhausted: 429 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. [violations {
quota_metric: "generativelanguage.googleapis.com/embed_content_free_tier_requests"
quota_id: "EmbedContentRequestsPerDayPerUserPerProjectPerModel-FreeTier"
}
violations {
quota_metric: "generativelanguage.googleapis.com/embed_content_free_tier_requests"
quota_id: "EmbedContentRequestsPerMinutePerUserPerProjectPerModel-FreeTier"
}
violations {
quota_metric: "generativelanguage.googleapis.com/embed_content_free_tier_requests"
quota_id: "EmbedContentRequestsPerMinutePerProjectPerModel-FreeTier"
}
violations {
quota_metric: "generativelanguage.googleapis.com/embed_content_free_tier_requests"
quota_id: "EmbedContentRequestsPerDayPerProjectPerModel-FreeTier"
}
, links {
description: "Learn more about Gemini API quotas"
url: "https://ai.google.dev/gemini-api/docs/rate-limits"
}
]