Skip to content

Billing and limits

Rate limits

Usage tiers, what each one allows, how a request without max_tokens is sized, and how to handle 429.

One account, shared limits
One account, shared limits
Your account
One usage tier
Every API key
Shares the account’s limits
Limit reached
Read the 429 response
  1. Your account. One usage tier
  2. Every API key. Shares the account’s limits
  3. Limit reached. Read the 429 response

Limits apply per account: every key on the account shares them.

Request and token limits are per minute (audio per hour); there is no daily limit.

A refused request gets HTTP 429 with a Retry-After header in seconds.

A single request that is over a limit on its own, such as more input tokens than your tier takes in a minute, gets 429 request_too_large with no Retry-After: waiting won't help, so send a smaller request or move up a tier.

Usage tiers

Each account sits in one tier.

Tiers rise with cleared top-ups (bonus, refunded and disputed amounts don't count) and the days since your first payment.

  • FreeOn sign-up

    RPM
    2
    TPM in · out
    8K · 2K
    Streams
    1
    Cap / mo
    $0
  • T1$5 paid

    RPM
    600
    TPM in · out
    14M · 640K
    Streams
    50
    Cap / mo
    $100
  • T2$50 paid · 3 days

    RPM
    1,200
    TPM in · out
    14M · 1.3M
    Streams
    50
    Cap / mo
    $500
  • T3$100 paid · 7 days

    RPM
    2,400
    TPM in · out
    14M · 2.6M
    Streams
    100
    Cap / mo
    $2,000
  • T4$500 paid · 14 days

    RPM
    5,000
    TPM in · out
    14M · 4M
    Streams
    200
    Cap / mo
    $5,000
  • T5$1,000 paid · 30 days

    RPM
    10,000
    TPM in · out
    20M · 8M
    Streams
    400
    Cap / mo
    $20,000
  • CustomManual review

    RPM
    up to 10,000
    TPM in · out
    up to 20M · 8M
    Streams
    up to 400
    Cap / mo
    up to $20,000

RPM requests per minute · TPM tokens per minute, input · output (cache reads of a prompt the key already cached don’t count) · Streams requests in flight at once, streaming or not. A 0 is a hard stop, never “unlimited”: a $0 monthly cap means no paid usage on that tier. Custom limits are set per account after a review, up to the T5 figures (≤).

Enforced today: requests per minute, input and output tokens per minute, concurrent requests, monthly usage cap by the gateway, per account; the largest single top-up and tier promotion by billing. A request that would go over the monthly cap is refused with 429; once spending reaches the cap, billing switches the account’s keys off (401) until it resets.

Monthly caps follow the UTC calendar month. Next reset: Jan 1, 2027, 00:00 UTC, which is for you.

Requests with no output cap

Before a request runs, AZRouter sets aside the most it can cost.

A request that sends no output cap (max_tokens, max_completion_tokens, max_output_tokens, or Gemini's maxOutputTokens) gets one from AZRouter:

  • at most the model's maximum output, and never more than 65,536 tokens;
  • at most half of what your balance has left, after the other requests your account has open. The same holds for your tier's monthly cap and the key's spending limit, where they apply.

The answer stops at that cap with finish_reason: "length".

A max_tokens you set yourself is lowered the same way when your tier's output tokens left this minute, your balance, the monthly cap or the key's limit can't cover it: to at most half of what each has left (all of it when half is under 4,096), so parallel requests each get a share.

The x-azrouter-max-tokens response header says what the model got.

Under 4,096 tokens (or under your own max_tokens, when that is smaller) it is refused instead: a 402 when your balance ran short, a 429 for the tier's limit, or the monthly cap's or the key limit's own error.

So how many requests without a cap can run at once depends on your balance: each one sets aside at most half of what the ones before it left.

When half would be under 16 tokens, a request takes all that is left.

When even that is under 16 tokens, it is refused: 402 when your balance is what ran short, or the monthly cap's or the key limit's own error.

Many requests at once

Set max_tokens on each request to the output you really need, so they all fit your balance together.

Or add credits.

Repeated content safety refusals

A request refused for content safety on this model may carry a fixed review charge, on top of the tokens it used: Claude Fable 5.1 and Claude Fable 5.2, 0.10 USD each, shown as its own line in your credit history.

Three requests refused for content safety on one model in 10 minutes pause that model for your account for 1 hour: 429 refusal_hold, with Retry-After. This applies to Claude Fable 5.1, Claude Fable 5.2, Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5, Grok 4.7, DeepSeek V4.1 Flash, GPT-6.1 Sol and GLM 5.3. Other accounts and your other models are not affected. The pause is not a daily limit: it ends on its own.

Sending a refused request again unchanged is blocked for a few minutes: 400 resend_blocked. Change the request first. If the provider pauses the model for your account after repeated refused requests, requests get 400 model_paused for up to 24 hours.

Handling 429

The OpenAI SDKs already retry 429 and 5xx responses with backoff and honour Retry-After (2 retries by default).

Raise the count if you need more; without an SDK, wait the Retry-After seconds yourself.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.azrouter.dev/v1",
    api_key=os.environ["AZROUTER_API_KEY"],
    max_retries=5,
)

Other limits at the network edge and on the website protect against abuse and aren't published.