API returns 429 ResourceExhausted for Free Tier, but Cloud Console dashboard shows 0% quota usage

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
image

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"
}
]
1 Like

Hi @Naveed_Hassan,

Welcome to the Google AI Forum! :confetti_ball: :confetti_ball:

Thanks for reporting.. I will inform our internal teams regarding the issue.

1 Like

Hi Krish, i was working on a RAG application. It seems that when i upload my document and create the embeddings for it, my quota is not exhausted but when i am trying to generate an embedding for the query in order to match any embedding, i am facing :-
violations {
quota_metric: “generativelanguage.googleapis.com/embed_content_free_tier_requests
quota_id: “EmbedContentRequestsPerDayPerUserPerProjectPerModel-FreeTier”
}
Is there anything in specific that i am doing wrong here? or what is the catch cause i am very new to this and i am not able to figure this out.

Any help will be appreciated. Thank you!

1 Like

Hey Krish, any update? because i am facing the same issue.

Hi, I am facing the same issue as well