Troubleshooting Alignment and Output Quality in Uncensored APIs
Developers often expect an uncensored model to output raw text without any filtering, yet residual safety alignment can still appear in responses. This guide explains how to troubleshoot these issues by verifying model capabilities and managing context effectively. We focus on practical steps to achieve consistent, high-quality text generation using our API.

Understanding Residual Safety Alignment
When you select an uncensored model, you expect it to handle adult, fictional, or controversial topics without refusal. However, residual safety alignment can still cause the model to filter content or refuse certain prompts. This happens because the model may have been trained on data that includes safety filters, even if the final layer is uncensored. It is important to verify that the model does not refuse lawful adult topics, as this is a key feature of our uncensored model.
To troubleshoot this, you should first check if the refusal is due to the model's inherent behavior or external factors. Our API serves one specific uncensored model, identified by the id uncensored. This model is designed to allow text in and text out without the typical corporate filters. If you notice refusals, it might be due to the specific phrasing of your prompt or the context provided.
Another factor to consider is the context window. Our API offers a context window of 100,000 tokens, which includes both the prompt and the completion. If the context is too long, the model might lose focus on the uncensored nature of the request. Ensuring that your prompt is clear and within the context limits can help reduce residual alignment issues.
Finally, you can use parameters like temperature and top_p to influence the model's output. A higher temperature can make the output more random and less likely to follow safety patterns, while a lower temperature can make it more deterministic. Experimenting with these settings can help you find the right balance for your specific use case.
Managing Context and Token Limits
The context window is a critical aspect of using any LLM API. Our API provides a context window of 100,000 tokens, which is the total number of tokens for both the prompt and the completion. This large window allows for extensive conversations and complex prompts without losing context. However, it also means that you need to manage your tokens carefully to avoid hitting the limit.
If you are working with long documents or extended conversations, you might need to truncate or summarize previous messages to stay within the token limit. This is especially important if you are using the API for tasks that require a lot of context, such as code generation or detailed analysis. Keeping track of token usage can help you optimize your prompts and avoid unexpected errors.
Another consideration is the cost of tokens. Our API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. By managing your context efficiently, you can reduce the number of tokens used, which can lower your costs. This is particularly useful for developers who are building applications with high token usage.
Additionally, you can use the stop parameter to control when the model should stop generating text. This can help you avoid generating unnecessary tokens and keep your context window clear for new requests. By combining these strategies, you can ensure that your API calls are efficient and cost-effective.
Optimizing Parameters for Quality
To achieve high-quality output from an uncensored model, you need to optimize the parameters that control the model's behavior. Our API supports several parameters, including temperature, top_p, stop, seed, and penalties. Each of these parameters plays a role in shaping the output of the model.
The temperature parameter controls the randomness of the output. A higher temperature makes the output more random and creative, while a lower temperature makes it more deterministic and focused. For uncensored models, a higher temperature can help reduce the likelihood of the model following safety patterns, leading to more raw and unfiltered text.
The top_p parameter, also known as nucleus sampling, controls the diversity of the output by limiting the selection to the most probable tokens. A lower top_p value makes the output more focused, while a higher value allows for more variety. Combining temperature and top_p can help you fine-tune the balance between creativity and coherence.
Additionally, you can use the seed parameter to reproduce specific outputs. This is useful for testing and debugging, as it allows you to generate the same output multiple times. By experimenting with these parameters, you can find the optimal settings for your specific use case and ensure that your API calls produce high-quality, uncensored text.
Handling Errors and Rate Limits
When using any API, it is important to handle errors and rate limits effectively. Our API returns specific error codes to help you troubleshoot issues. A 401 error indicates an invalid key, while a 402 error means you have no credit. A 429 error indicates that you have hit the rate limit of 300 requests per minute per key.
To avoid hitting the rate limit, you can implement backoff strategies in your application. This involves waiting for a certain period before retrying a request after receiving a 429 error. By doing so, you can prevent overwhelming the API and ensure that your requests are processed smoothly.
Another important aspect is managing your credit. Our API uses prepaid credit, which is charged based on real token usage. Errors and refusals are free, so you do not need to worry about being charged for unsuccessful requests. However, you should monitor your credit balance to ensure that you have enough funds for your API calls.
You can top up your credit using crypto, specifically USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. By keeping your credit balanced and handling errors gracefully, you can ensure a smooth experience when using our API for your projects.
When Our API Is Not the Right Choice
While our API is designed for uncensored text generation, it may not be the right choice for every project. If you need features such as embeddings, image generation, audio or video generation, OCR, or fine-tuning, our API does not support these capabilities. Our API is focused on text in and text out, using the uncensored model.
If you require model routing or the ability to switch between different models, our API does not offer this feature. It serves only one uncensored open-weight text model. For projects that need these advanced features, you might need to look for other vendors that offer a broader range of capabilities.
Additionally, if you are looking for a solution with a subscription model or monthly fees, our API might not fit your needs. We offer a prepaid credit system with no monthly fees, and paid credit never expires. This can be a advantage for some users, but others might prefer the predictability of a subscription.
Finally, if you need a service with specific SLA guarantees or certifications like SOC2, HIPAA, or ISO, our API does not claim these. We are an independent service, and we do not make claims about uptime or certifications. For projects that require these assurances, you should check the documentation of other vendors to see if they meet your specific requirements.
Addressing Common User Questions
Users often ask about finding uncensored chatbots that are powerful and do not forget previous messages. In threads on r/ChatbotRefugees, developers discuss the need for chatbots that can remember context over long conversations. Our API supports a large context window of 100,000 tokens, which helps in maintaining context over extended interactions.
Another common question is about the cost of using uncensored chatbots. Users on r/JanitorAI_Refuges mention the importance of affordable options. Our API offers a prepaid credit system with no monthly fees, and errors are free. This can be a cost-effective solution for developers who want to experiment with uncensored models without a financial commitment.
Users also inquire about the ease of signup and key management. On r/chatbot, developers appreciate the ability to sign up with Google or email and receive their key immediately. Our API provides a straightforward signup process, allowing users to start using the API quickly.
Finally, there is interest in the ability to generate code and other text outputs. Our API supports function calling and JSON mode, which can be useful for developers building applications that require structured data. By addressing these common questions, we aim to help users make informed decisions about using our API for their projects.
Integrating with Your Workflow
Integrating an uncensored API into your workflow requires careful consideration of the API's features and limitations. Our API supports streaming over SSE, which can be useful for real-time applications. You can also use function calling to integrate the API with other tools and services.
When integrating, you should consider the rate limits and error handling. Our API allows 300 requests per minute per key, which is sufficient for most applications. However, you should implement backoff strategies to handle rate limit errors gracefully.
Additionally, you can use the seed parameter to reproduce specific outputs, which is useful for testing and debugging. By incorporating these features into your workflow, you can ensure that your application is reliable and reliable.
Finally, you should monitor your token usage and credit balance to avoid unexpected charges. Our API charges based on real token usage, so keeping track of your usage can help you manage your costs effectively. By following these steps, you can successfully integrate our API into your workflow and use its uncensored capabilities.
Frequently asked questions
Does the uncensored model refuse adult content?
The model does not refuse lawful adult, fictional, security-research, or controversial topics. However, it may refuse requests involving sexual content with minors. This is a hard content limit enforced by the model.
How do I top up my credit?
You can top up your credit using crypto only. We accept USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500.
What is the context window size?
The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for extensive conversations and complex prompts without losing context.
Can I use the API for function calling?
Yes, our API supports function calling (tools). You can also use JSON mode to get structured output. These features are useful for integrating the API with other tools and services.