EN ▾

OpenAI-compatible API for uncensored LLMs

Mistral API: The Uncensored Alternative for Developers

Developers often encounter restrictive content filters when using standard language model APIs, limiting their ability to handle adult, controversial, or nuanced topics in production applications. The mistral uncensored API provides a drop-in OpenAI-compatible alternative that bypasses these refusals, allowing you to integrate high-context, unfiltered responses with zero code changes.

Mistral API: The Uncensored Alternative for Developers

Updated

Key points

  1. Use the standard /v1/chat/completions endpoint with a simple base_url change to access uncensored responses.
  2. The model supports a 100k context window and advanced features like JSON mode and tool calling.
  3. Pricing is strictly token-based with no monthly subscriptions, charged via crypto top-ups.
  4. The service runs a single open-weight model tuned for lawful adult and research use cases.

Why Developers Need Uncensored Models

When building applications that process diverse human communication, standard API providers often apply overly aggressive content filters. These filters may flag nuanced discussions about politics, health, or adult themes as violations, causing your application to return generic refusal messages instead of the expected data. For developers, this unpredictability breaks downstream logic and requires complex workarounds to ensure consistent behavior.

Uncensored models address this by removing the subjective layer of moderation. They are trained or fine-tuned to answer questions based on pattern matching and factual probability rather than adhering to a specific corporate safety policy. This is particularly valuable for content moderation tools, creative writing platforms, and research applications where the goal is to retrieve the model's raw inference without external censorship.

By using an uncensored endpoint, you gain full control over how your application interprets the output. You can implement your own filtering logic if needed, or simply trust the model to provide unfiltered context for sensitive topics.

The Problem with Standard Filtering

Standard API filters are often binary: a topic is either allowed or blocked. This lack of granularity can lead to false positives where legitimate content is rejected. For instance, a medical discussion about a specific condition might be flagged as sensitive, or a historical reference to a political figure might be deemed controversial. These filters vary widely between providers and even between different versions of the same model.

Another issue is the inconsistency of refusals. A model might answer a question correctly one moment and refuse it the next, depending on subtle phrasing differences. This unpredictability makes it difficult to build reliable applications that rely on consistent API behavior. Developers often spend significant engineering time building retry logic and fallback mechanisms to handle these unexpected refusals.

Furthermore, standard filters may alter the model's reasoning. If a model is biased toward politeness or brevity due to alignment training, it may provide less detailed or less accurate answers for technical queries. Uncensored models preserve the full range of the model's capabilities, including its ability to be direct, detailed, or even rude if the context demands it.

Mistral Uncensored: Technical Specifications

The Mistral Uncensored API serves a single, open-weight large language model designed for high-context interactions. It operates as a text-in, text-out service via the standard chat completions interface. This ensures that developers can integrate it into existing workflows without learning a new protocol.

  • Endpoint: POST /v1/chat/completions
  • Base URL: https://api.mistraluncensored.com/v1
  • Model ID: "uncensored"
  • Context Window: 100,000 tokens total (prompt + completion)
  • Max Output: up to the end of the 100,000-token window (if max_tokens is unset, the response can run to the end of the window)

The model is tuned to answer without content refusals for lawful adult use. It does not block discussions on controversial topics, security research, or explicit content involving consenting adults. The only hard limit is on sexual content involving minors, which is consistently blocked.

OpenAI Compatibility: Zero Code Changes

One of the primary advantages of this API is its strict adherence to the OpenAI chat completions schema. This means you can switch from a major provider to this uncensored alternative by changing two variables in your client code: the base URL and the API key.

For example, if you are using the OpenAI Python SDK, you simply update the base_url to point to https://api.mistraluncensored.com/v1 and set the model name to "uncensored". All other parameters, such as temperature, top_p, and stop sequences, work exactly as they do with standard providers.

This compatibility extends to all OpenAI-compatible clients, including popular libraries for Node.js, Go, and Rust. You can use existing tools like LangChain or LlamaIndex with minimal configuration changes. This reduces the friction of adoption, allowing you to test the uncensored model in your production environment without a full rewrite.

Context Window: 100k vs Standard Limits

A 100,000-token context window allows you to process large documents, long conversation histories, or extensive codebases in a single request. This is significantly larger than the standard 8k or 32k limits found in many older models, enabling deeper context retention.

With a 100k window, you can feed an entire technical manual into the model and ask it to answer questions based on the text. This is useful for building custom knowledge bases or document analysis tools without needing to chunk and summarize the data beforehand.

However, larger context windows also mean higher token costs. You must carefully manage your prompt length to stay within the 100,000-token window. If you are processing very long inputs, you may need to implement your own summarization logic to fit the remaining tokens within the window.

Feature Set: Streaming, Tools, JSON

The API supports several advanced features that make it suitable for production applications. Streaming via Server-Sent Events (SSE) allows you to display tokens as they are generated, improving the user experience for chat interfaces. Token usage statistics are included in the final chunk, so you can track costs in real-time.

  • Function Calling: Support for tools and tool_choice allows the model to generate structured function calls.
  • JSON Mode: The response_format parameter can be set to json_object to ensure the model outputs valid JSON, which is critical for programmatic integration.
  • Parameters: Full support for temperature, top_p, stop, seed, presence_penalty, and frequency_penalty.

These features ensure that the uncensored model is not just a raw text generator but a fully capable LLM that can integrate into complex workflows.

Pricing: Token-Based vs Subscriptions

Unlike many providers that lock you into monthly subscriptions, this API uses a pure pay-per-token model. The cost is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This transparency allows you to calculate exact costs based on your usage patterns.

Errors and refusals are free, meaning you only pay for successful token generation. This is advantageous if your application experiences high failure rates, as you won't be charged for wasted tokens. Credit never expires, so you can top up once and use it over time without worrying about monthly renewal dates.

This model is ideal for developers with variable usage patterns. If you have a burst of traffic followed by a quiet period, you won't pay for idle capacity. You only pay for the tokens you actually consume.

Payment: Crypto Simplicity

Top-ups are processed by crypto (USDT on TRC20, USDC on Base). You can top up with any whole amount between $20 and $500. This simplicity avoids the complexities of invoicing or bank transfers.

  • Bonus Credit: Top-ups of $50 or more receive a 5% bonus. Top-ups of $100 or more receive a 10% bonus.
  • Crypto: Pay by crypto; no PayPal is required. Crypto is ideal for developers who prefer anonymity.
  • Trial Credit: New accounts receive $0.50 of trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is needed to sign up.

Payments are processed quickly, and your credit balance is updated immediately. If you experience a double charge, you can request a fix through the Support page. Refunds are not issued for standard purchases, as credit never expires.

Questions and answers

Is this the official Mistral API?

No, this is an independent service running an open-weight uncensored model. It is compatible with the Mistral API structure but is not affiliated with Mistral AI. You can use it as a drop-in alternative for applications that support OpenAI-compatible endpoints.

What is the maximum output length?

There is no separate output cap per request. If you do not specify the max_tokens parameter, the response can run to the end of the window. The total context window, including the prompt, is 100,000 tokens.

How do I sign up and get an API key?

You can sign up using "Continue with Google" or by creating an account with an email and password. Your API key is displayed immediately after signup. No phone number or credit card is required.

Does the model refuse any content?

Yes, there is one hard content limit: sexual content involving minors is always refused. All other lawful adult, controversial, or explicit content is allowed. The model is tuned to answer without subjective refusals.

Your key is one form away

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

Get API keyRead the docs