Mistral API Endpoint: Base URL and Client Setup
Updated
Two routes, one base URL, one model ID. This page lists them exactly and shows how to enter them in common clients.
Key points
- The base URL is https://api.mistraluncensored.top/v1 and the model ID is uncensored.
- Only two routes exist: POST /v1/chat/completions and GET /v1/models.
- Most connection failures come from a doubled /v1, a missing key or a wrong model name.
- Streaming, tools and JSON mode all work through the same chat route.

Connection details at a glance
If you need the mistral api endpoint for a client that you want to point at this service, these are the values. Note the caveat that matters: this is not the vendor's own server. It is an independent host of one open-weight model, run by an independent provider, with the OpenAI chat protocol on the front. Clients written for OpenAI-style APIs connect to it after you change the address and the key.
| Setting | Value |
|---|---|
| Base URL | https://api.mistraluncensored.top/v1 |
| Chat route | POST https://api.mistraluncensored.top/v1/chat/completions |
| Models route | GET https://api.mistraluncensored.top/v1/models |
| Model ID | uncensored |
| Auth header | Authorization: Bearer <key> |
| Max request body | 8 MB |
Get a key on the API key page. Everything below explains where each value goes.
What the endpoint supports
The surface is small on purpose. Two methods are available. POST /v1/chat/completions handles every text generation request. GET /v1/models returns the model list, which is handy as a no-cost connectivity check. There are no routes for embeddings, images, audio, video or fine-tuning, so a client that insists on calling one of them will fail even with the right base URL.
Inside the chat route you get the features most applications need:
- Streaming over SSE with
stream: true, with token usage reported at the end. - Tool calling with
toolsandtool_choice, streamedtool_calls, and results sent back asrole: "tool"messages. - JSON mode via
response_format: {"type":"json_object"}. temperature,top_p,stop,seedand the penalties, passed through to the model.
The context window is 100,000 tokens, shared between prompt and completion. You may leave out max_tokens, in which case the completion can use the rest of the window.
Raw HTTP: curl and Node
Before involving any framework, make one plain request. It isolates the endpoint from your client's quirks.
curl https://api.mistraluncensored.top/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Which route am I calling?"}],
"stream": false
}' The same call from Node with the official openai package needs the base URL and key at construction time. Streaming is a flag on the request.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.mistraluncensored.top/v1",
apiKey: process.env.API_KEY,
});
const stream = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Write a limerick about a ferry." }],
stream: true,
});
for await (const part of stream) {
process.stdout.write(part.choices[0]?.delta?.content ?? "");
}If you work in Python, the docs carry the equivalent snippets, and the article on a Mistral-style API explains how this service relates to the vendor's own product.
LangChain and SillyTavern
LangChain
The OpenAI chat class accepts a custom base URL. You do not need a special integration, because the protocol is the standard one.
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
base_url="https://api.mistraluncensored.top/v1",
api_key="YOUR_KEY",
model="uncensored",
temperature=0.7,
)
print(llm.invoke("Give me a one-sentence pitch for a heist story.").content)SillyTavern
SillyTavern lets you add an OpenAI-compatible endpoint. Open the API connection panel, pick the chat completion type, and choose the custom OpenAI-compatible source. Enter the base URL https://api.mistraluncensored.top/v1, paste your key, and set the model to uncensored. Press connect. If the status turns green, the model list call worked. Menu names shift between SillyTavern versions, so match them by meaning rather than exact wording.
For roleplay, set the context size in the app at or under 100,000 tokens, and keep the response length reasonable, since output tokens cost more than input tokens. The service is meant for lawful adult use such as fiction, roleplay and companion apps, and it will not produce sexual content involving minors.
Mistakes that break the connection
Nearly every failed setup comes down to a short list of typing errors. Walk through it in order.
- A doubled or missing /v1. Most OpenAI-style clients append
/chat/completionsto whatever base URL you give them, so the base must end at/v1. If you enter the full chat route as the base, requests go to/v1/chat/completions/chat/completionsand fail. Some tools instead ask for the complete route. Read the field label. - A wrong model name. Clients often default to names from other vendors. Set
uncensoredby hand. If you are unsure, call the models route. - A missing bearer prefix. Raw HTTP clients must send
Authorization: Bearerfollowed by the key. SDKs add the prefix for you. - Trailing whitespace in the key. Copying from a terminal often adds a newline.
- A browser calling the API directly. That exposes your key and may be blocked by cross-origin rules. Call from a server.
- A proxy or firewall. Corporate networks sometimes block unknown hostnames. Test with curl from the same machine.
A quick diagnosis routine
When a client reports a vague failure such as network error or invalid response, do not guess. First call the models route with curl from the same machine. If that works, the address, the key and the network path are fine, and the fault sits in the client settings. If it fails, read the status code and the body, because the JSON error usually names the problem. Next send a minimal chat request with a single short user message and stream set to false. If that passes but your app fails, the difference is in the extra fields your app adds, so remove them one by one: tools, a very long history, an unusual stop sequence. Streaming issues often come from a proxy that buffers responses. Many reverse proxies hold SSE data until the response ends unless buffering is disabled for that route, which makes a stream look frozen and then dump all text at once. Turn buffering off for the path, or test without the proxy to confirm.
Keep the X-Request-Id value from any failed call. It is the quickest way to point the operators at one exact request through the support page, and it avoids long descriptions of what you think happened.
Request bodies are capped at 8 MB. A giant pasted document can exceed that long before it reaches the 100,000-token window, so split it.
Limits, headers and error codes
Every response carries four headers worth logging: X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency. Together they tell you which call failed, how much credit remains and what ceiling applies to your key.
A full key gets 8 concurrent requests and 300 requests per minute. A trial key gets 2 concurrent and 60 per minute. When you pass a limit, the API answers with HTTP 429. The error code rate_limited signals the per-minute cap, and concurrency signals too many parallel calls. During temporary overload you also get 429 with Retry-After: 5, so a fixed five-second wait is the right first response.
Remember that a streaming request holds its slot until the last event arrives. An app that opens eight long streams and forgets to close cancelled ones will block itself even though it sends few requests per minute.
Costs and next steps
Billing is per token from prepaid credit: $0.15 per 1M input tokens and $0.50 per 1M output tokens. A roleplay turn with 6,000 tokens of history and a 400-token reply costs 6,000 × $0.15 / 1M = $0.0009 plus 400 × $0.50 / 1M = $0.0002, so $0.0011. Failed or refused requests are not charged, and credit never expires.
Start with the $0.50 trial credit, which you can claim with one click after sign-up. It lasts 7 days and needs no card. When you are ready to fund the account, top up any whole amount from $20 to $500 by crypto (USDT, USDC), with bonuses of 5%, 10% and 15% from $50, $100 and $200. The pricing page shows the exact figures. Prompts are not used for training.
More guides
Questions and answers
What is the base URL?
https://api.mistraluncensored.top/v1. Clients append the route, so chat requests go to /chat/completions under that base.
Is this the official Mistral server?
No. It is an independent host of one open-weight model with an OpenAI-compatible interface, not the official API of Mistral or any other vendor.
Which model ID do I put in my client?
Use uncensored. It is the only model ID, and GET /v1/models will list it.
Does the endpoint support embeddings or images?
No. It is text only, with chat completions and a model list route. There is no embeddings, image, audio, video or fine-tuning support.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.