MiniMax API Usage Limits: Context, Rate, Concurrency
If you are checking minimax api usage limits before you build, here are the numbers for this service: a 100,000-token context window, 300 requests per minute and 8 concurrent requests on a full key. This is an independent hosted model, not the official MiniMax API, so MiniMax's own limits do not apply here.
Updated

Key points
- Context window is 100,000 tokens, prompt plus completion together.
- Full key: 8 concurrent requests and 300 per minute. Trial key: 2 and 60.
- Maximum request body is 8 MB. max_tokens is optional.
- Going over returns HTTP 429 with code rate_limited or concurrency, so retry with a wait.
All limits at a glance
| Limit | Full key | Trial key |
|---|---|---|
| Concurrent requests | 8 | 2 |
| Requests per minute | 300 | 60 |
| Context window (prompt + completion) | 100,000 tokens | 100,000 tokens |
| Maximum request body | 8 MB | 8 MB |
| Maximum completion length | Rest of the window | Rest of the window |
The trial key is the one you get when you claim the $0.50 trial credit on the key page. The full key limits are the higher column. max_tokens is optional on both. Nothing here is a daily or monthly token cap: you are limited by speed and parallelism, and by how much credit you have, not by a quota that resets.
Every response carries headers that tell you where you stand: X-Request-Id for support requests, X-Balance-USD for your remaining credit, and X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency for the two ceilings applied to your key.
How the 100,000-token context window works
The window is shared. Your prompt, which includes the system message, the whole chat history and any tool results, plus the model's reply, must fit in 100,000 tokens. If your prompt is 90,000 tokens, the reply can use at most about 10,000. If you send 20,000, the reply can run to about 80,000.
Because max_tokens is optional, you do not have to set a cap at all, and the completion may use all the space left. In practice, set one anyway when you know the shape of the answer. A cap of 500 on a classification job stops a runaway reply from costing money and holding a connection open.
Long contexts are cheap on this price list but not free, so it helps to know the ceiling. A request that fills the whole window with 100,000 input tokens costs 100,000 times $0.00000015, which is $0.015. A request with 90,000 tokens in and 10,000 out costs $0.0135 plus $0.005, a total of $0.0185. Two cents for the largest prompt you can send means context size rarely decides the budget. Request count does.
A token is not a word. English prose averages somewhat under one token per word and a bit more for code, numbers and non-Latin scripts, so count with a tokenizer when you need an exact figure. The response includes a usage block with the real prompt and completion counts, and that is the number you are billed on:
from openai import OpenAI
client = OpenAI(base_url="https://api.minimaxapi.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarize the plot of Hamlet in one paragraph."}],
)
u = resp.usage
cost = u.prompt_tokens * 0.15 / 1_000_000 + u.completion_tokens * 0.50 / 1_000_000
print(u.prompt_tokens, u.completion_tokens, round(cost, 6))Rate limit versus concurrency
The two request limits protect against different things, and the error code tells you which one you hit.
- Requests per minute counts how many requests you start in a rolling minute. Going over returns HTTP 429 with the error code
rate_limited. - Concurrency counts how many requests are in flight at the same moment. Going over returns HTTP 429 with the error code
concurrency.
One thing surprises people: a streamed request holds its concurrency slot until the stream ends, not until the first token arrives. If you open 8 streams for a long story each and leave them running, a ninth request is refused even though you have sent only a few requests that minute. For interactive apps, close streams you no longer read, and cancel a stream if the user navigates away.
Throughput follows a simple formula. Concurrent slots times 60, divided by the seconds one request takes, gives the requests per minute you can sustain. The timings below are made-up inputs for the sum, not measurements of this service:
| Seconds per request | Sustained requests per minute with 8 slots | Binding limit |
|---|---|---|
| 30 | 16 | Concurrency |
| 10 | 48 | Concurrency |
| 2 | 240 | Concurrency |
| 1 | 480, capped at 300 | Rate limit |
Most real workloads with long generations sit in the upper rows, which means concurrency, not the 300 per minute figure, is the ceiling you meet first. Measure how long your own requests take, then do the same sum.
Handling 429 responses
A 429 is not a failure of your request, only a signal to wait. There are two cases. If you exceeded a limit, the error code says rate_limited or concurrency. On temporary overload the API also returns 429, and the response carries a Retry-After: 5 header. In both cases the right reaction is to pause and send the request again.
Turn off the SDK's own retries with max_retries=0 if you want to control the behaviour, then wrap calls like this:
import random
import time
from openai import OpenAI, RateLimitError
client = OpenAI(base_url="https://api.minimaxapi.cc/v1", api_key="YOUR_KEY", max_retries=0)
def ask(messages, attempts=6):
for n in range(attempts):
try:
r = client.chat.completions.create(model="uncensored", messages=messages)
return r.choices[0].message.content
except RateLimitError as e:
wait = float(e.response.headers.get("Retry-After", 2 ** n))
time.sleep(wait + random.random())
raise RuntimeError("still rate limited after retries")
print(ask([{"role": "user", "content": "Give me one sentence about tides."}]))
The wait honours Retry-After when present and falls back to exponential backoff when it is not. The random second added at the end spreads out retries so that many workers do not wake in the same instant.
Retrying cures a burst, but a steady overload needs a smaller sender. Cap your own parallelism at the limit of your key so the problem never starts. An asyncio semaphore does it in a few lines:
import asyncio
from openai import AsyncOpenAI
client = AsyncOpenAI(base_url="https://api.minimaxapi.cc/v1", api_key="YOUR_KEY")
gate = asyncio.Semaphore(8) # use 2 on a trial key
async def one(prompt):
async with gate:
r = await client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": prompt}],
)
return r.choices[0].message.content
async def main():
prompts = [f"Write a haiku about wave {i}." for i in range(40)]
results = await asyncio.gather(*(one(p) for p in prompts))
print(len(results))
asyncio.run(main())Body size, payload and other practical ceilings
The maximum request body is 8 MB. Plain text rarely comes close: 8 MB is millions of characters, far more than the 100,000-token window can hold anyway. The window will stop you first. The body limit matters mostly when a client attaches large tool outputs or encoded data to a request, so trim those before sending.
Everything on the API is text. There is no image, audio or video input or output, and no embeddings route, so those are not limits you can raise because the feature does not exist. The supported methods are POST /v1/chat/completions and GET /v1/models.
Features that do work within these limits include streaming over SSE with usage reported at the end, tool calling with streamed tool_calls, JSON mode through response_format, and pass-through of temperature, top_p, stop, seed and the penalties. A tool call result goes back as a message with role: "tool" and counts against the same context window as everything else.
One question about cost: nothing is charged for failed or refused requests, so a 429 never draws on your credit.
Planning around the limits
Start from your workload. A chatbot with a handful of simultaneous users fits comfortably inside 8 slots, because each user waits between messages. A batch job that summarizes thousands of documents is where limits matter, and it benefits from a worker pool sized at exactly the concurrency of your key rather than a larger one that triggers retries.
If one key is not enough for your traffic, talk to the team through the support page before building around workarounds. Setup basics are in the docs, and the pricing page lists the per-token rates behind the cost examples above. To test your retry code safely, get an API key and claim the trial credit, which has the lower trial limits and is a convenient place to see your first 429.
Finally, keep the two numbers you can actually control in view: how many requests you run at once, and how many tokens you put in each. The first decides whether you meet a 429. The second decides what a request costs.
More guides
Questions and answers
What is the context window of this API?
100,000 tokens, counting prompt and completion together. A longer prompt leaves less room for the reply.
What are the rate limits for a full key?
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent requests and 60 per minute.
What does HTTP 429 mean on this API?
You hit a limit or the service is briefly overloaded. The code is rate_limited for requests per minute and concurrency for too many at once. Wait and retry, and honour Retry-After: 5 when it is present.
Is there a daily or monthly token cap?
No quota is applied per day or month. You are limited by the speed and concurrency limits and by the credit in your account.
Do I have to set max_tokens?
No, max_tokens is optional, and the reply can use whatever is left of the 100,000-token window. Setting a cap is still sensible for short tasks.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
On this page
- All limits at a glance
- How the 100,000-token context window works
- Rate limit versus concurrency
- Handling 429 responses
- Body size, payload and other practical ceilings
- Planning around the limits
- More guides
Start with trial credit
Email and password, key on screen right away.