> ## Documentation Index
> Fetch the complete documentation index at: https://pixelcut.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate Limits

> Handle 429s safely with exponential backoff and jitter.

By default, Pixelcut API is rate limited (commonly **5 requests/second** per account). If you exceed the limit, you’ll receive a `429` with `error_code: rate_limit_exceeded`.

## Retry policy (recommended)

* Retry **only** on retryable responses (typically `429` and transient `5xx`)
* Use exponential backoff with jitter
* Add a max retry count and a max backoff cap

## Example backoff logic

```txt theme={null}
delay_ms = min(max_delay, base_delay * 2^attempt) + random(0, jitter)
```

## Example (Node)

```js theme={null}
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));

async function withRetries(requestFn, { maxRetries = 5 } = {}) {
  let attempt = 0;
  while (true) {
    const resp = await requestFn();
    if (resp.status !== 429 && resp.status < 500) return resp;

    if (attempt >= maxRetries) return resp;

    const base = 250 * 2 ** attempt;
    const jitter = Math.floor(Math.random() * 250);
    await sleep(Math.min(5_000, base + jitter));
    attempt += 1;
  }
}
```

<Card title="Batch / high-throughput processing" icon="layer-group" href="/user-guide/core-workflows/batch-edit" />
