EN ▾
Get API key

Switch your client in three lines

Drop your existing client configuration into our endpoint to access an uncensored model via the standard OpenAI-compatible protocol.

Base URL and Authentication

Our API mirrors the standard OpenAI chat-completions interface. You only need to update two fields in your client configuration: the base URL and the API key. The base URL is https://api.mistraluncensored.top/v1. Authentication is handled via the Authorization header using your unique key.

Sign up on the Get API key page using Google or an email/password. The key is displayed immediately. No phone number is required. Your account supports one active key; generating a new one replaces the old. We do not use your prompts for training, and the signup process is minimal.

First Request

Send a standard chat/completions request to test connectivity. Specify the model ID as uncensored. This open-weight model runs on our servers and is tuned to answer without content refusals for lawful adult use, while still blocking sexual content involving minors.

  • Context window: 100,000 tokens (prompt + completion).
  • Max output: up to the end of the 100,000-token window (max_tokens is optional).

Ensure your request body respects the 8 MB limit.

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": "Write a blunt product review of a cheap VPN."}]
  }'

Python SDK

Use the official OpenAI Python library. Point the base_url to our endpoint and set api_key to your key. The library manages serialization and parameter validation. Configure standard inference parameters like temperature, top_p, and stop as needed.

This setup works for any OpenAI-compatible client. You retain full control over the request payload. The model ID remains uncensored. No embeddings or image generation endpoints are available, so do not attempt to call them.

from openai import OpenAI

client = OpenAI(base_url="https://api.mistraluncensored.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 SDK

Initialize the OpenAI Node client with the custom base URL. Pass your API key and set the model to uncensored. You can include response_format for JSON mode or tools for function calling.

The SDK handles the HTTP transport. If you need streaming, use the stream helper. If you prefer synchronous responses, omit the stream flag. The API does not support fine-tuning or audio generation, so stick to text completion.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.mistraluncensored.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);

Streaming Responses (SSE)

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Each chunk contains partial completions. The final chunk includes the full token usage statistics for the request.

Streaming is useful for long responses that can run to the end of the 100,000-token window. Parse the SSE stream on your client side. The underlying model processes tokens efficiently, but network latency may vary based on your connection.

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)

Limits, Errors, and Context

Monitor your usage to stay within limits. Each key allows 300 requests per minute and 8 concurrent requests. The request body must not exceed 8 MB. If you exceed these limits, the API returns an error status indicating rate limiting or capacity issues.

If authentication fails, you receive a 401 status for an invalid or missing key. If you lack funds, a 402 status indicates insufficient credit. Errors during processing are free; you are only charged for successful token usage. Credit never expires, and prepaid amounts are transparent. Refusals due to content policy (e.g., minors) are also free.

API specifications

If your tool speaks the OpenAI API, these are the details that matter.

ItemValue
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
MethodsPOST /v1/chat/completions · GET /v1/models
API keyAuthorization: Bearer YOUR_KEY
Base URLhttps://api.mistraluncensored.top/v1
Model IDuncensored
Context window100,000 tokens, input and output combined
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Structured outputJSON object mode via response_format json_object
SSE streamingYes — server-sent events; the last chunk carries token usage
Concurrency8 requests at the same time per key
Requests per minute300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max body8 MB request body
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Subscriptionpaid credit never expires, no subscription
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
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
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Billingprepaid credit, charged by real token usage; errors and refusals are free
Keysone active key per account; a new key replaces the old one
Content policyadult content allowed; sexual content involving minors is refused
Sign-insign in with Google or with e-mail + password

When a request fails

Every error is JSON with a type you can switch on. You are never charged for an error.

StatusTypeReason
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly
01

Questions and answers

Does this API support image or audio generation?

No. This is a pure text API. It serves only the chat/completions endpoint. There are no embeddings, image, audio, or video generation capabilities.

How do I top up my credit?

Top-ups are made by crypto (USDT on TRC20, USDC on Base). Minimum is $20, maximum $500. Credits never expire and errors are free.

Is the model trained on my data?

No. Prompts are not used for training. The model is an open-weight variant tuned for uncensored inference on our servers.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key