Rate limits
How many requests you can send per minute and at the same time, and how the API tells you where you stand.
Overview
Three limits are checked on every API request, in this order:
- Parallel requests — how many requests of one account may run at the same moment.
- Per-key requests per minute — counted for each API key over a sliding 60-second window.
- Per-account requests per minute — all keys of the account together, also over 60 seconds.
On paid plans, tokens are not rate limited per minute. A free account also has a limit of 400K tokens per minute for the whole account; above it the API answers 429 with the code free_tpm_limit and a Retry-After header. Your plan's token allowance is a separate budget; when it is used up you get a 402, not a 429 (see Usage and billing).
Requests per minute by plan
| Plan | Requests per minute (whole account) |
|---|---|
| Free | 30 |
| Starter | 120 |
| Basic | 300 |
| Pro | 600 |
| Scale | 1,200 |
| Ultra | 1,500 |
The number is for the account. If you have five keys on a Pro plan, the five keys share 600 requests per minute; creating more keys does not raise the limit. Prices and token amounts are on Pricing.
When a plan starts or ends, the limit on your keys is updated to the new plan.
Per-key limit
Every key carries the plan's requests per minute. You can set a lower number on a single key in Dashboard → API keys (field Requests per minute) — useful to stop one script or one teammate from using the whole account limit. A per-key value can never be higher than the plan's limit. See API keys.
Parallel requests
One account can have up to 10 requests running at the same time on a paid plan, and up to 3 on the free plan. A request counts from the moment it is accepted until its answer (or stream) ends.
When tokens are nearly used up, fewer parallel requests are allowed: each running request needs 65,536 tokens left on the account. With 200,000 tokens left you can run 3 requests at once; below 131,072 tokens, one at a time. This stops parallel calls from running far past the allowance together.
Rate limit headers
Successful requests that pass the checks carry these headers:
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 597
X-RateLimit-Reset: 1795612860
X-RateLimit-Limit-Tokens: 200000000
X-RateLimit-Remaining-Tokens: 183412904
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests per minute allowed for this key. |
X-RateLimit-Remaining | Requests this key can still send in the current 60-second window. |
X-RateLimit-Reset | Unix time (seconds) when the window has room again. |
X-RateLimit-Limit-Tokens | The account's token allowance (not a per-minute number). |
X-RateLimit-Remaining-Tokens | Tokens left on the account. |
When you hit a limit
You get HTTP 429 with a Retry-After header in seconds:
{
"error": {
"message": "Rate limit reached. You are allowed up to 600 requests per minute on your current plan. Please wait 12s or upgrade your plan at freemodel.in/dashboard/plan.",
"type": "rate_limit_error",
"code": "rate_limit_exceeded"
}
}
| Code | Which limit |
|---|---|
rate_limit_exceeded | Per-key requests per minute. |
account_rate_limit_exceeded | All keys of the account together. |
too_many_concurrent | Parallel requests. Retry when one of your running requests finishes. |
free_tpm_limit | Free plan tokens per minute (400K for the whole account). |
On the Anthropic endpoint (/v1/messages) the body uses the Anthropic error shape with "type": "rate_limit_error", and the response also carries Retry-After: 3 and retry-after-ms: 3000.
Two other limits are not 429s: used-up tokens (tokens_exhausted) and a key's own token or spend limit (key_token_limit_reached, key_spend_limit_reached) answer HTTP 402, because waiting a minute does not fix them.
Handling limits in code
- Read
Retry-Afterand wait that long before the next try. - Cap your own concurrency at 10 or less per account (3 on the free plan); a queue with a fixed number of workers is simplest.
- Spread batch jobs over time instead of sending them in one burst.
- Use separate keys with lower per-key limits for background jobs, so they cannot starve interactive use.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.FREEMODEL_API_KEY,
baseURL: "https://freemodel.in/v1",
maxRetries: 3, // the SDK retries 429 and 5xx with backoff
});
const r = await client.chat.completions.create({
model: "gpt-6-luna",
messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);