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:| Header | Description |
|---|---|
X-RateLimit-Limit | The maximum number of requests allowed in the current time window |
X-RateLimit-Remaining | The number of requests remaining in the current time window |
X-RateLimit-Reset | The time at which the current rate limit window resets (UTC epoch seconds) |
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
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.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