EN ▾

The uncensored LLM API for developers

Get API key

Troubleshooting Uncensored Qwen Response Errors

Switching to an uncensored model often reveals new types of friction in your application. Users frequently encounter response errors or unexpected refusals when moving from standard models to our uncensored variant. This guide helps you diagnose common API issues and configure your requests correctly.

API terminal screen showing uncensored model interface with circuit board background

Understanding Uncensored Refusals

When you switch to an uncensored model, you might expect zero refusals, but that is not entirely accurate. Our API serves an uncensored open-weight text model that does not refuse lawful adult, fictional, security-research, or controversial topics. However, there is a hard content limit regarding sexual content involving minors. If your prompt triggers this specific hard limit, the model will refuse the request, returning a standard error or empty response depending on your client library.

This distinction is important for developers building applications that handle sensitive data. You need to distinguish between a model that is being too cautious and a model that has hit a hard filter. Our model is designed to be permissive, but it is not completely devoid of boundaries. Understanding this nuance helps you avoid misdiagnosing a refusal as a bug in your code.

Most refusals in an uncensored context come from the prompt structure itself. If your input is ambiguous or contains conflicting instructions, the model might struggle to generate a coherent response. This is not a refusal in the traditional sense but rather a failure to follow complex constraints. Check your system prompts and user messages for clarity.

Another common issue is the model refusing to adopt a persona if the prompt is too aggressive. While the model is uncensored, it still follows the underlying architecture of the base Qwen model. If the prompt is too short or lacks context, the model might default to a more neutral tone. Adding more detail to your prompt can often resolve these subtle refusal issues.

Handling HTTP Error Codes

Your application will inevitably encounter HTTP errors when interacting with any API. Our API returns specific status codes to help you diagnose issues. A 401 error indicates an invalid key. This usually happens if you have rotated your key or if you are using a key from a different account. Ensure that the key you are sending in the Authorization header is correct and active.

A 402 error means you have no credit. Our service is prepaid, and you are charged by real token usage. If your balance reaches zero, the API will return a 402 error. Unlike some competitors, we do not offer a free tier or a trial that expires quickly. You need to top up your credit using crypto to resume service. Errors and refusals are free, so you are not charged for failed requests.

A 429 error indicates a rate limit. We allow 300 requests per minute per key. If you exceed this limit, the API will return a 429 error. This is common in batch processing scenarios or when multiple threads are sending requests simultaneously. You should implement exponential backoff in your code to handle these errors gracefully.

It is important to log these errors and monitor their frequency. If you see a spike in 429 errors, you might need to distribute your load across multiple keys. If 401 errors persist, check your integration code for hardcoded keys that might be outdated. Proper error handling ensures a smooth user experience even when the API is under heavy load.

Optimizing Generation Parameters

The quality of the output from our uncensored model depends heavily on the parameters you send. We support standard parameters like temperature, top_p, stop sequences, and seed. Adjusting these can significantly reduce the likelihood of errors or incoherent responses. The temperature controls the randomness of the output. A higher temperature leads to more creative but potentially less stable responses.

For most use cases, a temperature between 0.7 and 1.0 is recommended. If you are seeing erratic or nonsensical outputs, try lowering the temperature. The top_p parameter controls the nucleus sampling. It limits the model to consider only the top percentage of tokens. A lower top_p value makes the output more focused and less likely to wander off topic.

Use the stop parameter to prevent the model from generating excessive text. This can help reduce token usage and speed up responses. You can specify multiple stop sequences to ensure the model stops at the right point. This is particularly useful for chat applications where you want to maintain a conversational flow.

The seed parameter allows you to reproduce the same output for a given prompt. This is useful for testing and debugging. If you encounter a specific error with a certain prompt, you can fix the seed and reproduce the issue consistently. This makes it easier to identify and fix problems in your prompt engineering.

Troubleshooting Context Window Issues

Our API supports a context window of 100,000 tokens, which is prompt plus completion together. This is a large window, but it is not infinite. If you are sending very long prompts, you might run into memory issues or slow response times. Ensure that your input does not exceed the limit. If you do exceed the limit, the API may return an error or truncate the input, leading to unexpected outputs.

Managing context efficiently is key to avoiding errors. If you are building a chat application, you need to manage the conversation history carefully. Too much history can fill up the context window quickly. Consider truncating older messages or summarizing them before adding them to the context. This helps keep the context window within limits and ensures faster responses.

Another common issue is the model forgetting earlier parts of the conversation. This is not an error but a limitation of the context window. If the conversation is very long, the model might focus on the most recent tokens. To mitigate this, you can use system prompts to reinforce important instructions. This helps the model remember key details even if they are far back in the context.

Monitor your token usage closely. We charge $0.15 per 1M input tokens and $0.50 per 1M output tokens. If you are using a large context window, your costs can add up quickly. Use the streaming feature to get usage information in the last chunk. This helps you track token usage in real-time and adjust your strategy if needed.

When This API Is Not the Right Choice

While our API is powerful for text generation, it is not suitable for every use case. We serve a single uncensored open-weight text model. We do not offer embeddings, image generation, audio, video, OCR, or fine-tuning. If your application requires these features, our API is not the right choice. You would need to look for a more comprehensive solution that supports multiple modalities.

Additionally, if you need model routing or the ability to switch between different models dynamically, our API does not support this. We serve one model with the ID 'uncensored'. If you need to experiment with different models or switch based on performance, you would need a different service. Our API is designed for simplicity and consistency, not for flexibility in model selection.

If you require high availability guarantees or specific certifications like SOC2 or HIPAA, our API might not meet your needs. We do not claim SLA percentages or certifications. If your application requires strict compliance or uptime guarantees, you should evaluate other providers who offer these features. Our focus is on providing an uncensored, open-weight model with a simple pricing structure.

Finally, if you need real-time audio or video processing, our text-only API is not the right tool. We do not generate or process media. If your application involves multimedia content, you would need a different solution. Our API is ideal for text-based applications that require an uncensored model with a large context window and simple integration.

Addressing Community Concerns

Developers on Reddit often discuss the performance of various models and the challenges of switching between them. In threads on r/LocalLLaMA, users frequently talk about the trade-offs between different model sizes and the ease of integration. Some users report that switching from one model to another is as simple as a one-line config change, while others find it more complex. This highlights the importance of choosing an API that fits your existing infrastructure.

Another common topic is the comparison between different model versions. Users often ask which model is better for specific tasks, such as coding or creative writing. While our model is uncensored and powerful, it is important to evaluate it based on your specific needs. The community values models that are easy to integrate and provide consistent performance. Our API aims to provide a straightforward experience with a single, well-tuned model.

Users also discuss the importance of transparency in model performance. Some users prefer models that are open-weight and allow for fine-tuning. Our model is open-weight, but we do not offer fine-tuning on our API. If you need to fine-tune the model, you would need to do so locally or use a different service. This is a key consideration for developers who want to customize the model for their specific use case.

Finally, the community often discusses the cost-effectiveness of different models. Users appreciate services that offer transparent pricing and no hidden fees. Our prepaid credit model with crypto payments is designed to be simple and fair. Users can top up their credit with USDT or USDC and pay only for what they use. This transparency helps developers budget their API usage effectively.

Best Practices for Integration

To ensure a smooth integration with our API, follow these best practices. First, always handle errors gracefully. Implement retry logic for 429 errors and check for 401 and 402 errors regularly. This will prevent your application from breaking when issues arise. Use the streaming feature to get real-time feedback on token usage and response quality.

Second, optimize your prompts for the uncensored model. Use clear and detailed instructions to reduce the likelihood of refusals or incoherent outputs. Experiment with different parameters like temperature and top_p to find the best balance between creativity and stability. Use the seed parameter to reproduce results for debugging.

Third, manage your context window efficiently. Keep your conversation history concise and relevant. Use system prompts to reinforce important instructions. Monitor your token usage to avoid exceeding the context limit and to control costs. Consider truncating older messages if the conversation becomes too long.

Finally, stay updated with the latest documentation. Our API supports standard OpenAI-compatible endpoints. If you are using an existing client library, you may need to adjust the base URL to point to our service. Check the documentation for the latest features and limits. This will help you take full advantage of our API and avoid common pitfalls.

Frequently asked questions

Why am I getting a 402 error?

A 402 error means you have no credit. Our service is prepaid, and you are charged by real token usage. You need to top up your credit using crypto to resume service.

Does the model refuse all adult content?

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

How do I handle rate limits?

We allow 300 requests per minute per key. If you exceed this, you will get a 429 error. Implement exponential backoff in your code to handle these errors gracefully.

Can I use this API for image generation?

No, this API is text-only. We do not offer image, audio, video, or embedding generation. It is designed for text-in, text-out scenarios.