# Rate limits & concurrency > Account-wide submit, query, and synchronous model rate limits on ToAPIs **Note:** **Note for users in mainland China:** Please use `https://toapis.cn` as the API endpoint (Base URL). Replace `https://toapis.com` with `https://toapis.cn` in the examples in this document. ToAPIs maintains three separate account-level token buckets: **asynchronous task submission**, **asynchronous task status queries**, and **synchronous model requests**. None of the three consumes allowance from the others. ## Scope and Concurrency Clarifications - **Account-wide total, shared across all models and API keys**: Limits are counted by user ID, not per Token and **not per model**. All API keys and all models within the same bucket share one allowance. - **Async task coverage**: Asynchronous image generation/edits, video generation (including extend and remix), Suno music generation, and Midjourney async tasks share the async submit and query buckets. - **Request rate (RPM / burst), not a fixed in-flight concurrency cap**: The `300` figure for the `default` group is a **requests-per-minute (RPM)** limit, not a hard limit on simultaneously running tasks. - **Instantaneous bursts are bounded by bucket capacity**: Async submission uses a **10-second burst capacity** (`50` for `default`). Even within your per-minute allowance, firing more concurrent submit requests than the burst capacity in a short spike immediately returns `429 rate_limit_exceeded`, and tokens refill smoothly at the sustained RPS rate. - **Model service limits are separate from account limits**: In addition to account-level limits, individual model services may apply their own throttling during peak load. Handle those with `Retry-After` and exponential backoff as well. ## Async Task Rate Limits | Group | Submit RPM | Submit RPS | 10s burst | Query RPM | Query RPS | 10s burst | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | `default` | 300 | 5 | 50 | 3,000 | 50 | 500 | | `vip` | 1,000 | 16.7 | 167 | 10,000 | 166.7 | 1,667 | | `svip` | 2,000 | 33.3 | 334 | 30,000 | 500 | 5,000 | Business failures consume allowance; requests rejected with `429` do not. One batch-status request counts once and may contain at most 100 task IDs. ## Synchronous Model Rate Limits Synchronous model endpoints (such as `/v1/chat/completions`, `/v1/messages`, `/v1/responses`, embeddings, speech/transcription, and synchronous image endpoints) use a separate account-wide token bucket shared across all synchronous models and API keys, without consuming async task limits: | Group | Total RPM | Sustained RPS | Notes | | --- | ---: | ---: | --- | | `default` | 300 | 5 | Shared across all synchronous models and API keys under the account (business failures count; `429` does not) | | `vip` | 1,500 | 25 | Shared across all synchronous models and API keys under the account (business failures count; `429` does not) | | `svip` | 3,000 | 50 | Shared across all synchronous models and API keys under the account (business failures count; `429` does not) | ## Rate-Limit Headers and Error Handling Every async rate-limited response can include (synchronous total-limit rejections return `X-RateLimit-Category: model_total`, `X-RateLimit-Limit`, and `Retry-After`): ```text X-RateLimit-Limit X-RateLimit-Remaining X-RateLimit-Reset X-RateLimit-Category: async_submit | async_query Retry-After ``` ```json 429 { "error": { "code": "rate_limit_exceeded", "message": "Async task request rate exceeded" } } ``` If the rate-limiting service is temporarily unavailable, query requests may pass through temporarily while submit requests return `503 rate_limit_unavailable`. ```json 503 { "error": { "code": "rate_limit_unavailable", "message": "The async task submit limiter is temporarily unavailable" } } ``` Use Webhooks as the primary completion signal and polling as a supplement. Poll no faster than every 5–10 seconds, add random jitter, honor `Retry-After`, and use exponential backoff after `429` or `503`. See [Task Webhooks](/docs/en/api-reference/webhooks/task-webhooks).