Switch your client in three lines
This quickstart guide shows you how to integrate with our uncensored, OpenAI-compatible API using the standard Mistral endpoint format. You will learn to authenticate, send requests, and handle streaming responses with zero configuration overhead.
Base URL & Authentication
To use the API, point your client to https://api.mistralapi.top/v1. Authentication relies on a bearer token included in the Authorization header. You generate this key via the Get API key page using either a Google account or a standard email/password setup. The key is displayed immediately upon creation. Keep this token secure, as it grants full access to your prepaid credit. Unlike standard providers, we do not require a phone number or credit card for the initial trial credit activation.
Our service is designed to drop directly into existing Mistral or OpenAI client configurations. Simply update the base_url property in your SDK instance. The endpoint structure matches the standard /v1/chat/completions format, ensuring that your existing code works without modification. We support a single model ID, uncensored, which handles all text generation tasks.
Chat Completions Endpoint
The core interaction happens via the POST /v1/chat/completions endpoint. You send a JSON body containing your model ID, messages array, and optional parameters. The API returns a text response or structured data if you specify JSON mode. This endpoint is the primary way to interact with the LLM. It supports both standard synchronous requests and streaming responses. Every request consumes tokens from your prepaid balance based on input and output volume.
Errors are handled via standard HTTP status codes. If your key is invalid, you receive a 401. If you run out of credit, you receive a 402. Rate limits are enforced at 300 requests per minute and 8 concurrent connections per key. Use the following example to verify your connection and key validity.
curl https://api.mistralapi.top/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."}]
}'
Streaming Responses (SSE)
For lower latency and better user experience, enable streaming by setting stream: true in your request body. The API returns a Server-Sent Events (SSE) stream. Each chunk contains a partial response. The final chunk includes the complete token usage statistics for the request. This allows your application to display tokens as they are generated, rather than waiting for the full completion. Streaming is ideal for chat interfaces where immediate feedback is critical.
When using streaming, ensure your client correctly parses the SSE format. The choices array in each chunk will contain delta content. You must accumulate these deltas to construct the full response. Token usage is only available in the last event of the stream. Use this method to keep your users engaged while the model processes complex prompts.
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)Python
from openai import OpenAI
client = OpenAI(base_url="https://api.mistralapi.top/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.mistralapi.top/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);Questions and answers
Is this the official Mistral API?
No. We are an independent service that mimics the Mistral API endpoint structure. We serve our own uncensored model, not Mistral's proprietary models. Use this API if you want the same client compatibility but with different content policies and pricing.
How do I top up my credit?
Top-ups are done by crypto (USDT on TRC20 or USDC on Base). Minimum top-up is $20, maximum is $500. You receive a 5% bonus for top-ups over $50 and a 10% bonus for top-ups over $100. PayPal is not accepted.
What is the context window limit?
The model supports a 100,000 token context window for both prompt and completion combined. There is no separate output cap per request, and if you do not specify the max_tokens parameter, the response can run to the end of the window.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Technical specifications
The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.
| Feature | Support |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Model | uncensored |
| Base URL | https://api.mistralapi.top/v1 |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Authentication | Bearer token in the Authorization header |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Streaming | Supported (stream: true), usage included at the end |
| Max context | 100,000 tokens (prompt + completion together) |
| Structured output | response_format: {"type": "json_object"} |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Request size | 8 MB request body |
| Parallel requests | up to 8 in parallel per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Requests per minute | 300 requests per minute per key |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Subscription | paid credit never expires, no subscription |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Trial credit | $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 |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Account | sign in with Google or with e-mail + password |
| Content | adult content allowed; sexual content involving minors is refused |
| Key management | one active key per account; a new key replaces the old one |
Errors and what to do
Every error is JSON with a type you can switch on. You are never charged for an error.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
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 | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |