# Vertex AI 429 resource exhausted: two causes, two fixes

URL: https://infro.io/blog/vertex-ai-429-resource-exhausted-two-causes-two-fixes
Author: INFRO Editorial (https://infro.io/blog/editorial)
Publisher: INFRO
Published: 2026-11-25
Last modified: 2026-11-25
Last reviewed: 2026-11-25 (next review due 2026-12-25)
Topic: Routing and reliability
Format: Guide

> A Vertex AI 429 "resource exhausted" is a capacity signal, and the right response depends on how you buy capacity: on pay-as-you-go the pool is shared, so back off and fall back; on Provisioned Throughput you have exceeded what you reserved, so size the order or spill over. Retry briefly with jitter, then move to a second connection.

Key takeaways:
- Read the 429 body before you react: the same status code covers shared-capacity pressure and a reserved allocation that is full.
- Pay-as-you-go 429s are transient by design: retry a few times with jitter, then move the request to another connection.
- On Provisioned Throughput, retrying the same endpoint longer does not add capacity; the fix is the size of the order or a spillover path.
- Treat Gemini on Vertex AI and the Gemini API as two connections with separate limits, and write the rule that moves traffic between them.
- A fallback must be bounded: a retry budget, a different failure rule per failure kind, and a cap on what the second connection can spend.

## What the 429 tells you, and what this article could confirm

A 429 with a resource-exhausted status means a request was refused because some capacity limit was reached. It does not say which limit, and on Vertex AI the answer depends on how you buy capacity. Google documents the error on its own page[1], the limits on a quotas page[2], reserved capacity on a Provisioned Throughput overview[3] and retry behavior on a retry strategy page[4]. The pages now sit under the "Gemini Enterprise Agent Platform" name, and the older Vertex AI URLs redirect to them.

A note on evidence. When these pages were fetched for this article, the Google Cloud ones returned navigation text but not their body. So this guide does not quote Google's exact error strings, quota numbers or retry parameters. Where it describes how to respond, that is engineering reasoning, labelled as such, and the numbers are yours to take from the live pages. The Gemini API's rate-limits page did return in full, so claims about that API are sourced.

The point of the article stands without the strings: read the body of the 429, work out which of the two situations below you are in, and respond to that one.

## Cause one: pay-as-you-go, where the pool is shared

On pay-as-you-go you pay per token and you have no reserved capacity. A 429 there means one of two things: your project hit a quota that applies to it, or the shared capacity behind the model was short at that moment. The quotas page is where Google lists the limits that apply[2]. What you can do about each differs.

- **A quota you hit.** Your traffic is above a per-project limit. The fix is a quota increase request, lower concurrency, or a second place to send the overflow.
- **Shared capacity under pressure.** Your usage is under every limit you know of and you still get refused. Nothing in your project is wrong. The request will often succeed a moment later, so the right response is a short, jittered retry, then somewhere else.

Both look identical from the client. That is why the first step is logging the response body and the model, region and project on every 429, so you can later split them in the request log.

> **Note: The retry rule in one line**
> Retry a pay-as-you-go 429 two or three times with exponential backoff and random jitter, honour any retry delay the response gives you, then stop. Google's retry strategy page is the reference for its recommended behavior[4]; take its current figures from there.

## Cause two: Provisioned Throughput, where the allocation is full

Provisioned Throughput is the way to reserve capacity for a model on Vertex AI instead of drawing on the shared pool; Google describes it on its Provisioned Throughput overview page[3]. The commercial terms (what you commit to, for how long, and how it is measured) are on that page and change over time, so confirm them there before you size an order. The operational idea is what matters for a 429: you have bought a fixed amount of throughput, and requests beyond it are no longer the same problem as shared-pool pressure.

That changes the diagnosis. If you hold an allocation and see 429s, the likely causes are:

1. **Steady traffic above the order.** Retrying does nothing, because the allocation is simply full.
2. **Bursts above the order.** Peaks exceed what you reserved even though the average fits.
3. **Traffic not tied to the allocation.** Requests for a model or region the order does not cover are served from the pay-as-you-go path and meet its limits.

The mitigation is therefore about sizing and spillover, not backoff. Look at your peak token and request rate against the order, decide whether to raise it, and decide where the excess goes. A rule of thumb from engineering, not from Google: send a reserved-capacity endpoint only the traffic you have sized it for, and give everything else an explicit second path. For the cost side of that decision, see [Provisioned throughput vs pay-as-you-go: when reserved capacity pays](https://infro.io/blog/provisioned-throughput-vs-pay-as-you-go-when-reserved-capacity-pays).

## Telling the two apart in your logs

You do not need to guess. Record four fields on every refused request and the split falls out of the data.

| Field | Pay-as-you-go signal | Provisioned Throughput signal |
| --- | --- | --- |
| Response body | Names a quota or generic shared-capacity pressure | Refers to the reserved allocation |
| Rate vs your limit | Often below every limit you know of | At or above the order's size |
| Retry outcome | Usually succeeds within seconds | Keeps failing while load stays high |
| Time pattern | Scattered, correlated with provider load | Aligned with your own peaks |

Table: Diagnostic fields for a Vertex AI 429. The body wording is on Google's error page[1]; the other rows are inferences from how each model of buying capacity works.

If the retry outcome column says "usually succeeds", a short retry plus a fallback is enough. If it says "keeps failing", more retries make it worse, because each one is another request into a full allocation.

## Gemini on Vertex AI and the Gemini API are two connections

The same Gemini model family is reachable through two different services with two different credentials and two different limit systems. Treat them as two connections, not one.

The Gemini API enforces limits per project, not per API key, across requests per minute, tokens per minute and requests per day, with daily limits resetting at midnight Pacific time[5]. It also has spend-based limits that depend on your usage tier, evaluated on a rolling 10-minute window, and exceeding one returns a 429 RESOURCE_EXHAUSTED error[5]. The page states that specified limits are not guaranteed and actual capacity may vary[5]. Vertex AI's limits live on a different page and are tied to your Google Cloud project and quota configuration[2].

Two consequences follow:

- Exhausting one is not evidence the other is exhausted. A 429 on Vertex is a reason to try the Gemini API, and the reverse.
- Models, features and model ids can differ between the two. A fallback that names a model the second service does not serve fails with a different error, so check the model list on each connection before you rely on it.

## The failure rule between them

A route that falls back needs a rule for each kind of failure, not one catch-all. Here is the rule set, written as a table you can turn into configuration. It is an illustration of the design, with no numbers taken from any provider.

> **Example: Illustrative failure rules for one Gemini route**
> | Failure | Action | Why |
> | --- | --- | --- |
> | 429 on Vertex, first or second try | Retry same target after jittered backoff | Shared-pool pressure often clears in seconds |
> | 429 on Vertex after the retry budget | Move to the Gemini API connection | Separate limits; the quota is not shared |
> | 429 on both | Move to a different model family, or stop | Prevents a loop and a surprise bill |
> | 5xx or timeout before the response starts | Move on without retrying the same host | The target is unhealthy, not busy |
> | 400-class request error | Stop | A fallback will not fix a bad request |

Three guardrails keep this safe. Bound the retries so the sum of backoffs stays under your caller's timeout. Do not fall back mid-stream once tokens have started to arrive, because the client has already seen a partial answer; fall back only before the response begins. And cap what the fallback can spend, since the second connection bills against its own account at its own rates. How price gaps and cold caches change that bill is covered in [What does failover do to your bill?](https://infro.io/blog/what-does-failover-do-to-your-bill-price-gaps-and-cold-caches).

A small client-side version of the first two rows, if you are not behind a gateway:

```python
import random, time

def call_with_fallback(primary, secondary, request, tries=3, base=0.5, cap=8.0):
    for attempt in range(tries):
        resp = primary(request)
        if resp.status != 429:
            return resp
        delay = min(cap, base * (2 ** attempt))
        time.sleep(random.uniform(0, delay))  # full jitter
    return secondary(request)  # a different connection, different limits
```

## Where a gateway helps

You can build this in your application, but it ends up duplicated in every service that calls Gemini. A gateway holds it once. With INFRO, you connect your own Vertex AI account and your own Gemini API key as two provider connections, and name a route with the Vertex connection as the first target and the Gemini API as the next. The route's failure rules decide, per failure kind, whether to retry, move on or stop, and if-rules can send particular traffic (say, a streaming or high-priority feature) to its own targets. Automatic failover covers a route that times out or returns a 5xx before the response starts. A connection can also list additional API hosts for the same key, which are tried when the first host cannot be reached; that handles an unreachable host, not a 429, so keep the two ideas apart. Check the routing documentation for how a rate-limit failure maps onto a failure rule before you depend on it. You still pay Google directly on both accounts; INFRO adds no markup to model spend.

## A checklist before you ship the fallback

- [ ] Log the 429 body, model, region and project on every refusal.
- [ ] Decide per connection whether you are on pay-as-you-go or Provisioned Throughput, and write down what a 429 means for each.
- [ ] Read the current numbers on Google's quota, retry and Provisioned Throughput pages and put them in your runbook[2][4][3].
- [ ] Confirm the fallback connection serves the same model, and test one request through it.
- [ ] Bound retries, forbid fallback after a stream has started, and cap the fallback's spend.
- [ ] Alert when the share of requests served by the fallback rises, since that is the early sign your primary is short.

For the wider pattern of deciding which requests deserve the remaining capacity, see [Provider quota is short: which AI requests should survive?](https://infro.io/blog/provider-quota-is-short-which-ai-requests-should-survive) and [Circuit breakers for LLM providers: throttling is not failure](https://infro.io/blog/llm-circuit-breakers-throttling).

## Questions

### Is a Vertex AI 429 the same as the Gemini API's RESOURCE_EXHAUSTED?

The Gemini API documents a 429 RESOURCE_EXHAUSTED error for exceeding requests per minute, tokens per minute, requests per day or a spend-based limit [5]. Vertex AI has its own 429 page and its own quota page [1][2]. The status code matches, the limits behind it do not, so log which connection returned it.

### Should I retry a Vertex AI 429 forever?

No. Use a small retry budget with exponential backoff and jitter, then move to a second connection or return an error to the caller. Google publishes a retry strategy page for this service [4]; read its current numbers there instead of copying figures from an article.

### Does Provisioned Throughput remove 429s?

Not by itself. A reserved allocation has a size, and traffic above it can still be refused. Check how Google's Provisioned Throughput page describes behavior above your order [3] and decide in advance where the excess goes.

## Sources

1. Error code 429 (Gemini Enterprise Agent Platform) — Google Cloud. https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/deploy/error-code-429 (accessed 2026-11-25)
2. Generative AI quotas and system limits (Gemini Enterprise Agent Platform) — Google Cloud. https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/quotas (accessed 2026-11-25)
3. Provisioned Throughput overview (Gemini Enterprise Agent Platform) — Google Cloud. https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/provisioned-throughput (accessed 2026-11-25)
4. Retry strategy (Gemini Enterprise Agent Platform) — Google Cloud. https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/retry-strategy (accessed 2026-11-25)
5. Rate limits - Gemini API — Google AI Studio. https://aistudio.google.com/docs/rate-limits.md (accessed 2026-11-25)
