Quickstart for MiniMax users
Integrate our uncensored LLM into your existing stack by updating your base URL and API key. This guide covers the three lines of configuration needed to switch from standard OpenAI-compatible clients to our endpoint.
uncensoredhttps://api.minimaxapi.cc/v1
Base URL and Authentication
To route requests to our server, set the base URL tohttps://api.minimaxapi.cc/v1 in your client configuration. Authentication relies on a single API key generated during signup via Google or email. Pass this key in the Authorization header as a Bearer token. If the key is invalid, the server returns a 401 error. Ensure your key is active, as each account supports only one key at a time; generating a new one immediately invalidates the previous key. This setup ensures your existing OpenAI-compatible SDKs work without code changes, merely pointing to our infrastructure.
First Request: Chat Completions
The core endpoint isPOST /v1/chat/completions. Send a JSON payload containing the model name "uncensored" and your conversation messages. The model responds with text output. You can control the response style using parameters like temperature and top_p. If you encounter a 402 error, your prepaid credit is exhausted. Errors and refusals do not consume tokens, so you are only charged for successful content generation. Use this endpoint for all text-based interactions, keeping in mind we do not handle images, audio, or embeddings.
Python SDK Integration
Using the official OpenAI Python library is the fastest way to integrate. Initialize the client with your API key and the correct base URL. The model ID isuncensored. You can send messages just as you would with any standard LLM client. This approach works because our API strictly follows the OpenAI chat-completions protocol. The client handles the HTTP requests and response parsing automatically. Remember that our service is uncensored, meaning the model will answer controversial or adult topics without the typical refusals found in other vendors, provided the content is lawful.
Node.js SDK Integration
For Node.js developers, the@anthropic-ai/sdk or openai packages work seamlessly. Set the baseURL to our endpoint and provide your key. The model field should be set to uncensored. This allows you to reuse your existing inference logic without rewriting request handlers. The client library manages the connection and data serialization. Since we use standard OpenAI-compatible formats, you can swap between vendors easily. Ensure you handle responses correctly, as the structure matches the standard OpenAI output format, including choices and finish reasons.
Streaming Responses
Enable streaming by settingstream: true in your request. The server returns a Server-Sent Events (SSE) stream. Each chunk contains partial text updates. The final chunk includes the token usage statistics for the request. This feature is ideal for real-time UI updates. The uncensored model supports streaming just like standard models. You can parse the stream to display text token-by-token. This reduces perceived latency for users. Note that streaming does not affect token counting; you are charged based on the total tokens in the final usage report.
Token Limits, Errors, and Context
The context window is 100,000 tokens for prompt and completion combined. If you do not specifymax_tokens, the response can run to the end of the 100,000-token window. Rate limits are strict: 300 requests per minute and 8 concurrent requests per key. A 429 error indicates you have exceeded these limits. Request bodies must be under 8 MB. If you send invalid JSON or use an unsupported parameter, you receive an error without token charges. Our API is designed for high-throughput text generation, so monitor your concurrent request count to avoid throttling.cURL
curl https://api.minimaxapi.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'Python
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": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.minimaxapi.cc/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);Streaming
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Tell the story in second person."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)API facts in one table
One table with every limit, feature and price that applies to your key.
| Spec | Value |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Model | uncensored |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.minimaxapi.cc/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Context window | 100,000 tokens, input and output combined |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| JSON mode | JSON object mode via response_format json_object |
| Rate limit | 300/min per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Max body | 8 MB request body |
| Parallel requests | up to 8 in parallel per key |
| Free trial | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Subscription | no monthly fee; paid credit does not expire |
| Keys | one active key per account; a new key replaces the old one |
| Sign-in | sign in with Google or with e-mail + password |
| Content policy | adult content allowed; sexual content involving minors is refused |
Errors and what to do
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
What happens if I exceed my token limit?
You receive a 402 error indicating your prepaid credit is exhausted. Errors and refusals do not consume tokens, so you can retry without charge. Credit never expires, so you can top up at any time.
Is the uncensored model the same as GPT-4 or Claude?
No. It is an open-weight model run on our own servers, tuned to answer without content refusals. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, Llama, or any other vendor's model.
Can I use multiple API keys simultaneously?
No. Each account supports only one active key. Generating a new key immediately invalidates the previous one. This simplifies billing and usage tracking for your application.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
On this page
- Base URL and Authentication
- First Request: Chat Completions
- Python SDK Integration
- Node.js SDK Integration
- Streaming Responses
- Token Limits, Errors, and Context
Start with trial credit
Email and password, key on screen right away.