# Handling 429 / 503 errors from the Gemini API

**URL:** <https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640>\
**Category:** Gemini API\
**Tags:** gemini-api\
**Created:** [February 20, 2026, 12:06pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640 "2026-02-20T12:06:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Matthews](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/jon_matthews/32/87966_2.png) [@Jon\_Matthews](https://discuss.ai.google.dev/u/Jon_Matthews)\
**Post date:** [February 20, 2026, 12:06pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/1 "2026-02-20T12:06:22Z")

</div>

If you’re experiencing 429 or 503 errors when accessing the Gemini API, please read on.

# 503 errors

503 errors are unrelated to your quota and indicate our services are temporarily overloaded and can’t service your request. These errors are more common during certain times of the day. We apologise for the impact of these errors & are working hard to provision more resources and reduce their occurrence.

To handle these errors, we strongly recommend implementing backoff and retry (our SDKs support this through _retry config_). Although your requirements will vary based on your desired user experience, you can try setting a low number of retries with a short timeout at first, and increase these if the issue isn’t resolved.

If applicable, you could also consider moving non-realtime jobs to our[Batch API](https://ai.google.dev/gemini-api/docs/batch-api?batch=file).

# 429 errors

We recently made some backend updates to ensure that _all_ 429 errors come with a description field which properly explains the cause. We recommend scanning your logs for these. While a lot of pertinent information is currently available in the AI Studio [Usage](https://aistudio.google.com/usage), [Rate Limit](https://aistudio.google.com/rate-limit) & [Billing](https://aistudio.google.com/billing) pages, we’re working to make the cause of 429 errors easier to find in AI Studio. Please see below for advice on specific categories of 429 errors.

## **Tier drop**

If your account has recently experienced a tier drop (e.g. tier 3→2 or 2→1). This is very likely the root cause of the 429’s as lower tiers come with lower rate limits & spend caps.

This happens if an automated flag is applied to your account. Unfortunately our support team can’t check or remove these flags. Please check for banners / error callouts in the AI Studio [Projects page](https://aistudio.google.com/projects) & the [Billing page](https://aistudio.google.com/billing). You should also check whether you’ve received an email from us with an appeal link.

## **Prepay funds depleted**

If your prepay balance is depleted, we’re unable to serve responses. Generally this can be fixed by [buying credits](https://ai.google.dev/gemini-api/docs/billing#buy-credits). Note that GCP Free Trial credits can’t be used to pay for Gemini API usage ([details](https://ai.google.dev/gemini-api/docs/billing#free-trial-through-ais)).

## **Spend cap exceeded**

We return 429 errors if a spend cap is exceeded.

- Please see [Billing account tier spend caps](https://ai.google.dev/gemini-api/docs/billing#tier-spend-caps) for more information.

- You should also check whether you set a [Project spend cap](https://ai.google.dev/gemini-api/docs/billing#spend-caps).

## **Rate limits**

Multiple different types of rate limits can result in 429 errors. You should check the AI Studio [Rate Limits](https://aistudio.google.com/rate-limit) page to see details of these. Notes:

- Be sure to select the applicable project & time range.

- Take special care to check the Search grounding & Map grounding limits further down the page

- If you’re running into limitations from RPM or TPM limits, consider implementing backoff and retry with a long maximum delay (our SDKs support this through _retry config_).

---

<div class="post-metadata">

**Author:** ![Henry\_The\_One\_And\_A](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/henry_the_one_and_a/32/26285_2.png) [@Henry\_The\_One\_And\_A](https://discuss.ai.google.dev/u/Henry_The_One_And_A)\
**Post date:** [February 20, 2026, 2:20pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/2 "2026-02-20T14:20:42Z")

</div>

AI Studio is returning consistent 503 and 504 errors on 3.1 Pro Preview since the Build has been ‘fixed’ (though it was already slow prior, now it’s just down for me). 3.0 seems to go through.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Quail](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/ricardo_quail/32/95509_2.png) [@Ricardo\_Quail](https://discuss.ai.google.dev/u/Ricardo_Quail)\
**Post date:** [February 20, 2026, 2:42pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/3 "2026-02-20T14:42:45Z")

</div>

Same issue for me.

3.1 pro is not responding, although 3.0 pro is.

---

<div class="post-metadata">

**Author:** ![Jon\_Matthews](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/jon_matthews/32/87966_2.png) [@Jon\_Matthews](https://discuss.ai.google.dev/u/Jon_Matthews)\
**Post date:** [March 11, 2026, 5:34pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/4 "2026-03-11T17:34:59Z")

</div>

Pinned on March 11, 2026, 5:34pm UTC



---

<div class="post-metadata">

**Author:** ![Carlos01](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/carlos01/32/82162_2.png) [@Carlos01](https://discuss.ai.google.dev/u/Carlos01)\
**Post date:** [March 14, 2026, 1:26am UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/6 "2026-03-14T01:26:21Z")

</div>

Experiencing the same issue. What’s even worse is that important production projects for a client are currently down because of this…

---

<div class="post-metadata">

**Author:** ![llll](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/llll/32/33244_2.png) [@llll](https://discuss.ai.google.dev/u/llll)\
**Post date:** [March 15, 2026, 5:46pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/7 "2026-03-15T17:46:22Z")

</div>

I’m getting those errors because Google won’t upgrade me to the next spending tier

---

<div class="post-metadata">

**Author:** ![Peter\_Schroder](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/peter_schroder/32/106098_2.png) [@Peter\_Schroder](https://discuss.ai.google.dev/u/Peter_Schroder)\
**Post date:** [March 17, 2026, 1:44pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/8 "2026-03-17T13:44:01Z")

</div>

I’m seeing so many errors from the Gemini API that it’s not even funny. Using the gemini-2.5-flash-lite-latest, I get a lot of 503 errors, a lot of 400 errors (Cannot fetch content from the provided URL, but URL can be read by other services) and even more timeouts after 30 seconds. The average response-time is 10 seconds compared to GoogleCloudVision which took about 4 seconds. Overall the response-times of the service have multiplied by factor 10 due to retries and timeouts.

It’s saying a lot, that there is no response-time graph in AI studio.

---

<div class="post-metadata">

**Author:** ![hashtag](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/hashtag/32/106656_2.png) [@hashtag](https://discuss.ai.google.dev/u/hashtag)\
**Post date:** [March 18, 2026, 9:19pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/9 "2026-03-18T21:19:15Z")

</div>

I’ve been having this issue since last night (Attempt 1 failed: 429 RESOURCE\_EXHAUSTED. {‘error’: {‘code’: 429, ‘message’: ‘Resource has been exhausted (e.g. check quota).’, ‘status’: ‘RESOURCE\_EXHAUSTED’}}). I thought it was because of hitting the quota, so I stopped around 1am EST. I read that the quotas are reset at midnight PST, which would be 3am EST. I’m still having the issue today. Have folks found out what it might be and how long to wait if it really is about internal quota limits?

---

<div class="post-metadata">

**Author:** ![Sky\_Jin](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/sky_jin/32/85355_2.png) [@Sky\_Jin](https://discuss.ai.google.dev/u/Sky_Jin)\
**Post date:** [March 20, 2026, 7:16am UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/10 "2026-03-20T07:16:45Z")

</div>

@Jon_Matthews Hi, I’m experiencing a critical issue that goes beyond normal rate limiting.

**Paid Tier 1** with active billing, but **all regional quotas are set to 0** — not just one region, every single region.

Error details:

```auto
quota_metric: generativelanguage.googleapis.com/generate_content_requests
quota_limit: GenerateContentRequestsPerMinutePerProjectPerRegion
quota_limit_value: "0"

```

Note: the metric does NOT contain the `free_tier` prefix, confirming paid tier recognition. However, the per-region quota is hard-locked at 0 across all regions.

In the Cloud Console Quotas page, every region shows “between 0 and 0” — I cannot self-service increase it. This is not a normal rate limit issue; it appears to be an erroneous producer override.

I’ve verified this by creating a new account with billing — works perfectly with normal Tier 1 quotas. The issue is isolated to this specific project.

Could someone from the team please look into removing the incorrect override on this project? Thank you.

---

<div class="post-metadata">

**Author:** ![Setapca](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/setapca/32/62599_2.png) [@Setapca](https://discuss.ai.google.dev/u/Setapca)\
**Post date:** [March 22, 2026, 4:20pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/11 "2026-03-22T16:20:26Z")

</div>

It’s disgusting to read. For three months now, I haven’t been able to get a normal response from the model without interruptions or errors. And they’re telling me it’s my fault. I switched to a different model and am getting responses without errors. Get out of here as fast as you can.

---

<div class="post-metadata">

**Author:** ![Simon\_O\_Connor](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/simon_o_connor/32/108210_2.png) [@Simon\_O\_Connor](https://discuss.ai.google.dev/u/Simon_O_Connor)\
**Post date:** [March 23, 2026, 2:04am UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/12 "2026-03-23T02:04:43Z")

</div>

100% getting 429 errors when my rate limit page ([https://aistudio.google.com/rate-limit](https://aistudio.google.com/rate-limit)) is showing me nowhere _near_ hitting any limits.

I’m using Geminin within the Agent window of Android Studio. It’s showing it linked to my paid account, with the ‘Gemini for business’ badge, and everything appearing to be hooked up. And yet every hour or so while trying to work it’ll just stop and say it’s exceeded quotas.

I signed up for the paid plan last week and have had these 429 errors constantly. Does not make me want to continue paying for it at all.

---

<div class="post-metadata">

**Author:** ![Peter\_Schroder](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/peter_schroder/32/106098_2.png) [@Peter\_Schroder](https://discuss.ai.google.dev/u/Peter_Schroder)\
**Post date:** [March 24, 2026, 2:56pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/13 "2026-03-24T14:56:31Z")

</div>

I can confirm that gemini is returning 429 while the limit is about 30k requests away as of two days ago.

---

<div class="post-metadata">

**Author:** ![bringyourbrooms](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/bringyourbrooms/32/91214_2.png) [@bringyourbrooms](https://discuss.ai.google.dev/u/bringyourbrooms)\
**Post date:** [March 24, 2026, 3:13pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/14 "2026-03-24T15:13:26Z")

</div>

I am getting 503 errors from Gemini 3.1 flash lite. No errors past few days, just started today.

---

<div class="post-metadata">

**Author:** ![Lalai\_Shoot](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/lalai_shoot/32/23103_2.png) [@Lalai\_Shoot](https://discuss.ai.google.dev/u/Lalai_Shoot)\
**Post date:** [March 26, 2026, 7:49am UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/15 "2026-03-26T07:49:16Z")

</div>

> [@Jon\_Matthews](#):
>
> 429

get a 429 error when I do :

··• gemini -p “test”  
Keychain initialization encountered an error: The name is not activatable  
Using FileKeychain fallback for secure storage.  
Loaded cached credentials.  
Attempt 1 failed with status 429. Retrying with backoff… GaxiosError: Resource has bee  
n exhausted (e.g. check quota).

been like this for 4 days, I am on Google Pro Ai package and this is not on. Can’t get help either from the Ai could platform. Is this a permanent quota restriction??

When I try to access my rate limites i get this message at the top of the screen: Project quota tier unavailable. Please contact your project administrator for assistance.

Google have messed up big on this.

---

<div class="post-metadata">

**Author:** ![ShopcartPhotoStudio](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/shopcartphotostudio/32/31541_2.png) [@ShopcartPhotoStudio](https://discuss.ai.google.dev/u/ShopcartPhotoStudio)\
**Post date:** [March 31, 2026, 2:59pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/17 "2026-03-31T14:59:59Z")

</div>

Yes the gaslighting from Google on this is infuriating. As of this morning I’m still getting constant 500 and 503 errors with my paid API key on 4K requests. Over the weekend and yesterday, 2K was working fine - and as of this morning, 2K AND 1K requests are simply failing every time.

---

<div class="post-metadata">

**Author:** ![SemiAnonymous](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/semianonymous/32/33041_2.png) [@SemiAnonymous](https://discuss.ai.google.dev/u/SemiAnonymous)\
**Post date:** [March 31, 2026, 9:02pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/18 "2026-03-31T21:02:55Z")

</div>

I cancelled my AI Ultra plan over this, as have many others recently. See this thread in which hundreds of paying customers are completely ignored on the Gemini CLI Github page for more details.

> **[Service update: mitigating abuse and prioritizing traffic · google-gemini...](https://github.com/google-gemini/gemini-cli/discussions/22970)**
>
> Hello, friends. 👋 We are making adjustments to the service backing Gemini CLI, and want to be upfront about what is changing. 🌟 Key changes Abuse Detection: We’re implementing more robust detection...

---

<div class="post-metadata">

**Author:** ![Patrick\_McCartney](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/patrick_mccartney/32/92239_2.png) [@Patrick\_McCartney](https://discuss.ai.google.dev/u/Patrick_McCartney)\
**Post date:** [April 1, 2026, 7:25pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/19 "2026-04-01T19:25:47Z")

</div>

This issue is a plague on any user trying to work with Gemini in Antigravity. The application Google has made for us to use, that application is causing the issue. It doesn’t matter if you are on the free plan or paying $250/month, this issue comes up regardless.

It seems there are some very fundamental problems Google needs to be figuring out as this will inevitably leave to cancellation of all service

---

<div class="post-metadata">

**Author:** ![Albert\_Sunjaya](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/albert_sunjaya/32/31666_2.png) [@Albert\_Sunjaya](https://discuss.ai.google.dev/u/Albert_Sunjaya)\
**Post date:** [April 7, 2026, 6:53pm UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/20 "2026-04-07T18:53:33Z")

</div>

Yep, can’t even work thanks to this persistent issue.

> [GeminiAPI] Stream request failed: 429 {  
> “error”: {  
> “code”: 429,  
> “message”: “No capacity available for model gemini-2.5-pro on the server”,  
> “status”: “RESOURCE\_EXHAUSTED”,  
> “details”: [  
> {  
> “@type”: “[type.googleapis.com/google.rpc.ErrorInfo](http://type.googleapis.com/google.rpc.ErrorInfo)”,  
> “reason”: “MODEL\_CAPACITY\_EXHAUSTED”,  
> “domain”: “[cloudcode-pa.googleapis.com](http://cloudcode-pa.googleapis.com)”,  
> “metadata”: {  
> “model”: “gemini-2.5-pro”  
> }  
> }  
> ]  
> }  
> }

---

<div class="post-metadata">

**Author:** ![Simon\_O\_Connor](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/simon_o_connor/32/108210_2.png) [@Simon\_O\_Connor](https://discuss.ai.google.dev/u/Simon_O_Connor)\
**Post date:** [April 10, 2026, 1:03am UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/21 "2026-04-10T01:03:07Z")

</div>

Still getting after latest Android Studio update. Using paid plan subscription. Intentionally NOT using the API Token, because that starting costing money outside of the subscription, which is ridiculous.

I’m now about to try Claude or OpenAI instead of Gemini as the model within Android Studio, which is a ridiculous state of affairs, you should 100% be able to easily use Google’s model within Google’s IDE to develop apps for Google’s mobile OS.

ALL I’m doing is using the agent with Android Studio, that’s my only use of Gemini, and yet I’m hitting this time and again.

> POST [https://cloudcode-pa.googleapis.com/v1internal:streamGenerateChat](https://cloudcode-pa.googleapis.com/v1internal:streamGenerateChat)  
> {  
> “code”: 0,  
> “error”: {  
> “code”: 429,  
> “message”: “You have exhausted your capacity on this model. Your quota will reset after 49m30s.”,  
> “errors”: [  
> {  
> “message”: “You have exhausted your capacity on this model. Your quota will reset after 49m30s.”,  
> “domain”: “global”,  
> “reason”: “rateLimitExceeded”  
> }  
> ],  
> “status”: “RESOURCE\_EXHAUSTED”,  
> “details”: [  
> {  
> “@type”: “[type.googleapis.com/google.rpc.ErrorInfo”](http://type.googleapis.com/google.rpc.ErrorInfo%E2%80%9D),  
> “reason”: “QUOTA\_EXHAUSTED”,  
> “domain”: “[cloudcode-pa.googleapis.com](http://cloudcode-pa.googleapis.com)”,  
> “metadata”: {  
> “uiMessage”: “true”,  
> “model”: “gemini-2.5-pro”,  
> “quotaResetDelay”: “49m30.938289688s”,  
> “quotaResetTimeStamp”: “2026-04-10T01:47:33Z”  
> }  
> },  
> {  
> “@type”: “[type.googleapis.com/google.rpc.RetryInfo”](http://type.googleapis.com/google.rpc.RetryInfo%E2%80%9D),  
> “retryDelay”: “2970.938289688s”  
> }  
> ]  
> }  
> })

---

<div class="post-metadata">

**Author:** ![Marco\_Freeman](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/marco_freeman/32/34632_2.png) [@Marco\_Freeman](https://discuss.ai.google.dev/u/Marco_Freeman)\
**Post date:** [April 12, 2026, 8:55am UTC](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640/22 "2026-04-12T08:55:16Z")

</div>

Hi jade many error and a json leak and chain of thought leak and may other glitches

[Next page](https://discuss.ai.google.dev/t/handling-429-503-errors-from-the-gemini-api/124640.md?page=2)
