Except for upload API, all our APIs are rate-limited to protect our infrastructure from excessive request rates and to keep ImageKit.io fast and stable for everyone.
Rate limiting is done across the account. When you exceed the rate limits for an endpoint, you will receive a
429(Too many requests) response code.
Staying within the rate limits
If you receive a response status code of 429 (Too Many Requests), please sleep/pause for the number of milliseconds specified by the value of
X-RateLimit-Resetresponse header before making additional requests to that endpoint.
Rate limits are specified for a specific interval. So if an endpoint allows 100 requests per second (1000 milliseconds), and you exceed this rate, your application will receive a 429 response code. Every endpoint can have different limits, and these limits are exposed via rate-limiting headers, as explained below.
A single endpoint can have multiple limits, for example, a 100 request per second limit along with 1000 limits for a 15-minute duration.
In response to every API request, you will also receive the following response headers. Use these headers to stay within rate limits or pause/sleep your workflow in case you exceed the limits.