Skip to main content

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. 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 as every other endpoint.
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 for every field. The API returns standard error codes with a JSON error body.
PollingThis 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.

When You Hit a Limit

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

Requests per Minute

What to doWait, then retry with exponential backoff: 1s, 2s, 4s, 8s. Cap at five attempts. Spreading submits evenly over the minute avoids it altogether.

Simultaneous Jobs

What to doRetrying quickly will not help. Wait, poll your running jobs, and submit again once one has completed.
The full error contract is on the Errors page.