Quickstart for Mistral users
Migrate to our uncensored Mistral API alternative by updating your base URL and key. Run identical client code against our 100k context model with transparent pay-as-you-go pricing.
Install Your OpenAI Compatible SDK
Since our API implements the OpenAI chat-completions standard, you can use any existing SDK. For Python, install the official openai package via pip. Node.js developers should install the openai npm package. These libraries handle serialization, retries, and streaming automatically.
You do not need a proprietary Mistral SDK. Using standard OpenAI-compatible clients ensures you can switch between providers easily. Ensure you have Python 3.8+ or Node.js 16+ installed before proceeding.
Configure Base URL and API Key
Authentication requires a valid API key and the correct base URL. Retrieve your key from the Get API key page after signing up with your email. You do not need a credit card for the trial.
Set your environment variables or pass them directly in your client initialization. The base URL for this service is https://api.mistralapikey.com/v1. This allows you to swap your existing Mistral or OpenAI configuration with minimal code changes. Your key can be regenerated at any time, revoking the previous one.
Send Your First Request
Send a standard chat completion request to test connectivity. Use the model ID uncensored to access our large language model. The endpoint accepts POST requests with JSON payloads containing messages and model.
Our model answers without content refusals for lawful adult use. It supports a 100,000 token context window for both input and output. Ensure your request body stays under 8 MB.
curl https://api.mistralapikey.com/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."}]
}'
Enable Streaming Responses
For real-time token generation, set the stream parameter to true. The API returns Server-Sent Events (SSE) instead of a single JSON object. This is ideal for chat interfaces or live terminal outputs.
Handle the stream by iterating over the chunks. Each chunk contains partial deltas of the response. This reduces perceived latency for users compared to waiting for the full completion. The uncensored model supports streaming natively.
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)
Use Tool/Function Calling
Our API supports structured tool calling via the OpenAI-compatible format. Define functions in the tools array and let the model decide when to call them. Pass the function name and arguments as returned by the model.
This enables complex workflows where the LLM interacts with external APIs or databases. Ensure your function definitions are valid JSON schemas. The model will respond with tool calls when appropriate, allowing you to execute logic and feed results back into the conversation.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.mistralapikey.com/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);
Check Available Models
Query the GET /v1/models endpoint to list available models. This returns metadata including the model ID, object type, and owner. Our service currently serves only the uncensored model.
This endpoint is useful for debugging or dynamic client configuration. It confirms your API key is valid and the service is reachable. Other vendors may list multiple models; we focus on delivering one high-quality, uncensored option without routing complexity.
Python
from openai import OpenAI
client = OpenAI(base_url="https://api.mistralapikey.com/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)What the API supports
The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.
| Parameter | Details |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| API key | Bearer token in the Authorization header |
| Base URL | https://api.mistralapikey.com/v1 |
| Model | uncensored |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Structured output | response_format: {"type": "json_object"} |
| SSE streaming | Supported (stream: true), usage included at the end |
| Max context | 100,000 tokens (prompt + completion together) |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Requests per minute | 300 requests per minute per key |
| Parallel requests | up to 8 in parallel per key |
| Max body | up to 8 MB per request |
| Subscription | paid credit never expires, no subscription |
| 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 |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Account | sign in with Google or with e-mail + password |
| Key management | one active key per account; a new key replaces the old one |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
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
How much does the uncensored Mistral API alternative cost?
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. There are no monthly fees or subscriptions. You can top up from $20 by crypto (USDT on TRC20, USDC on Base), with bonus credits available for larger deposits.
What happens if I exceed my rate limit?
You will receive a 429 Too Many Requests error. The limit is 300 requests per minute per API key. If you hit this, wait a moment or regenerate your key. Request bodies must also stay under 8 MB.
Is the trial credit valid forever?
No. New accounts receive $0.50 in trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is required to start. Paid prepaid credit, however, never expires.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.