Integrating Mistral Uncensored: API Setup Guide
Connecting to an uncensored text model requires careful attention to endpoint configuration and payment mechanics. This guide walks you through the exact steps to integrate our API, manage your crypto wallet, and handle responses without getting blocked by safety filters.

Understanding the API Scope and Model ID
Before writing any code, it is essential to understand that our service provides a single, uncensored open-weight text model. Unlike platforms that offer a suite of different models for various tasks, we serve only one specific model identified by the string uncensored. This model is designed to generate text without the typical safety refusals found in other commercial offerings, making it ideal for developers who need raw output for creative writing, security research, or controversial topic exploration.
The API is strictly text-in, text-out. You will not find embeddings, image generation, audio processing, or video capabilities here. If your project requires multimodal inputs or outputs, this service is not the right choice. Similarly, there is no fine-tuning, model routing, or OCR functionality. The focus is purely on generating coherent text responses based on your prompts, with a context window that supports up to 100,000 tokens for both the prompt and the completion combined.
When you initiate a connection, you must specify the correct model ID in your request payload. Using any other identifier will result in an error. The base URL for all interactions is https://api.mistraluncensored.com/v1. This endpoint is compatible with the OpenAI chat-completions format, which means you can likely reuse existing client libraries or SDKs with minimal modification. However, you must ensure that your requests are directed to our specific base URL and not the standard OpenAI endpoint.
It is also important to note that we never claim to be an official partner or reseller of any other vendor. While our API mimics the OpenAI structure for ease of use, it is an independent service. When discussing compatibility, refer to the vendor's documentation for their specific versioning and feature sets. Our goal is to provide a reliable, uncensored text generation engine that integrates smoothly into your existing workflow without introducing unnecessary complexity or dependency on external model variations.
Authentication and Account Setup
Getting started with our API is straightforward, as we prioritize ease of access for developers. You can sign up using your Google account or by creating a standard email and password combination. Once your account is created, you will receive an API key immediately. This key is your primary credential for authenticating requests. You should store this key securely, as it provides access to your prepaid credit and allows you to make requests up to the specified rate limits.
Unlike many competitors that require a credit card on file, our service operates on a prepaid credit system. You do not need to link a bank account or payment card to begin. Instead, you top up your account using cryptocurrency. The minimum top-up amount is $20, and the maximum is $500 per transaction. You can choose between USDT on the TRC20 network or USDC on the Base network. This crypto-only approach ensures privacy and avoids the friction of traditional banking delays or card processing fees.
Every new account starts with $0.50 of trial credit, allowing you to test the API without immediate financial commitment. This trial credit is charged by real token usage, so you can evaluate the model's performance and integration quality before making a larger purchase. If you run out of credit, you will receive a 402 error, indicating that no credit is available. Errors such as invalid keys (401) or rate limits (429) are free, meaning they do not consume your balance.
When managing your keys, remember that they are tied to your account and can be used across multiple projects. However, if you suspect a key has been compromised, you can regenerate it through your dashboard. The key is shown immediately upon signup, so make sure to copy it to a secure location. There is no monthly subscription fee, and your paid credit never expires, giving you the flexibility to use your balance whenever you need it.
Integrating the SDK and Making Requests
Integrating the API into your application involves sending POST requests to the /v1/chat/completions endpoint. You can use any standard HTTP client or SDK that supports the OpenAI-compatible format. The request payload should include your API key in the authorization header, the model ID set to uncensored, and your prompt in the messages array. You can also specify parameters such as temperature, top_p, stop sequences, and seed to control the randomness and reproducibility of the output.
One of the key features of our API is support for function calling, also known as tools. This allows you to define specific functions that the model can call during generation. You provide the function definitions in the request, and the model will output structured data that matches your schema. This is particularly useful for building agents or applications that need to interact with external systems or databases. You can also enable JSON mode to force the model to output strictly valid JSON, which simplifies parsing in your application.
When making requests, be mindful of the rate limit, which is set to 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. To manage this, you can implement exponential backoff in your client code or distribute requests across multiple keys if you have them. The API also supports streaming responses over Server-Sent Events (SSE), which allows you to receive the model's output in real-time as it is generated. This is ideal for chat interfaces or applications where immediate feedback is important.
For developers using languages like Python, JavaScript, or Go, you can find example code in the documentation. The code snippets demonstrate how to initialize the client, send a request, and handle the response. Remember that the model id to send is always uncensored. If you are migrating from another provider, ensure that your code is updated to use our base URL and handle any differences in response formats. The API is designed to be intuitive, so you should be able to get up and running quickly with minimal coding effort.
Handling Streaming and JSON Modes
Streaming responses are a powerful feature that enhances the user experience by providing immediate feedback. When you enable streaming, the API sends chunks of text as they are generated, rather than waiting for the entire response to complete. This is particularly useful for long-form content generation or chat applications where latency is a concern. The usage information, including token counts, is included in the last chunk of the stream, allowing you to track consumption accurately.
To implement streaming, you need to set the stream parameter to true in your request. The client library will handle the SSE connection and emit events for each chunk of text. You can then append these chunks to your output buffer or display them directly to the user. It is important to handle potential connection interruptions gracefully, as streaming relies on a persistent connection. If the connection drops, you may need to retry the request or switch to non-streaming mode.
JSON mode is another valuable feature for developers who need structured output. By enabling JSON mode, the model is constrained to output only valid JSON objects. This eliminates the need for complex parsing logic and reduces the risk of errors caused by malformed output. You can combine JSON mode with function calling to create reliable agents that can execute code, query databases, or interact with APIs based on the model's decisions.
When working with streaming and JSON modes, it is essential to test your integration thoroughly. Ensure that your client can handle partial JSON objects and reconstruct them as chunks arrive. Also, verify that your error handling covers cases where the stream ends unexpectedly or returns invalid data. By mastering these features, you can build more responsive and reliable applications that use the full power of our uncensored text model.
Pricing, Credits, and Crypto Top-ups
Our pricing model is simple and transparent, based on real token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There are no hidden fees, monthly subscriptions, or setup costs. Your prepaid credit is charged exactly for the tokens consumed, and any unused balance remains in your account indefinitely. This pay-as-you-go structure allows you to scale your usage up or down without being locked into a rigid contract.
To add credit to your account, you must use cryptocurrency. We accept USDT on the TRC20 network and USDC on the Base network. You can top up with any whole amount between $20 and $500. If you choose to top up with $50 or more, you receive a bonus credit ranging from 5% to 15%, depending on the current promotion. This bonus is added to your account immediately after the transaction is confirmed on the blockchain.
It is important to note that we do not accept credit cards, PayPal, or bank transfers. All transactions are processed via crypto wallets, which ensures fast settlement and low fees. You can monitor your balance and transaction history in your dashboard. If you run out of credit, you will receive a 402 error, indicating that no credit is available. You can then top up your account to resume service.
Errors and refusals are free, meaning they do not consume your balance. This includes cases where the model refuses a request due to the hard content limit or where the API returns an error. This policy ensures that you only pay for actual text generation, making our service cost-effective for developers who experiment with different prompts and parameters. Always check your balance regularly to avoid unexpected service interruptions.
When Our API Is Not the Right Choice
While our API is excellent for text generation, it may not be the right choice for every project. If your application requires image, audio, or video generation, you will need to integrate a separate service, as we only provide text output. Similarly, if you need embeddings for semantic search, our API does not support this feature. Projects that rely on OCR for document processing or fine-tuning for custom model adaptation will also find our service limited.
Additionally, if you require model routing to switch between different models based on performance or cost, our single-model approach may not meet your needs. We serve only the uncensored model, so you cannot dynamically select a smaller or faster model for simpler tasks. If your workflow involves multiple models, you will need to manage the switching logic in your application or use a third-party routing service.
Another consideration is the payment method. Since we only accept crypto top-ups, projects that require invoice-based billing or corporate credit card payments may find our service less convenient. If your organization has strict procurement policies that mandate traditional payment methods, you may need to secure a separate vendor for those requirements.
Finally, if you need high availability guarantees or SLAs, our service does not offer formal uptime commitments. We provide a reliable service, but we do not guarantee specific uptime percentages. For mission-critical applications that require strict SLAs, you may want to consider a provider with formal service level agreements. However, for most developer projects, our API offers a reliable and flexible solution for uncensored text generation.
Addressing Community Questions and Limits
Developers often ask about the specific limits and capabilities of our API. One common question is about the context window. Our model supports a context window of 100,000 tokens, which is sufficient for most long-form content generation and complex reasoning tasks. This window includes both the prompt and the completion, so you need to account for the size of your input when designing your application.
Another frequent inquiry is about the hard content limit. Our model does not refuse lawful adult, fictional, security-research, or controversial topics. However, there is a hard limit on sexual content involving minors, which is refused. This ensures that the model remains usable for a wide range of applications while adhering to basic content standards. Users can safely generate content on various topics without worrying about arbitrary refusals.
Community members also discuss the rate limit of 300 requests per minute per key. If you are building a high-throughput application, you may need to distribute requests across multiple keys or implement caching to reduce the load. The API is designed to handle a significant volume of requests, but it is important to monitor your usage to avoid hitting the limit.
Finally, developers often ask about the difference between our API and other vendors. While we offer an OpenAI-compatible endpoint, our service is independent and uncensored. We do not claim to be a reseller of any other vendor's model. When comparing features, refer to the vendor's documentation for their specific capabilities. Our focus is on providing a reliable, uncensored text model with transparent pricing and easy integration.
Frequently asked questions
How do I top up my account?
You can top up your account using USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20, and the maximum is $500 per transaction. Bonus credit is available for top-ups of $50 or more.
What is the rate limit?
The rate limit is 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. You can distribute requests across multiple keys to increase throughput.
Does the API support streaming?
Yes, the API supports streaming over Server-Sent Events (SSE). You can enable streaming by setting the stream parameter to true in your request. Usage information is included in the last chunk.
What is the context window size?
The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for long-form content generation and complex reasoning tasks.
More guides
- Mistral API Models vs One Uncensored Model Option
- Mistral API Setup: Switch to an OpenAI-Compatible API
- Mistral API Examples: Streaming, Tools and JSON Mode
- Mistral API: The Uncensored Alternative for Developers
- Integrating Mistral Uncensored: API Setup Checklist
- Troubleshooting Mistral Uncensored: Safety & Limits