EN ▾
Get API key

Troubleshooting Uncensored AI API Errors and Risks

Switching to an uncensored model changes how you handle errors and content filtering. This guide covers common integration issues, cost management, and risk strategies for developers using our API.

Developer workspace with holographic uncensored chat interface and crypto symbols

Understanding API Error Codes

When integrating with our API, you will encounter specific HTTP status codes that indicate the state of your request. The most common errors involve authentication, billing, and rate limiting. A 401 error indicates an invalid or missing API key. This usually happens if you have not included the key in the authorization header or if the key has been revoked. You should verify your key immediately after signup, as it is shown only once.

A 402 error signals that you have no remaining prepaid credit. Since our service uses a prepaid credit model with no monthly subscription, requests will fail once your balance reaches zero. Errors and refusals are free, so you only pay for successful token generation. You can top up using crypto, specifically USDT on TRC20 or USDC on Base, with amounts ranging from $20 to $500.

A 429 error means you have hit the rate limit of 300 requests per minute per key. This limit applies to all endpoints, including chat completions and model checks. If you exceed this limit, your requests will be rejected until the window resets. You should implement exponential backoff in your client code to handle these retries gracefully without overwhelming the server.

Other errors may occur during network transmission or if the server is temporarily unavailable. Always check the response body for a detailed message. Unlike some vendors, we do not offer SLA guarantees or uptime certificates, so you should build your application to be resilient to transient failures. Use these error codes to log issues and adjust your integration logic accordingly.

Managing Token Costs and Credits

Our API charges based on token usage, with a price of $0.15 per one million input tokens and $0.50 per one million output tokens. This pricing model means your costs depend entirely on the length of your prompts and the length of the generated responses. You do not pay for errors or refusals, which can help reduce costs if the model refuses a request. However, successful generations are billed immediately from your prepaid balance.

To estimate your costs, you can calculate the total tokens used and apply the per-million rate. For example, if you send a prompt of 1,000 tokens and receive a response of 500 tokens, you pay for 1,500 tokens. The formula is simple: divide the total tokens by one million and multiply by the respective price. This allows you to budget accurately for your projects. Remember that the context window is 100,000 tokens, so long conversations can accumulate costs quickly.

You can top up your account using cryptocurrency. The minimum top-up amount is $20, and the maximum is $500. You can use USDT on the TRC20 network or USDC on the Base network. There are no fees for card payments or bank transfers because those methods are not supported. Your paid credit never expires, so you can top up whenever you need more balance. This flexibility is useful for developers who want to test the API without committing to a subscription.

New accounts receive $0.50 of trial credit, allowing you to test the API without adding funds. This trial credit is sufficient for a few test requests. Once the trial credit is exhausted, you must top up to continue using the service. Keep track of your usage in the dashboard to avoid unexpected service interruptions. Understanding these costs helps you plan your development cycle effectively.

Mitigating Content Risks

Since our model is uncensored, it does not refuse lawful adult, fictional, security-research, or controversial topics. However, there is a hard content limit regarding sexual content involving minors. Requests containing such content are refused by the model. This means the API will not generate text that violates this specific policy. You should design your application to handle these refusals gracefully, perhaps by retrying with a slightly different prompt or notifying the user.

To mitigate risks, you can implement your own content filtering layer in your application. This allows you to enforce specific policies that may be stricter than the model's default behavior. For example, you might want to filter out specific keywords or phrases that are not explicitly banned by the API. This gives you more control over the content your users see. You can use the model's parameters, such as temperature and top_p, to influence the randomness and diversity of the output.

Another risk is the potential for the model to generate long or repetitive text. You can use the stop parameter to limit the length of the response. This helps control costs and ensures that the output is concise. You can also use the seed parameter to get reproducible results, which is useful for testing and debugging. By combining these parameters, you can fine-tune the model's behavior to better suit your needs.

Finally, remember that the model does not have memory between sessions unless you provide the context in the prompt. This means that each request is independent. You should manage the conversation history in your application and send the relevant context with each request. This ensures that the model has the necessary information to generate coherent responses. By managing context and risks proactively, you can build a more reliable and safe application.

When Our API Is Not the Right Choice

Our API is designed for text generation with an uncensored open-weight model. It does not support embeddings, image generation, audio, video, or OCR. If your application requires these features, our API is not the right choice. For example, if you need to analyze images or generate video clips, you should look for a different service that specializes in those capabilities. You can check the documentation of other vendors for current prices and limits for those features.

Additionally, our API does not offer fine-tuning or model routing. If you need to train a custom model on your data or switch between different models based on the task, our API may not meet your needs. The model ID is fixed as 'uncensored', and you cannot choose a different model. This simplicity is a feature for developers who want a straightforward integration without the complexity of managing multiple models.

If you need a service with an SLA guarantee or certifications like SOC2 or HIPAA, our API may not be suitable. We do not claim these certifications, and our service is hosted without specific uptime guarantees. For enterprise clients who require strict compliance and reliability guarantees, you should evaluate other providers that offer these features. Our service is best suited for developers who prioritize uncensored content and flexible pricing over formal certifications.

Finally, if you need a free unlimited tier, our API is not the right choice. We offer a prepaid credit model with no monthly fee, but you must pay for usage. The trial credit is only $0.50, and subsequent top-ups are required. If you need a completely free service with no usage limits, you should look for other options. Our service is ideal for developers who are willing to pay for high-quality, uncensored text generation without the constraints of a subscription.

Addressing Reddit Community Concerns

Developers on Reddit often discuss the need for uncensored chatbots that remember context and handle explicit content well. Threads on r/ChatbotRefugees show users looking for reasonably priced options with good memory. Our API supports long context windows of 100,000 tokens, which allows for extensive conversation history. This is a key feature for users who want the model to remember previous interactions without losing context.

Another common concern is the ability to generate explicit content without refusal. Users on r/Chatbots and r/JanitorAI_Refuges frequently seek models that do not censor adult topics. Our uncensored model does not refuse lawful adult content, making it suitable for these use cases. However, users should be aware of the hard limit on sexual content involving minors. This distinction is important for developers building applications for specific audiences.

Cost is also a major topic in these discussions. Users often compare pricing models and look for affordable options. Our prepaid credit model with crypto payments offers flexibility for developers who do not want to commit to a monthly subscription. The ability to top up with USDT or USDC allows for easy management of credits. This is a significant advantage for indie builders who want to control their costs.

Finally, users often ask about the reliability and speed of the API. While we do not claim specific uptime guarantees, the service is hosted and designed for high availability. Developers can test the API with the trial credit to verify performance. By addressing these common concerns, we aim to provide a reliable solution for developers seeking an uncensored chatbot API.

Integrating Streaming and Function Calling

Our API supports streaming over Server-Sent Events (SSE), which allows you to receive responses in real-time. This is useful for chat applications where you want to display text as it is generated. The usage information is included in the last chunk of the stream, so you can track token consumption accurately. This feature helps you manage costs and provide a better user experience by showing immediate feedback.

Function calling is another powerful feature supported by our API. You can define tools in your request, and the model will return structured data that you can use to trigger actions in your application. This is useful for building agents that can interact with external systems. You can use the JSON mode to ensure that the model returns valid JSON data, which makes parsing easier.

To use function calling, you need to specify the tools in your request and set the model to return JSON. The model will then generate a response that includes the tool calls. You can execute these tools in your application and feed the results back to the model. This enables complex workflows and automation. You can also use the stop parameter to control the length of the response.

Parameters like temperature, top_p, and seed allow you to control the randomness and reproducibility of the output. Temperature controls the creativity of the model, while top_p controls the diversity of the tokens. Seed allows you to get consistent results for testing. By using these parameters, you can fine-tune the model's behavior to suit your specific needs. This flexibility is a key advantage of our API.

Testing and Verification Strategies

Before deploying your application, it is important to test the API thoroughly. You can use the trial credit of $0.50 to send a few test requests. This allows you to verify that the integration works correctly without spending any money. You should test different scenarios, including successful responses, errors, and rate limits. This helps you identify any issues early in the development process.

You should also test the streaming functionality to ensure that responses are received correctly. Check that the usage information is included in the last chunk and that the text is displayed in real-time. This is important for chat applications where user experience depends on immediate feedback. You can also test the function calling feature to ensure that tools are executed correctly.

Verify that the model responds to your prompts as expected. Test different topics and content types to ensure that the uncensored behavior is consistent. Pay attention to the hard limit on sexual content involving minors and ensure that your application handles refusals gracefully. You can also test the parameters like temperature and top_p to see how they affect the output.

Finally, monitor your token usage and costs during testing. This helps you estimate the costs for your application and plan your budget. You can use the dashboard to track your usage and top up your credits as needed. By testing thoroughly, you can ensure that your application is reliable and cost-effective. This preparation will save you time and money in the long run.

Frequently asked questions

How do I handle a 402 error?

A 402 error means you have no remaining prepaid credit. You need to top up your account using USDT on TRC20 or USDC on Base. The minimum top-up amount is $20.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for long conversations and extensive context.

Does the API support image generation?

No, the API only supports text generation. It does not support embeddings, images, audio, video, or OCR. You should check other vendors for those features.

How can I get reproducible results?

You can use the seed parameter in your request. This allows you to get consistent results for testing and debugging purposes.