Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Azure OpenAI (Microsoft Foundry) error

Azure OpenAI 429 Too Many Requests (token budget exceeded by request parameters): what it means and how to fix it

Error message
429 Too Many Requests (token budget exceeded by request parameters)

Retry? Not statedLast verified 2 documented fixes1 source

What it means

The rate limit is triggered while token usage metrics look low, because the rate limit calculation includes max_tokens and the prompt estimate rather than billed tokens.

Causes

  • A high max_tokens value consuming rate limit budget even when the actual response is small
  • best_of greater than 1 multiplying the counted tokens

How to fix it

  1. Fix 1.

    Reduce max_tokens to match your expected response size.

  2. Fix 2.

    Set best_of to 1 unless you need multiple completions, and reduce prompt size where possible.

More Azure OpenAI errors

All 15 Azure OpenAI errors

HTTP 429 at other providers

Compare 429 across providers

FAQ

What does the Azure OpenAI error "429 Too Many Requests (token budget exceeded by request parameters)" mean?

The rate limit is triggered while token usage metrics look low, because the rate limit calculation includes max_tokens and the prompt estimate rather than billed tokens.

How do I fix Azure OpenAI "429 Too Many Requests (token budget exceeded by request parameters)"?

There are 2 documented fixes. Start with the first: Reduce max_tokens to match your expected response size.

Should I retry Azure OpenAI "429 Too Many Requests (token budget exceeded by request parameters)"?

Not stated. The official docs do not say whether this error is retryable.

Which other AI APIs return HTTP 429?

Per their official error docs: Amazon Bedrock (429 ThrottlingException; 429 ModelNotReadyException), Anthropic API (429 rate_limit_error; 429 rate_limit_error (enforced_spend_limit_reached)), Cohere API (429 Too Many Requests), DeepSeek API (429 - Rate Limit Reached), Gemini API (429 rate_limit_exceeded; 429 quota_exceeded; 429 too_many_requests; 429 RESOURCE_EXHAUSTED), Groq API (429 Too Many Requests), Mistral API (429 Too many requests), OpenAI API (429 credit_balance_exhausted; 429 Rate limit reached for requests; 429 rate_limit_error slow_down; 429 organization_spend_limit_exceeded; 429 project_spend_limit_exceeded; 429 organization_usage_limit_exceeded), OpenRouter (429 rate_limit_exceeded), Vertex AI (429 RESOURCE_EXHAUSTED; 429 Resource exhausted, please try again later; 429 Too many requests. Exceeded the Provisioned Throughput), xAI API (429 Too Many Requests).

Sources

Last verified against 1 source: Azure OpenAI's official docs and official SDK repositories.

Newsletter

Know when the APIs change

One email per week. New model releases, API changes, what broke, and how developers are working around it.