Skip to main content
Paid models have no requests-per-minute limit on NagaAI: your balance and each key’s spending limit bound them instead. Free models share a rate limit per account. Every request has size and time limits, and the network edge caps traffic from one IP address.

Free models

Models whose id ends in :free share one limit per account, at any balance. Every key and every free model on the account counts toward it: Over the limit you get 429 rate_limit_exceeded with a Retry-After header in seconds. The message names the limit you hit and the wait, for example:
To go past the limit, add credits on the Credits page and call a model without :free. Paid models have no request limit.

Balance

While a paid request runs, NagaAI reserves 0.05 credits of your balance and releases the reserve when it charges the real cost. The number of paid requests that can run at the same time is your balance divided by 0.05, rounded down. With $2.00 you can run 40 at once. Below $0.05 a paid request fails with 402 insufficient_quota.

Key spending limit

A key can carry its own credit_limit, set on the API Keys page or through the API. When the key’s spend reaches the limit, its requests fail with 403 credit_limit_exceeded. NagaAI checks the limit before a request starts, so the last request can take the spend slightly past it.

Request size and time

NagaAI refuses a request body that is too large or arrives too slowly:

Traffic from one IP address

More than 300 requests in 10 seconds from one IP address to api.naga.ac are blocked for 10 seconds at the network edge, before they reach NagaAI.

Overload

When NagaAI is shedding load, it returns 503 with Retry-After: 1. NagaAI sends no x-ratelimit-* headers, so read Retry-After to decide when to try again.