To ensure fair usage and system stability, the API enforces rate limits.We implement a leaky bucket algorithm to limit the number of requests per second. The current rate limits are configured as follows:
Rate: 30 requests per second (You can make up to 30 requests per second on average)
Burst: 60 requests (You have a burst capacity of 60 requests that can be used when needed)
Period: 1 second (The rate limit window resets every 1 second)
This allows for short bursts above the average rate (up to 60 requests) while maintaining a steady average rate of 30 requests per second over time. If you exceed the burst capacity, requests will be rate limited until capacity becomes available again.
The rate limits are applied per API key.
You can see the rate limit status in the API response by checking the extensions.rateLimit field.
When rate limited, the API will return an error response indicating the limit has been exceeded. The response includes detailed information about the rate limit status in the extensions field: