# Errors, rate limits and retries

Source: https://aicallstudio.com/docs/developers/errors-and-limits

What an API error looks like, every status and error code, how many requests each plan may make a minute, and how to retry without doing anything twice.

## Before you start

- Log the X-Request-Id of every answer. It is the fastest way for us to find a request when you ask.

## What should my code retry?

Retry 429 after the seconds in Retry-After, and 500, 502 and 503 after a short wait, with the same Idempotency-Key, so nothing is done twice. Do not retry 400, 401, 402, 403, 404 or 422 unchanged: the same request gets the same answer. A 409 may succeed later, once the reason in its detail has passed.

## Costs and what to watch

- A write sent again without an Idempotency-Key is a new request: a retried call without one can ring the person twice.

## Questions

### What is the AI Call Studio API rate limit?

A set number of requests a minute per key, across every endpoint, by plan: the table on this page is read from the API itself. The next request answers 429 with a Retry-After header in seconds.

Every endpoint, field and error: https://aicallstudio.com/docs/api