Integrating Mistral Uncensored: API Setup Checklist
Switching to an uncensored model often requires adjusting your integration stack to handle specific API behaviors. This checklist covers the essential steps for connecting to our endpoint, managing crypto top-ups, and using trial credits for initial testing.

Endpoint Configuration and Model Selection
Begin by pointing your SDK client to the base URL https://api.mistraluncensored.com/v1. This endpoint follows the standard OpenAI chat-completions format, which means you likely do not need to rewrite your entire integration layer. Simply update the base URL configuration in your preferred programming language, if you are using Python, Node.js, or Go.
When making requests, ensure you specify the model identifier as "uncensored" in the model field. This tells the system to serve the single uncensored open-weight text model. The API accepts text input and returns text output, supporting both standard completions and streaming responses over Server-Sent Events (SSE). Verify that your client library is configured to handle SSE streams if you plan to use real-time token generation.
Check the GET /v1/models endpoint to confirm available models, though currently, only one model is served. This simplicity reduces the complexity of model routing logic. You do not need to manage multiple model versions or handle versioning conflicts. The API is designed to be straightforward, focusing on a single high-quality uncensored model.
Remember that this service does not support embeddings, image generation, audio processing, or video generation. If your application requires multimodal capabilities, you will need to integrate separate services for those tasks. Our API handles text generation only, so keep your workflow focused on text-based interactions.
Authentication and Key Management
Authentication is handled via API keys, which are displayed immediately upon signup. You can create an account using Google or by entering an email and password. Once registered, your key is shown right away, allowing you to start making requests without delay. Store this key securely, as it is the primary method for identifying your requests.
When using the key, include it in the Authorization header of your HTTP requests. If the key is invalid, the API returns a 401 error. This indicates that the key format is incorrect or the key has been revoked. Ensure that you are not including extra spaces or incorrect prefixes in your authorization header.
If you run out of credit, the API returns a 402 error. This means you need to top up your account before making further requests. The system charges for real token usage, so errors and refusals do not consume credit. This allows you to test your integration thoroughly without worrying about accidental charges during the development phase.
Rate limits are enforced at 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. Implement exponential backoff in your client code to handle these rate limits gracefully. This ensures that your application does not overwhelm the API during peak usage times.
Crypto Top-Up and Payment Flow
Our API uses a prepaid credit system charged by real token usage. There is no monthly subscription or recurring fee. You can top up your account with crypto only. The accepted currencies are USDT on the TRC20 network or USDC on the Base network. You can choose any whole amount between $20 and $500 for your top-up.
When you top up, you may receive bonus credit depending on the amount. Top-ups of $50 or more include a bonus ranging from +5% to +15%. This bonus credit is added to your account immediately. There are no cards, PayPal, or bank transfer options available. Ensure you send the correct amount to the provided address to receive the full credit.
Errors and refusals are free, meaning you are not charged for tokens that are not generated. This is useful for testing different parameters without incurring costs. Your paid credit never expires, so you can use it whenever you need it. This flexibility allows you to manage your budget effectively without the pressure of expiring credits.
To monitor your balance, check your account dashboard after each top-up. The system deducts credits based on the actual token count. Keep an eye on your usage to avoid unexpected service interruptions. If you need more credit, simply repeat the top-up process with your preferred cryptocurrency.
Trial Credit and Initial Testing
Every new account receives $0.50 of trial credit, requiring no card verification. This allows you to test the API immediately after signup. Use this trial credit to verify your integration, test different parameters, and ensure your application behaves as expected. It is a risk-free way to evaluate the service before committing to a paid top-up.
During the trial phase, focus on testing the core features such as streaming, JSON mode, and function calling. These features are essential for building reliable applications. Streaming allows you to receive responses in real-time, which improves the user experience. JSON mode ensures that the output is structured correctly for parsing.
Function calling enables your application to interact with external tools and services. This is important for building agents that can perform actions beyond simple text generation. Test these features thoroughly to ensure they work smoothly with your existing infrastructure. The trial credit is sufficient for a comprehensive test of these capabilities.
Once you are satisfied with the trial results, proceed with a crypto top-up. The transition from trial to paid usage is smooth, and your integration should continue to work without modification. Use the trial period to identify any potential issues and resolve them before scaling up your usage.
Parameters and Response Handling
The API supports several parameters to customize the output, including temperature, top_p, stop sequences, seed, and penalties. These parameters allow you to control the creativity and determinism of the model. Adjusting the temperature affects the randomness of the output, with higher values producing more diverse responses.
Top_p controls the nucleus sampling, which filters out less probable tokens. This helps in generating more coherent and focused text. Stop sequences allow you to define specific strings that signal the end of a response. This is useful for controlling the length and structure of the output.
Using a seed ensures reproducibility, which is valuable for debugging and testing. Penalties allow you to discourage the repetition of certain tokens. These features provide fine-grained control over the model's behavior. Experiment with different combinations to find the optimal settings for your use case.
When handling responses, ensure your client can parse both streaming and non-streaming outputs. Streaming responses are delivered in chunks, so your code must handle partial responses correctly. Non-streaming responses are delivered as a complete block. Choose the mode that best fits your application's needs.
When This API Is Not the Right Choice
While our API is powerful for text generation, it may not be the right choice for applications requiring multimodal capabilities. If your project needs image generation, audio processing, or video creation, you will need to integrate additional services. Our API focuses solely on text, so it cannot handle these other media types.
Similarly, if you need embeddings for semantic search or clustering, our API does not provide this feature. You will need to use a separate embedding service to generate vector representations of your text. This adds complexity to your architecture but is necessary for certain types of applications.
If you require fine-tuning of the model to adapt it to specific domains, our API does not support this. You would need to fine-tune the model locally or use a service that offers fine-tuning capabilities. Our API serves a pre-trained model, so it cannot be customized through fine-tuning.
Finally, if you need model routing to switch between different models based on performance or cost, our API does not support this. It serves a single uncensored model. If you need the flexibility to switch between multiple models, consider using a platform that offers model routing. This allows you to optimize for different use cases.
Addressing Community Questions on Integration
Developers often ask about the best uncensored models for role-playing and creative writing. While many users test various models, our API provides a single, consistent uncensored model that is well-suited for these tasks. The model does not refuse lawful adult, fictional, or controversial topics, making it ideal for role-playing scenarios.
Another common question is how to handle the transition from filtered to uncensored models. Our API simplifies this by providing a direct drop-in replacement for OpenAI-compatible endpoints. You can switch to our API without rewriting your entire codebase, which reduces the integration effort significantly.
Users also inquire about the cost-effectiveness of uncensored models. Our pricing is competitive, with $0.15 per million input tokens and $0.50 per million output tokens. This transparent pricing allows you to budget effectively for your projects. There are no hidden fees or subscription costs, making it easy to predict your expenses.
Finally, developers often ask about the reliability of the API. Our service offers a 300 requests per minute limit, which is sufficient for most applications. If you need higher throughput, you can use multiple API keys to distribute the load. This ensures that your application remains responsive even during peak usage times.
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. Send any whole amount between $20 and $500 to the provided address. Bonus credit is added for top-ups of $50 or more.
What happens if I exceed the rate limit?
If you exceed 300 requests per minute per key, you will receive a 429 error. Implement exponential backoff in your client code to handle this gracefully and retry the request after a short delay.
Can I use my own model with this API?
No, the API serves a single uncensored open-weight text model with the ID 'uncensored'. You cannot upload or use your own model. The model is pre-trained and optimized for uncensored text generation.
Is there a free tier available?
There is no free unlimited tier. However, every new account receives $0.50 in trial credit, which allows you to test the API without any payment. Paid credit never expires, and you can top up with crypto whenever needed.