To ensure fair usage and stability, the Sunbird AI API implements rate limiting.Documentation Index
Fetch the complete documentation index at: https://sunbirdai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Limits
While specific limits may vary based on your account tier, general guidelines are:- Authentication: High limits, but avoid excessive login requests. Reuse tokens.
- Inference (Translation, STT, TTS): Moderate limits. Avoid bursting hundreds of requests per second.
- Large Files: Limited concurrency for large file processing.
Handling Rate Limits (429)
If you exceed the rate limit, you will receive a429 Too Many Requests response.
Best Practices
- Reuse Tokens: Do not generate a new access token for every request. Generate one and use it until it expires (7 days).
- Batch Processing: If you have many items to process, send them sequentially or with controlled concurrency, rather than all at once.
- Exponential Backoff: When you receive a
429or503error, wait for a short period (e.g., 1 second), then retry. If it fails again, wait longer (2 seconds, 4 seconds, etc.).
