Understanding Rate Limits
Rate limits are applied on a per-API-key basis and vary depending on your subscription plan. Rate limits are calculated based on rolling time windows, typically per minute and per day.Rate Limit Headers
Every API response includes headers that provide information about your current rate limit status:
Example headers:
Rate Limit Errors
When you exceed your rate limit, the API returns a429 Too Many Requests error:
Retry-After header indicating how many seconds to wait.
Handling Rate Limits
Best Practices
1
Implement backoff and retry logic
When you receive a 429 response, use the
Retry-After header to determine when to retry. Use exponential backoff as a fallback.2
Monitor your usage
Check rate limit headers in API responses to stay within your limits.
3
Batch requests when possible
Combine operations to reduce the number of requests.
4
Cache responses
Cache API responses that don’t change frequently to reduce request volume.
Increasing Your Rate Limits
If you need higher rate limits:- Contact sales: Enterprise customers can request custom rate limits by contacting sales@meibel.ai
- Optimize your usage: Review our best practices to ensure efficient API usage