Skip to main content
Menu
Get started / Limits
Get started

Limits

Rate limits, capacity, request size and time limits, and how to retry.

5 minute readUpdated 13 November 2026curl · Python · TypeScript

Two different conditions#

429 rate_limit_exceeded means a limit of yours was reached: the key's, the project's, the organization's, or the caller address's. 503 no_capacity and 503 sealed_unavailable mean there is no eligible capacity for the model, tier and region right now. Limits need you to slow down; capacity needs you to wait, to allow fallback, or to allow another region. Panward never answers a missing Sealed capacity by sending the request to a Routed offer.

429 when a limit is reached
{
  "error": {
    "type": "rate_limit_exceeded",
    "message": "Rate limit reached for this key. Retry in 12 seconds.",
    "param": null,
    "request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
    "doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
  }
}

Rate-limit headers#

HeaderMeaning
panward-ratelimit-limitRequest limit (requests per minute) of the current window: the tightest that applies (key, project or organization).
panward-ratelimit-remainingRequests left in the current window of that limit.
panward-ratelimit-resetSeconds until the current window resets.
panward-ratelimit-limit-tokensToken limit (tokens per minute) of the current window: the tightest tokens-per-minute limit that applies to this request (key, project or organization). Sent only when such a limit applies.
panward-ratelimit-remaining-tokensTokens left in the current window of that limit (input, cached input included, and output, as counted).
panward-ratelimit-reset-tokensSeconds until the current window of that limit resets.
Retry-AfterSeconds to wait before retrying, on 429 and on 503.
Read the rate-limit headers
curl -i https://api.panward.ai/v1/chat/completions \
  -H "Authorization: Bearer $PANWARD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "z-ai/glm-5.3", "messages": [{"role": "user", "content": "Hello"}]}'

The headers reflect Panward's own limits only.

When to retry#

  • 429: wait for Retry-After, then back off with a growing delay and some jitter; stop after a few attempts.
  • 503 no_capacity: wait for Retry-After, or send panward-fallback: allow to let the project's fallback models serve the request. The panward-model header names the model that answered.
  • 503 sealed_unavailable and 503 verification_unavailable: retry later.
  • 502 upstream_unavailable, 504 upstream_timeout and 500 internal_error: retry. Inside the gateway a request may already have been attempted up to three times before the first byte; there is no retry after it.
  • Every other 4xx error: change the request or your account first.
Allow the project's fallback models when the requested one has no capacity
curl -i https://api.panward.ai/v1/chat/completions \
  -H "Authorization: Bearer $PANWARD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "panward-fallback: allow" \
  -d '{"model": "z-ai/glm-5.3", "messages": [{"role": "user", "content": "Hello"}]}'

After an event: error frame in a stream, decide what to do with the partial output before you retry. The Errors page lists every type and whether it is retryable.

Request size and time#

  • A request body may be up to 10 MB unless the endpoint says otherwise; an audio file for transcription may be up to 25 MB. A larger body returns 413 request_too_large.
  • The first byte of a response is expected within 30 seconds, or you get a retryable 504 upstream_timeout or 502 upstream_unavailable. The total budget of a request is 600 seconds. Set your client's timeouts to match.

No idempotency keys#

Inference requests do not accept an Idempotency-Key, and responses are never stored, so they cannot be replayed. A retried request is a new request with a new receipt, and it is billed if it produces output.

Your own limits (requests per minute, tokens per minute, monthly spend) are set on keys and in project policy in the console. The lowest limit that applies wins.
Was this page helpful?Suggest an edit