Sawalni API
APIsExamplesDocumentationOpen portal ↗
Omneity Labs API collection ↗Integration quickstart →API keys and playgrounds →
Guides

Account rate limits and API usage

Open API usage for consumption and progress. Read current limits and consumption with GET /v1/account/usage, authenticated with an account API key. The portal has an API usage page. Usage reads, billing reads, catalogs and alignment-job polling do not consume product-request quota.

LimitTier 0Tier 1Tier 2Tier 3Tier 4Tier 5
Requests/month1,0005,00015,00030,000120,000240,000
Requests/day1003001,0003,00030,00060,000
Requests/rolling hour601003006006,00012,000
Requests/rolling minute151540805001,000
Concurrent work12483264
Tokens/month1,000,00010,000,00030,000,00060,000,000240,000,0001,000,000,000
Tokens/day256,0001,000,0002,000,0004,000,00016,000,00064,000,000
Tokens/rolling hour128,000256,000512,0001,000,0002,000,0004,000,000
Tokens/rolling minute128,000128,000128,000256,000512,0001,000,000

| Generated tokens/request, total across choices | 2,048 | 2,048 | 2,048 | 2,048 | 2,048 | 2,048 | | TTS minutes/day / month | 5 / 60 | 15 / 180 | 30 / 600 | 120 / 1,200 | 1,200 / 4,800 | 2,400 / 9,600 | | Transcription minutes/day / month | 15 / 180 | 60 / 600 | 120 / 1,800 | 360 / 3,600 | 3,600 / 14,400 | 7,200 / 28,800 |

Token policy: account-tiers-20261114-v11. Tier 0 allows 256k tokens/day and 1M/month. Tiers 1 and 2 allow 1M and 2M tokens/day. Existing usage is retained when limits change.

Spending thresholds

TierMinimum qualifying spending
Tier 0No purchase required
Tier 1$5
Tier 2$50
Tier 3$100
Tier 4$1,000
Tier 5$10,000

Qualifying spending is the total value of confirmed credit purchases in USD, minus refunds. It is cumulative, with no monthly reset. API usage, free credits, promotions, migrated balances and billing adjustments do not count.

Without a manual override, your effective tier follows qualifying spending automatically. Removing an override restores the spending tier. Check API usage for your current tier and progress. Spending calculations refresh within five minutes; removing an override refreshes them immediately.

Model context, payload and service capacity limits apply. Tier assignment is server-controlled. All account API keys share the same quota, including live transcription.

All limits apply together. Calendar days and months reset at 00:00 UTC. Minute and hour windows roll continuously. Quotas begin at rollout; historical usage is not imported into them. Input validation failures before measured work do not consume product-request or resource quota. HTTP 400, 404, 405, 413, 415 and 422 are covered. Other admitted work counts even when processing later fails. Batch items count individually. Retries that pass validation count as new work. Tiers 0–5 allow 10 batch items, 1,000 TTS input characters and 300 seconds of transcription audio per request.

used, reserved and remaining are separate. Audio values in the JSON response are milliseconds, not minutes. Text-only chat requests reserve actual model input-token counts, including message formatting and tools, plus requested output. An omitted output limit is at most 2,048 tokens across choices and can be reduced to fit remaining quota, available credits or model context. Explicit output limits are preserved. Embeddings reserve actual processed input-token counts, including any model truncation. Media requests use actual input-token counts where available. Otherwise, text plus requested output is reserved first, and actual media usage is checked against quota and credits before the result is delivered. Encoded media size is not used as a token estimate. If required usage is missing, the request returns a temporary error without delivering a result. Exact backend token usage replaces the reservation. Missing final usage is recorded for review; reserved tokens are not counted as actual usage. Non-streaming chat without valid usage returns a temporary error. Streaming chat reports a terminal usage error before [DONE]. Embeddings and media with deferred usage require valid final usage before delivery. In-flight reservations remain protected until completion. A request that crosses midnight settles against its admission day/month. Stale leases expire and release reservations.

ASAT does not reserve the whole remaining audio allowance. Non-streaming audio is checked against actual duration before delivery. WAV and PCM16 streams check duration before each chunk and return X-Sawalni-Delivery-Mode: streamed-with-quota-validation. Other output formats can require buffered validation. A stream stops if its quota is exhausted. Streaming TTS retains its existing deferred billing policy. Streaming text-only content arrays are supported. Media input supports SSE. When final usage must be checked first, or audio output is requested on a quota-bound tier, SSE is buffered and returns X-Sawalni-Delivery-Mode: buffered-for-quota-validation. Otherwise supported media streams live. For live transcription, quota-bound tiers require mono PCM16 at 16,000 Hz and at most 300 seconds per session. Each binary frame is accounted before forwarding. A quota rejection sends an error frame and closes the connection.

Administrators can set or remove a manual quota-tier override on a user's profile. Spending tier shows the tier indicated by qualifying purchases; effective tier shows the applied quotas. Removing an override restores the spending tier. Overrides do not approve model access, add credits or reset usage. Changes are audited and apply after active requests finish. The unlimited assignment is protected.

Administrators can reset an account's current quotas from its user profile. A reset restarts request, token and audio allowances across all windows. It preserves measured usage history, credits, tier and access. Active requests must finish first. Retrying the same reset does not clear subsequent usage again.

HTTP 429 errors identify the resource, window, limit, used/reserved/remaining units, reset_at, retry_after_seconds, and the API usage URL. Retry-After indicates a retry delay. HTTP 422 with request_exceeds_tier_limit means waiting cannot make the request fit: shorten input, reduce output or split the batch. A tracker outage returns HTTP 503 before new work is admitted. A shared service-capacity error is distinct from an account quota.

For rolling quota rejections, requested identifies the attempted units. The retry time waits for enough recorded usage to expire for this request, rather than the first event. Concurrent requests can still change availability.

Handling blocked requests

Account quota errors include retry_policy and automatic_retry. Spent hour/day/month budgets return wait_for_reset, automatic_retry: false and x-should-retry: false. Do not loop or sleep until the reported reset. Show remaining usage and let the user decide. Minute-window limits use bounded_backoff. Concurrency and temporary reservation pressure use wait_for_capacity; the release time remains unknown. Honor Retry-After as a minimum, cap attempts, and stop after repeated rejection. An HTTP 422 request that can never fit uses do_not_retry. Browser callers can read Retry-After and x-should-retry through CORS. These fields apply to account quota errors, not every upstream failure.

Send speech requests sequentially for initial tests. Keep the concurrency slot until the response body has finished or closed, including streams. Do not issue another request on every audio chunk or UI render. The Python async client defaults to one in-flight request per client; max_concurrency can opt into a larger bound. The legacy Python client source retries only known, short-lived admission 429s, at most the configured number of attempts. It does not replay validation/access errors, transport failures, long-budget exhaustion or ambiguous server failures. Installed packages require an SDK update. OpenAI clients that honor x-should-retry receive the same long-budget stop hint.

Product responses identify X-RateLimit-Tier, X-RateLimit-Policy, and the usage URL. X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset describe the rolling-minute request window; reset is Unix seconds. Accounts without quotas report unlimited and reset zero. The usage endpoint is the authoritative view of every window. If only response metadata is temporarily unavailable after work has completed, X-RateLimit-Status says so; the service does not discard an already billed response.