Prerequisites
Check rate limit headers
Chat completion responses include request-level rate limit headers:Handle 429 responses
When you exceed a rate limit, the API returns a429 Too Many Requests response with a Retry-After header:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check rate limit headers and handle 429 responses.
| Header | Description |
|---|---|
Retry-After | Seconds until rate limit resets; present on 429 responses only (RFC 7231) |
X-RateLimit-Limit-Requests | Requests allowed per window |
X-RateLimit-Remaining-Requests | Requests remaining in current window |
X-RateLimit-Reset-Requests | ISO 8601 timestamp when the window resets |
429 Too Many Requests response with a Retry-After header:
{
"error": {
"message": "Rate limit exceeded. Retry after 12 seconds.",
"type": "rate_limit_error",
"param": null,
"code": "rate_limit_exceeded",
"doc_url": "https://docs.auriko.ai/errors/rate_limit_exceeded"
}
}