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

> ## Agent Instructions
> Authenticate every request with your API key in the `X-API-Key` header or `Authorization: Bearer`. Keys start with `sk-nunchux-`.
> Image generation is synchronous: the image is in the response.
> Video generation is asynchronous: submit the job, poll its task until it reaches a terminal status, then download the output promptly, because output URLs expire.

# Rate Limits

> Per-plan caps on requests per minute and simultaneous jobs, which requests count toward each, and how to back off from a 429.

# Rate Limits

### Understand and manage how many requests you can run simultaneously on Nunchux

## Plan Limits

Every API key bills an account, and the account is on a plan. The plan sets two independent caps: requests per minute, and simultaneous jobs. The caps belong to the account, so every key billed to the same account shares them. On a team, that account is the team.

| Plan | Requests per Minute | Simultaneous Jobs |
| - | - | - |
| Free | 60 | 5 |
| Pro | 200 | 10 |
| Enterprise | 600 | 20 |

An Enterprise account can also have its own caps, which replace the plan caps above. To change your caps, contact us. `GET /v1/credits` always returns the caps that apply to your account.

## Checking Your Caps

Read your caps at any time from `GET /v1/credits`, which takes no parameters and returns the account the key bills. On a team key, that is the team. It uses the same API key for [authentication](https://docs.nunchux.ai/authentication.md) as every other endpoint.

```bash curl theme={"system"}
curl https://api.nunchux.com/v1/credits \
  -H "X-API-Key: $NUNCHUX_API_KEY"
```

```python python theme={"system"}
import os
import requests

response = requests.get(
    'https://api.nunchux.com/v1/credits',
    headers={'X-API-Key': os.environ['NUNCHUX_API_KEY']},
    timeout=30,
)
response.raise_for_status()

print(response.json())
```

A `200` carries the caps that apply to your plan: `rpm_limit` is your requests per minute and `concurrent_limit` is your simultaneous jobs. The same response carries your balance. See [Checking Your Balance](https://docs.nunchux.ai/credits-pricing.md#checking-your-balance) for every field. The API returns [standard error codes](https://docs.nunchux.ai/errors.md) with a JSON error body.

> [!NOTE]
>
> Polling
>
> This poll is free and it never takes a job slot. It still counts toward your requests per minute.

## What Counts

Every authenticated request counts toward requests per minute, polls included. Only requests that start a generation take a job slot, and how long they hold it depends on the kind of request.

| Request | Requests per Minute | Job slot |
| - | - | - |
| Async submit: Kling, Seedance, HeyGen | Counts | Takes a slot. A rejected submit does not. |
| Synchronous generation: `/v1/images/*`, `/v1/videos/*` | Counts | Holds a slot for the duration of the request. |
| Nano Banana: `/v1/google/v1beta/interactions` | Counts | No slot. The call is synchronous and returns in seconds. |
| Status polls | Counts | No slot. |
| Account reads: `GET /v1/credits`, `GET /v1/discounts`, `GET /v1/heygen/v3/voices` | Counts | No slot. |

## When You Hit a Limit

The API returns a `429` for both caps. The error code says which cap you hit.

### Requests per Minute

```json theme={"system"}
{
  "error": {
    "code": "rpm_limit_exceeded",
    "message": "Rate limit exceeded. See the rate-limit response headers for your limit and reset time."
  }
}
```

> [!NOTE]
>
> What to do
>
> Wait, then retry with exponential backoff: 1s, 2s, 4s, 8s. Cap at five attempts. Spreading submits evenly over the minute avoids it altogether.

### Simultaneous Jobs

```json theme={"system"}
{
  "error": {
    "code": "concurrent_limit_exceeded",
    "message": "Concurrent job limit reached. Wait for a running job to finish, then retry."
  }
}
```

> [!NOTE]
>
> What to do
>
> Retrying quickly will not help. Wait, poll your running jobs, and submit again once one has completed.

The full error contract is on the [Errors](https://docs.nunchux.ai/errors.md) page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.