EN ▾
Get API key

Integrating Uncensored Text APIs: A Developer Checklist

Integrating an uncensored text API into your workflow requires more than just swapping endpoints. It demands careful attention to token limits, payment structures, and model behavior. This guide provides a concrete checklist for developers building with text-only models.

Holographic text stream flowing from a laptop into a network of nodes, representing API integration.

Understanding the API Model and Endpoints

Before writing code, you must understand the specific architecture of the service you are integrating. Our API is a hosted, OpenAI-compatible chat-completions endpoint that serves a single uncensored open-weight text model. The model identifier you must send in your requests is uncensored. This simplicity is a feature, not a limitation, as it ensures consistent behavior without the overhead of model routing or version management.

The base URL for all interactions is https://api.voxtral.cc/v1. You will primarily interact with the POST /v1/chat/completions endpoint for standard conversations. For newer response formats, the POST /v1/responses endpoint is available. You can also retrieve model information via GET /v1/models. It is important to note that this service is text-in, text-out only. There are no embeddings, image generation, audio processing, or video capabilities.

When integrating, ensure your client library is configured to handle the specific JSON structure expected by this API. Since the model is uncensored, it does not refuse lawful adult, fictional, security-research, or controversial topics. However, there is a hard content limit: requests involving sexual content with minors will be refused. This is the only major refusal logic you need to account for in your error handling.

Remember that this is an independent service. When you integrate, you are connecting directly to this specific infrastructure. Do not assume compatibility with other vendors' specific quirks. Always check the documentation for the current API version and endpoint structures, as these can evolve independently of other market players.

SDK Configuration and Authentication

Setting up your software development kit (SDK) is the first technical step in integration. You can sign up using Google or an email and password combination. Upon signup, your API key is shown immediately, so you must store it securely in your environment variables or secret manager. This key is your primary identifier for all requests.

Authentication errors are straightforward. A 401 status code indicates an invalid key, meaning you should verify your credentials. A 402 status code means you have no credit left. Since this service uses a prepaid credit model, you cannot make requests without funds. A 429 status code indicates you have hit the rate limit of 300 requests per minute per key.

When configuring your SDK, ensure you are sending the correct headers. The API key should be included in the authorization header. Since the API is OpenAI-compatible, many standard libraries can be adapted with minimal code changes. However, always test the connection with a simple request to verify that the key is valid and the endpoint is reachable.

Do not hardcode your API key in your source code. Use environment variables to keep your credentials secure. If you are using a framework like React or Node.js, load the key from your .env file at startup. This practice prevents accidental exposure of your credentials in version control systems.

Managing Context Windows and Token Limits

One of the most critical aspects of integrating this API is managing the context window. The model supports a context window of 100,000 tokens, which includes both the prompt and the completion together. This is a generous limit that allows for extensive conversation history or large document processing.

When designing your application, you must track the token count of your inputs. If your prompt plus the expected output exceeds 100,000 tokens, the model may truncate the input or refuse the request. You should implement logic to monitor token usage and potentially truncate older messages in long conversations to stay within this limit.

The API provides parameters to control the model's behavior, such as temperature, top_p, stop, and seed. You can also set penalties to influence the output. These parameters allow you to fine-tune the response quality. For example, using seed ensures deterministic outputs for testing purposes.

Remember that the context window is a shared resource. If you are processing large documents, ensure you are not consuming the entire window with a single request. Plan your chunking strategy carefully to maximize the utility of the 100,000 token limit. This approach ensures consistent performance and prevents unexpected errors.

Streaming and Response Handling

The API supports streaming over Server-Sent Events (SSE), which is essential for building responsive user interfaces. Streaming allows you to display text as it is generated, improving the perceived performance of your application. The usage information is included in the last chunk of the stream, so you must wait for the final chunk to get accurate token counts.

When implementing streaming, ensure your client can handle partial responses. You should buffer the incoming chunks and concatenate them to form the complete response. This is particularly important for chat applications where users expect real-time feedback. The POST /v1/responses endpoint also supports streaming, providing flexibility in how you handle data.

Function calling (tools) is another feature you can integrate. This allows the model to invoke external functions based on the conversation. You must define the tool schema and handle the function calls in your code. This feature is useful for building agents that can interact with other systems or retrieve data dynamically.

JSON mode is also available, which forces the model to output valid JSON. This is useful for structured data extraction. When using JSON mode, ensure your prompt clearly specifies the expected format. This reduces the likelihood of parsing errors and ensures consistent data structures in your application.

Pricing, Payments, and Credit Management

Understanding the pricing model is important for budgeting your integration. The cost is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credit is charged based on real token usage, and errors or refusals are free. There is no subscription or monthly fee, and paid credit never expires.

Top-ups are accepted only in cryptocurrency. You can pay with USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. If you top up from $50, you receive a bonus credit ranging from 5% to 15%. This bonus structure incentivizes larger top-ups.

When integrating, ensure your application can handle credit balances. You should check the balance before making requests to avoid 402 errors. If the balance is low, prompt the user to top up. Since credit never expires, you do not need to worry about wasting funds due to expiration.

Do not assume that other vendors offer similar payment methods. This service is unique in its crypto-only approach. Always verify the current payment options and top-up limits on the official site. This ensures you are using the most accurate information for your integration.

When This API Is Not the Right Choice

While this API is powerful for text generation, it is not suitable for every use case. If you need image generation, audio processing, or video creation, this service will not meet your needs. The API is strictly text-in, text-out, with no multimodal capabilities.

If you require embeddings for semantic search, this API does not provide that feature. You would need to integrate a separate embedding service. Similarly, if you need OCR for document scanning or fine-tuning for custom model training, this service is not the right choice.

Additionally, if you need model routing to switch between different models based on the task, this API serves only one uncensored model. You cannot route to other models for different use cases. This limitation means you must rely on the single model's capabilities for all tasks.

Finally, if you need on-premises deployment for data privacy, this is a hosted service. You cannot deploy the model on your own infrastructure. For teams requiring strict data control, this hosted model may not align with their security requirements. Always evaluate these limitations against your project's specific needs.

Addressing Community Questions and Concerns

Developers often discuss integration challenges in community threads. On r/LocalLLaMA, users frequently ask about license compatibility and model performance. They want to ensure that the open-weight model can be used commercially without restrictions. The model's open nature allows for flexibility, but you should always check the specific license terms for your use case.

Another common question relates to the comparison with other models. Users often compare this API to other text-to-speech or transcription models. While this API is text-focused, it can be integrated with other tools to build comprehensive solutions. For example, you can use this API for text generation and pair it with a separate TTS service for audio output.

Users also inquire about the accuracy of the model in multilingual settings. The model supports multiple languages, but performance may vary. It is advisable to test the model with your specific language requirements to ensure it meets your quality standards. Always refer to the vendor's documentation for the latest performance metrics.

Finally, developers ask about error handling and rate limits. The 300 requests per minute limit is generous, but you should implement retry logic with exponential backoff to handle temporary spikes. This ensures your application remains reliable under varying load conditions. By addressing these community concerns, you can build a more reliable integration.

Frequently asked questions

How do I pay for the API?

You can top up your account using USDT on the TRC20 network or USDC on the Base network. The minimum top-up is $20, and the maximum is $500. Credit never expires, and you receive a bonus for top-ups of $50 or more.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. You must manage your inputs to stay within this limit to avoid truncation.

Does the API support streaming?

Yes, the API supports streaming over Server-Sent Events (SSE). You can also use the /v1/responses endpoint for streaming. Usage information is provided in the final chunk of the stream.

What happens if I run out of credit?

If you run out of credit, you will receive a 402 error. You must top up your account to continue making requests. Errors and refusals are free, so you are only charged for successful token usage.