ApiX Docs
Docs / Limits and quotas
·View as Markdown

Limits and quotas

Limits are per key and reset daily:

LimitWhat it caps
requests_per_daynumber of requests
tokens_per_dayinput + output tokens
spend_per_day_usdestimated cost
max_tokens_per_requestmax_tokens of one request
max_media_bytes_per_requestattachment size
max_media_units_per_requestimages/audio pieces per request
max_video_seconds_per_requestvideo duration

What you get when you hit them:

CodeHTTPWhen
RATE_LIMIT_REACHED429daily requests already used
RATE_LIMIT_WOULD_EXCEED429this request would pass the daily limit
MAX_TOKENS_EXCEEDED400max_tokens over the per-request cap
CONTEXT_TOO_LARGE400prompt does not fit the model context
PROVIDER_SATURATED429all upstream slots for the model are busy
PROVIDER_QUOTA_EXHAUSTED429upstream credentials out of quota today
PROVIDER_TEMPORARILY_UNAVAILABLE429 / 503upstream rate limit or transient error
PROVIDER_NOT_RESPONDING503no answer in time

Every 429 includes retry_after_seconds and a Retry-After header. Wait that long before retrying: ApiX already rotated credentials internally.