Rate Limits
Understanding Klyra API rate limits and quotas
Overview
Klyra implements rate limiting to ensure fair usage and system stability. Rate limits vary by subscription plan and are applied at both the request level and the account level.
Rate Limit Types
Klyra enforces several types of rate limits:
- Requests per minute (RPM): Limits the number of API requests you can make per minute
- Requests per day (RPD): Limits the total number of API requests per day
- Concurrent requests: Limits the number of simultaneous requests your account can make
- Payload size: Limits the size of content that can be moderated in a single request
Rate Limit Headers
All API responses include headers that provide information about your current rate limit status:
Header | Description |
---|---|
X-RateLimit-Limit | The maximum number of requests per minute |
X-RateLimit-Remaining | The number of requests remaining in the current minute |
X-RateLimit-Reset | The time in seconds until the rate limit resets |
X-Daily-Limit-Remaining | The number of requests remaining for the current day |
Rate Limits by Plan
Handling Rate Limits
When you exceed a rate limit, the API will return a 429 Too Many Requests
status code with a JSON response body containing information about the limit and when it will reset:
Best Practices for Rate Limit Management
- Implement exponential backoff: When receiving a 429 response, use exponential backoff to retry the request:
-
Use a request queue: Implement a queue system to throttle your requests and stay within rate limits.
-
Monitor your usage: Check the rate limit headers to track your usage and adjust your request patterns accordingly.
-
Batch requests when possible: Instead of sending many small requests, batch them together when your use case allows.
Increasing Your Rate Limits
If you need higher rate limits than what your current plan provides:
-
Upgrade your plan: Visit the pricing page to find a plan that meets your needs.
-
Enterprise customization: For enterprise customers, we offer customized rate limits tailored to your specific requirements. Contact sales to discuss your needs.
-
Temporary increases: If you need a temporary rate limit increase for a specific event or campaign, contact support at least 5 business days in advance.