Troubleshooting Uncensored LLM API: Risks and Best Practices
Using an uncensored model removes safety filters, which changes how you must handle errors and output validation. This guide covers the specific risks of our hosted API and how to integrate it safely into your applications.

Understanding Uncensored Behavior and Refusals
When you use an uncensored model, the system does not refuse topics based on standard safety guidelines. However, this does not mean every request will succeed. Our API has a hard content limit regarding sexual content involving minors. If your prompt violates this specific rule, the model will refuse the request. This is the only hard refusal mechanism in place. You should design your application to handle these refusals gracefully, perhaps by retrying with a modified prompt or logging the event for review.
It is important to distinguish between a refusal and a rate limit. A refusal means the model processed your input but decided not to generate a response due to the content limit. A rate limit means you have exceeded the allowed number of requests. Our API allows 300 requests per minute per key. If you exceed this, you will receive a 429 error. This error is free, so you do not lose any credit when it happens. You should implement exponential backoff in your code to handle these 429 errors without wasting resources.
Another common issue is the 401 error, which indicates an invalid key. This often happens if the key is expired or if there is a typo in the request header. Always verify your key before making requests. If you receive a 402 error, it means you have no prepaid credit left. Since we charge by real token usage, you must top up your account to continue using the service. Errors and refusals are free, so you only pay for successful completions.
Users often expect uncensored models to be completely wild, but they still follow the model's training. The model will generate text based on patterns it has learned. If you want a specific style or tone, you need to provide clear instructions in your system prompt. The model does not have a personality of its own; it mirrors the input it receives. Therefore, troubleshooting often involves refining your prompts rather than fixing the model itself.
Managing Token Usage and Credit
Our API uses a prepaid credit system charged by real token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This pricing model means you only pay for what you use. There is no monthly subscription or fee. Your prepaid credit never expires, so you can top up whenever you need more. The minimum top-up amount is $20, and the maximum is $500. You can pay with USDT on TRC20 or USDC on Base. There is no option for credit cards, PayPal, or bank transfers.
To estimate your costs, you need to count the tokens in your prompts and completions. The context window is 100,000 tokens, which includes both the prompt and the completion. If your prompt is large, it consumes a significant portion of this window. You should monitor your token usage to avoid unexpected charges. You can check your balance and usage in your account dashboard. If you run out of credit, you will receive a 402 error until you top up.
Errors and refusals are free, which is a significant advantage. If your model refuses a request due to the hard content limit, you do not lose any credit. This means you can experiment with different prompts without worrying about wasting money on failed requests. However, you still pay for the input tokens sent to the API. So, even if the request is refused, you pay for the prompt tokens.
When you top up, you can receive bonus credit. If you top up $50 or more, you get a bonus ranging from +5% to +15%. This bonus is added to your account immediately. You can use this bonus credit just like your regular credit. It is a good idea to top up larger amounts to maximize your bonus. However, remember that the bonus does not change the per-million token prices. You still pay $0.15 for input and $0.50 for output.
Handling Streaming and Error Codes
Our API supports streaming over Server-Sent Events (SSE). This allows you to receive responses in chunks as they are generated. Streaming is useful for improving the user experience, as users can see the response in real time. The usage information, such as token counts, is included in the last chunk of the stream. You should parse these chunks to display the response to the user. If the stream is interrupted, you may need to handle partial responses gracefully.
Errors are handled through standard HTTP status codes. A 401 error means your key is invalid. A 402 error means you have no credit. A 429 error means you have hit the rate limit. You should check these codes in your application logic. If you receive a 429 error, wait for a few seconds before retrying. This helps you avoid overwhelming the API. You can also implement a queue to manage your requests and stay within the 300 requests per minute limit.
When using streaming, you need to handle the connection properly. If the connection drops, you may lose the partial response. You should implement reconnection logic in your client. This ensures that you can recover from network issues. You can also use the seed parameter to get reproducible results. This is useful for testing and debugging your application. If you use the same seed, you should get the same response for the same prompt.
You can also use the stop parameter to control when the model stops generating text. This is useful for preventing the model from generating too much text. You can specify a string that, if generated, will stop the model. This helps you control the length of the response. You can also use the temperature and top_p parameters to control the randomness of the output. A lower temperature makes the output more deterministic, while a higher temperature makes it more creative.
Integrating Function Calling and JSON Mode
Our API supports function calling, which allows you to define tools that the model can call. This is useful for structured data extraction or triggering actions in your application. You can define the schema of the function and the model will return a JSON object with the function name and arguments. You then execute the function and return the result to the model. This allows the model to continue the conversation with the new information.
You can also use JSON mode to force the model to output valid JSON. This is useful for extracting structured data from unstructured text. In JSON mode, the model will output a JSON object that matches the schema you provide. This ensures that the output is parseable by your application. You can use this mode for data extraction, summarization, or any task that requires structured output.
When using function calling, you need to handle the case where the model calls a function with invalid arguments. The model may not always generate the correct arguments. You should validate the arguments before executing the function. If the arguments are invalid, you can return an error to the model and ask it to try again. This helps you ensure that the function is executed correctly.
You can also use the penalties parameter to control the likelihood of the model repeating itself. This is useful for preventing the model from generating repetitive text. You can set the penalty to a positive value to discourage repetition. A higher penalty makes the output more diverse. You can experiment with different penalty values to find the right balance for your application.
What People Ask About Uncensored Models
Users on Reddit often ask if there is a better uncensored model than the ones currently available. Many users start with local models and then move to hosted APIs for convenience. They want to know if the hosted API offers the same level of uncensored behavior as local models. The answer is yes, our API provides an uncensored experience without the need for local hardware. You can use the model id 'uncensored' to access the model.
Another common question is whether uncensored models bring happiness. Users find that online providers like ChatGPT or Gemini are overly moderating. They want a model that will answer challenging questions without instant refusal. Our API does not refuse lawful adult, fictional, security-research, or controversial topics. This allows for more open and honest conversations. However, users should be aware that the model is still a machine and may not always understand context.
Users also ask about the best uncensored models for local use. Many recommend models with keywords like 'uncensored', 'heretic', or 'aggressive'. Our API offers a similar experience without the need for local installation. You can use the API with any programming language that supports HTTP requests. This makes it easy to integrate into your existing workflows.
Finally, users ask about the difference between uncensored and abliterated models. Abliterated models are fine-tuned to remove safety filters. Our model is an open-weight model that is inherently uncensored. This means it does not have the same training as abliterated models. However, it provides a similar level of freedom. You should check the vendor documentation for current prices and limits if you are comparing different models.
When Our API Is Not the Right Choice
Our API is designed for text-only interactions. If you need image, audio, or video generation, our API is not the right choice. We do not support embeddings, OCR, or fine-tuning. If you need these features, you should look for a different provider. Our API is focused on providing a simple, uncensored text experience. You can use it for chat, summarization, or data extraction, but not for multimodal tasks.
If you need a model with a specific benchmark score or certification, our API may not be the right choice. We do not claim any specific benchmark scores or certifications. We focus on providing an uncensored experience. If you need a model that has been certified for HIPAA or SOC2, you should look for a different provider. Our API is best suited for developers who want a simple, uncensored text API.
If you need on-prem deployment, our API is not the right choice. We are a hosted service. You do not need to install anything on your own servers. If you need to keep your data on-prem, you should look for a different provider. Our API is best suited for developers who want a simple, hosted solution.
If you need a free unlimited tier, our API is not the right choice. We charge by token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There is no free unlimited tier. However, you get $0.50 of trial credit when you sign up. This is enough to test the API. If you need a free tier, you should look for a different provider.
Best Practices for Integration
When integrating our API, always handle errors gracefully. Check for 401, 402, and 429 errors and respond appropriately. Implement exponential backoff for rate limits. This ensures that your application does not crash when it hits a limit. You should also monitor your token usage to avoid unexpected charges. You can check your balance and usage in your account dashboard.
Use the seed parameter for reproducible results. This is useful for testing and debugging your application. If you use the same seed, you should get the same response for the same prompt. This helps you ensure that your application behaves consistently. You can also use the stop parameter to control the length of the response.
Validate your inputs before sending them to the API. This helps you avoid errors and refusals. You should also validate the output from the API. If you use JSON mode, ensure that the output is valid JSON. If you use function calling, validate the arguments before executing the function. This helps you ensure that your application works correctly.
Keep your API key secure. Do not expose it in your client-side code. Use environment variables to store your key. You should also rotate your key periodically to ensure security. If you lose your key, you can generate a new one in your account dashboard. Your key is shown immediately after signup, so make sure to save it securely.
Frequently asked questions
How do I top up my credit?
You can top up your credit with USDT on TRC20 or USDC on Base. The minimum amount is $20 and the maximum is $500. You can receive a bonus of +5% to +15% if you top up $50 or more.
What happens if I hit the rate limit?
If you hit the rate limit, you will receive a 429 error. This error is free, so you do not lose any credit. You should implement exponential backoff in your code to handle these errors.
Can I use the API for image generation?
No, our API is text-only. It does not support image, audio, or video generation. You can use it for chat, summarization, or data extraction.
Is there a free trial?
Yes, every new account gets $0.50 of trial credit. No card is needed to sign up. You can use this credit to test the API.
More guides
- Heretic LLM Censorship: What Actually Changes
- How to Install Heretic LLM, or Skip the Install
- Heretic LLM API: Hosted Setup in Five Minutes
- How Does Heretic Work on LLMs? A Plain Explanation
- LLM Heretic vs Abliterated: What Actually Differs
- LLM No Login: Analyzing the Trade-Offs of Anonymous Access
- Integrating Heretic LLM API: Setup and Checklist