Rate Limiting
Eden AI applies rate limits to API usage based on your subscription plan. Rate limiting ensures fair usage and helps maintain optimal performance for all users.
Rate Limits by Plan
The maximum number of API calls allowed per second depends on your current plan:
- Free Plan: 1 call/second
- Pro Plan: 3 calls/second
- Team Plan: 6 calls/second
- Growth Plan: 15 calls/second
What Happens if You Exceed the Limit?
If your API usage exceeds the rate limit for your plan, the API will return a 429 Too Many Requests error. This error indicates that your application is making requests faster than the allowed limit.
Response Example:
{
"error": {
"code": 429,
"message": "Rate limit exceeded. Please wait before making additional requests."
}
}
Recommendations for Handling Rate Limits
- Implement Retry Logic: If you encounter a 429 error, use exponential backoff to wait before retrying the request.
- Upgrade Your Plan: If you frequently hit the rate limit, consider upgrading to a higher plan to increase the allowed request rate.
- Optimize Your Requests: Consolidate requests when possible to reduce the overall number of API calls.
By understanding and managing rate limits effectively, you can ensure uninterrupted usage of the Eden AI API. For more details about plans and their limits, refer to the Pricing Page.
Updated about 1 month ago