EN ▾
Get your key

Troubleshooting Uncensored LLM Outputs

Developers often encounter unexpected filters or rate limits when switching to uncensored providers. This guide helps you troubleshoot common reliability issues to ensure your text-in, text-out workflow runs smoothly.

Developer workspace with text code stream and neural network lines

Understanding Uncensored Behavior

When you switch to an uncensored model, the most noticeable change is how it handles topics that standard models might refuse. Our API serves one uncensored open-weight text model that does not refuse lawful adult, fictional, security-research, or controversial topics. This means you can send requests for creative writing, roleplay, or technical analysis without the model refusing based on content policies. However, it is important to note that the model still has a hard content limit: it will refuse requests involving sexual content with minors. This refusal is not a filter in the traditional sense but a specific safety boundary built into the model.

Developers often worry that uncensored means completely unfiltered, but that is not the case. The model is designed to be more permissive with adult or controversial subjects while maintaining a core safety guardrail. This distinction is important for developers building applications that need to handle sensitive content without triggering false positives. By understanding this behavior, you can design your application to handle refusals gracefully when they occur, rather than assuming every request will succeed.

Another key aspect of uncensored models is their ability to generate text without the usual political correctness constraints. This can be beneficial for creative writing, roleplay, or even security research where you need to test how a model reacts to edge cases. However, it also means that the output may be more raw or unpolished than what you might expect from a standard model. Developers should be prepared to handle this variability in tone and style.

Finally, it is important to remember that uncensored does not mean unlimited. The model still has a context window of 100,000 tokens, and it still charges for usage. This means that while you get more freedom in what you can ask, you still need to manage your token usage carefully to avoid unexpected costs. Understanding this balance between freedom and resource management is key to using an uncensored model effectively.

Handling Rate Limits and Errors

One of the most common issues developers face when using any API is hitting rate limits. Our API allows 300 requests per minute per key, which is generally sufficient for most applications. However, if you are sending a large number of requests in a short period, you may encounter a 429 error. This error indicates that you have exceeded the rate limit and need to wait before sending more requests. To handle this, you can implement exponential backoff in your application, which gradually increases the wait time between retries.

Another common error is the 401 invalid key error, which occurs when the API key is missing or incorrect. This is usually a simple fix: double-check that you are sending the correct key in the Authorization header. If the key is correct but you still get a 401 error, it may be that the key has been revoked or expired. In this case, you will need to generate a new key from your account dashboard.

The 402 no credit error occurs when you do not have enough prepaid credit to cover the cost of the request. This is different from a rate limit error because it is related to your account balance rather than the frequency of requests. To avoid this error, you can monitor your credit usage and set up alerts to notify you when your balance is low. You can also top up your credit using crypto, such as USDT on TRC20 or USDC on Base, with amounts ranging from $20 to $500.

It is also important to handle errors gracefully in your application. Instead of crashing when an error occurs, you can log the error and retry the request after a short delay. This ensures that your application remains stable even when temporary issues arise. By implementing reliable error handling, you can improve the reliability of your application and provide a better user experience.

Managing Context Windows and Tokens

Our API supports a context window of 100,000 tokens, which is the total number of tokens for both the prompt and the completion. This is a large context window, but it is important to manage it carefully to avoid exceeding the limit. If you send a prompt that is too long, the model may truncate the input or return an error. To avoid this, you can monitor the length of your prompts and truncate them if necessary before sending them to the API.

Another important consideration is the cost of using a large context window. Our API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This means that using a large context window can be more expensive than using a smaller one. To manage costs, you can try to minimize the length of your prompts and completions while still achieving the desired output. This may require some experimentation to find the right balance between cost and quality.

It is also important to note that the context window includes both the prompt and the completion. This means that if you send a long prompt, you have less room for the completion. To maximize the length of the completion, you can try to keep the prompt as short as possible while still providing enough context for the model to generate a relevant response. This may require some careful planning and testing.

Finally, you can use the streaming feature to receive the completion token by token. This allows you to start processing the output as soon as it is generated, rather than waiting for the entire completion to be returned. This can improve the perceived performance of your application and provide a better user experience. Streaming is particularly useful for long completions or for applications where real-time feedback is important.

Integrating Function Calling and JSON Mode

Our API supports function calling, which allows you to define custom functions that the model can call during generation. This is useful for applications that need to interact with external systems or perform specific tasks. To use function calling, you need to define the functions in your request and specify the parameters that the model should use. The model will then generate a response that includes a call to the appropriate function.

JSON mode is another useful feature that allows you to receive the output in a structured JSON format. This is particularly useful for applications that need to parse the output programmatically. To use JSON mode, you need to set the response_format parameter to json_object in your request. This ensures that the model outputs a valid JSON object that can be easily parsed by your application.

Combining function calling and JSON mode can be powerful for building complex applications. For example, you can use function calling to trigger specific actions based on the output of the model, and then use JSON mode to structure the response for further processing. This allows you to build applications that are both flexible and structured.

It is important to test your function calling and JSON mode implementations thoroughly to ensure that they work as expected. You can use the streaming feature to monitor the output in real-time and debug any issues that arise. By testing your implementation carefully, you can ensure that your application is reliable and performant.

When Our API Is Not the Right Choice

While our API is excellent for text-in, text-out workflows, it may not be the right choice for all applications. For example, if you need image, audio, or video generation, our API does not support these features. Similarly, if you need embeddings, OCR, or fine-tuning, our API does not offer these capabilities. In these cases, you may need to use a different provider that offers these additional features.

Another consideration is the pricing model. Our API charges based on token usage, with no subscription or monthly fee. This can be cost-effective for applications with variable usage, but it may not be the best option for applications with consistent, high-volume usage. In such cases, a provider with a subscription-based pricing model may be more cost-effective.

Additionally, our API is uncensored, which means it may not be suitable for applications that require strict content filtering. If you need a model that adheres to specific content policies, you may need to use a different provider that offers more control over content filtering. It is important to evaluate your application's needs carefully before choosing a provider.

Finally, if you need a provider with a specific SLA or certification, such as SOC2 or HIPAA, our API may not be the best choice. While we do not claim these certifications, other providers may offer them. It is important to check the provider's documentation for current prices, limits, and features to ensure that they meet your application's requirements.

Addressing Community Questions on Reliability

Developers often discuss reliability issues in online communities, particularly when it comes to uncensored models. Many users ask about the best uncensored models for roleplay or erotic content, and whether these models are truly unfiltered. While our API does not refuse lawful adult topics, it is important to note that the model still has a hard content limit regarding sexual content with minors. This is a common concern among users who want to ensure that their content is safe and appropriate.

Another common question is whether uncensored models are better for coding and technical tasks. While our API is designed for text generation, it can be used for coding tasks as well. However, if you need a model that is specifically optimized for coding, you may want to consider other providers that offer specialized coding models. It is important to evaluate your application's needs and choose a provider that best fits those needs.

Users also discuss the reliability of uncensored models in terms of consistency and performance. While our API is designed to be reliable, there may be occasional issues with rate limits or credit balances. It is important to monitor your usage and handle errors gracefully to ensure that your application remains stable. By understanding these common concerns, you can better prepare for potential issues and provide a better user experience.

Finally, users often ask about the best uncensored models that are not 'spicy' or character-based. While our API is uncensored, it is not specifically designed for roleplay or character-based interactions. If you need a model that is optimized for these types of interactions, you may want to consider other providers. It is important to choose a provider that aligns with your application's goals and user expectations.

Testing and Optimizing Your Workflow

Testing is a important part of ensuring that your uncensored LLM workflow runs smoothly. You should test your application with a variety of inputs to ensure that the model behaves as expected. This includes testing with different types of content, such as adult topics, controversial subjects, and technical queries. By testing thoroughly, you can identify any issues with the model's behavior and adjust your application accordingly.

Optimizing your workflow involves minimizing the length of your prompts and completions to reduce costs and improve performance. You can use techniques such as prompt engineering to create more efficient prompts that require fewer tokens. This can help you reduce costs and improve the speed of your application. It is also important to monitor your token usage and adjust your prompts as needed to stay within your budget.

Another important aspect of optimization is handling errors gracefully. You should implement error handling in your application to ensure that it remains stable even when errors occur. This includes handling rate limits, credit issues, and other potential errors. By implementing reliable error handling, you can improve the reliability of your application and provide a better user experience.

Finally, you should regularly review your application's performance and make adjustments as needed. This may involve optimizing your prompts, adjusting your rate limit settings, or upgrading your credit plan. By continuously monitoring and optimizing your workflow, you can ensure that your application remains reliable and cost-effective over time.

Frequently asked questions

Does the uncensored model refuse all adult content?

No, the model does not refuse lawful adult, fictional, or controversial topics. However, it has a hard limit on sexual content involving minors, which will be refused.

How do I handle rate limits?

The API allows 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. You can implement exponential backoff to handle this gracefully.

What payment methods are accepted?

We accept crypto only: USDT on TRC20 or USDC on Base. You can top up with amounts between $20 and $500. Credit cards and PayPal are not accepted.

Can I use this API for image generation?

No, this API is for text-in, text-out only. It does not support image, audio, video, embeddings, OCR, or fine-tuning. You need a different provider for those features.