Troubleshooting Uncensored API Errors
Switching from filtered models to uncensored APIs often introduces new error patterns that can disrupt development workflows. This guide helps you identify and resolve common connection issues specific to our text-only, open-weight model.

Understanding Error Codes
When integrating our API, developers often encounter specific HTTP status codes that indicate distinct issues. The most common is the 401 error, which signals an invalid or missing API key. This usually happens when the key is not included in the authorization header or when the key has been revoked. To resolve this, verify that your key is correct and properly formatted in your request headers.
The 402 error indicates that you have run out of prepaid credit. Since our service charges by real token usage, any request that consumes tokens will deduct from your balance. If you receive a 402, you need to top up your account using cryptocurrency. Errors and refusals, however, are free, so you can test your prompts without spending credits.
The 429 error represents a rate limit violation. Our API allows 300 requests per minute per key. If you exceed this limit, subsequent requests will be rejected until the window resets. This is common in batch processing or high-frequency polling scenarios. You can implement exponential backoff in your code to handle these temporary limits gracefully.
Understanding these codes helps you troubleshoot quickly. A 401 means check your key, a 402 means check your balance, and a 429 means wait or slow down. By addressing these issues systematically, you can maintain a stable connection to our uncensored model.
Managing Context Windows
Our API supports a context window of 100,000 tokens, which includes both the prompt and the completion. This large window allows for extensive conversations and detailed document analysis. However, it also requires careful management to avoid errors. If your input exceeds the limit, the model may truncate older context or return an error depending on your implementation.
To manage this effectively, monitor the token count of your prompts. You can estimate tokens by dividing the character count by a standard factor, though exact counts depend on the tokenizer. Keep your prompts concise to leave room for the model's response. If you are processing large documents, consider chunking them into smaller segments.
When using function calling or JSON mode, the structure of your prompt can consume significant tokens. Ensure that your system instructions are clear and concise. Avoid repeating the same context in every request. Instead, maintain the conversation state on your side and send only the new input.
If you encounter issues with long contexts, check your token usage. Our API provides usage details in the last chunk of streaming responses. This helps you track how much context you are using and adjust your strategy accordingly. Proper context management ensures smooth interactions with the uncensored model.
Handling Streaming and JSON
Streaming responses are supported via Server-Sent Events (SSE). This allows you to receive tokens as they are generated, reducing perceived latency. The usage information is included in the last chunk, which helps you track token consumption in real-time. Implementing streaming requires handling partial responses and assembling them correctly on the client side.
Function calling is another key feature. You can define tools in your request, and the model will return structured data that you can execute. This is useful for tasks like data extraction or action triggering. Ensure that your tool definitions are clear and match the expected input format. The model will attempt to call these tools based on the context of the conversation.
JSON mode enforces strict JSON output, which is helpful for parsing responses programmatically. This mode reduces the chance of malformed JSON but may limit the model's creativity. Use it when you need reliable data structures. You can also set parameters like temperature and top_p to control the randomness and diversity of the output.
Combining streaming with JSON mode can be powerful but requires careful error handling. If the stream is interrupted, you may need to retry the request. Always validate the JSON output before processing it. This ensures that your application remains reliable even when dealing with complex responses from the uncensored model.
Payment and Credit Management
Our API uses a prepaid credit system charged by real token usage. You can top up your account with crypto, specifically USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. There are no monthly fees or subscriptions, and your paid credit never expires. This flexibility allows you to pay only for what you use.
When you top up, you may receive bonus credit if you add $50 or more. The bonus ranges from +5% to +15%, depending on the amount. This bonus credit is added to your balance and can be used for requests. It provides a cost-effective way to test the API or run small projects without significant upfront costs.
New accounts receive $0.50 of trial credit, which allows you to test the API without making a payment. This trial credit is sufficient for basic testing and integration. However, it is not enough for large-scale usage. You will need to top up to continue using the service after the trial is exhausted.
Errors and refusals are free, so you can experiment with different prompts without worrying about credit consumption. This is particularly useful for debugging and fine-tuning your requests. Keep track of your credit balance to avoid unexpected interruptions in service.
When Our API Is Not the Right Choice
While our API is excellent for text-based uncensored interactions, it may not be the right choice for all use cases. If you need image, audio, or video generation, our API does not support these features. It is strictly a text-in, text-out service. For multimodal applications, you may need to combine our API with other tools.
If you require embeddings for semantic search or document retrieval, our API does not provide this functionality. You will need to use a separate embedding service. Similarly, if you need OCR for extracting text from images, our API cannot handle this. You will need to integrate an OCR solution into your workflow.
Fine-tuning is another area where our API differs from other providers. We do not offer fine-tuning capabilities, so you cannot train the model on your specific data. If you need a model tailored to your domain, you may need to use a different service or fine-tune a local model.
Model routing is also not supported. Our API serves a single uncensored open-weight model. If you need to switch between different models based on the task, our API may not be suitable. You will need to implement your own routing logic or use a provider that supports multiple models. Consider these limitations when choosing our API for your project.
Addressing Common Developer Questions
Developers often ask about the best platforms for uncensored LLMs and how to integrate them with agent harnesses. In threads on r/LocalLLM, users discuss various options, including renting inference or running local models. Our API provides a hosted solution that simplifies this process by offering a single, uncensored model without the need for local setup.
Another common question is whether our API supports agent frameworks. While we do not have a dedicated agent harness, our function calling and streaming features make it compatible with many existing frameworks. You can integrate our API into your agent logic by handling the structured outputs and streaming responses.
Users also inquire about the quality of our uncensored model compared to others. Our model is designed to be uncensored and open-weight, making it suitable for a wide range of applications. However, the best model depends on your specific needs. We recommend testing our API to see if it meets your requirements.
Finally, developers often ask about the safety and content limits of our API. Our API refuses requests involving sexual content with minors but allows other lawful adult, fictional, security-research, or controversial topics. This balance ensures that the API is useful for various use cases while maintaining a basic safety standard.
Integration and Testing Strategies
To integrate our API effectively, start by obtaining your API key through the signup process. You can sign up with Google or email and password. The key is shown immediately, allowing you to start testing right away. Use the trial credit to verify that your integration is working correctly.
When testing, use the POST /v1/chat/completions endpoint for standard chat interactions. You can also use POST /v1/responses for alternative response formats. The GET /v1/models endpoint allows you to check the available models. Make sure to handle errors gracefully by checking for 401, 402, and 429 status codes.
Implement streaming to improve the user experience. Use SSE to receive tokens as they are generated. This reduces the perceived latency and makes the interaction feel more responsive. Handle the last chunk to get the usage information and close the connection properly.
Test your integration with various prompts to ensure that the uncensored model behaves as expected. Use parameters like temperature and top_p to control the output. Experiment with function calling to see how the model handles structured data. By thoroughly testing your integration, you can ensure a smooth experience for your users.
Frequently asked questions
How do I fix a 401 error?
A 401 error indicates an invalid or missing API key. Check your authorization header to ensure the key is correct and properly formatted. If the key is valid, try regenerating it from your account dashboard.
What happens if I run out of credit?
If you run out of credit, you will receive a 402 error. You can top up your account with USDT on TRC20 or USDC on Base. Errors and refusals are free, so you can still test your prompts without spending credits.
Can I use streaming with JSON mode?
Yes, you can use streaming with JSON mode. Streaming allows you to receive tokens as they are generated, while JSON mode ensures the output is valid JSON. Combine these features for efficient and structured responses.
Does the API support image generation?
No, the API is text-only. It does not support image, audio, or video generation. If you need multimodal capabilities, you will need to integrate other tools with our text-based API.