EN ▾
Get API key

Troubleshooting Uncensored Text API Errors

Developers often confuse content filtering with API errors when working with uncensored models. This guide clarifies the difference between a refused request and a technical failure, helping you troubleshoot your integration effectively. We focus on text-only operations, distinct from image generation features discussed elsewhere.

Server rack with glowing blue data streams representing text data

Understanding Refusals vs. Errors

When using an uncensored text API, it is important to distinguish between a content refusal and a technical API error. Our model does not refuse lawful adult, fictional, security-research, or controversial topics. However, there is a hard content limit regarding sexual content involving minors. If such a request is made, the model will refuse it. This refusal is a feature of the model's safety layer, not a failure of the API connection.

Technical errors, on the other hand, are indicated by specific HTTP status codes. A 401 error means your API key is invalid. A 402 error indicates that your account has no remaining credit. A 429 error signals that you have exceeded the rate limit of 300 requests per minute. These codes are consistent and help you diagnose issues quickly without guessing.

Unlike image models that might fail due to resolution or format issues, text APIs fail due to authentication, billing, or rate limits. Always check your response headers for these codes first. If you receive a 402, you need to top up your account. If you receive a 401, verify your key in the dashboard.

Remember that our API is text-in, text-out. It does not handle images, audio, or video. If you are seeing errors related to image formats, the issue might be in your client code, not the API itself. Keep your focus on the text payload and the JSON structure to ensure smooth operation.

Managing Credit and Payments

Our API uses a prepaid credit system charged by real token usage. Errors and refusals are free, so you only pay for successful completions. The pricing is straightforward: $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There is no subscription or monthly fee, and your paid credit never expires. This model allows you to pay only for what you use, which is ideal for indie builders with variable workloads.

Top-ups are accepted via cryptocurrency only. You can use USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. If you top up $50 or more, you receive a bonus credit ranging from +5% to +15%. This bonus is automatically added to your account balance after the transaction is confirmed on the blockchain.

When you first sign up, you receive $0.50 of trial credit. This allows you to test the API without needing to add funds immediately. No credit card or PayPal is required for the trial. However, for ongoing usage, you must use crypto. Bank transfers and invoices are not supported, so ensure your wallet is set up correctly before making your first purchase.

Keep track of your token usage to avoid unexpected 402 errors. You can monitor your balance in the dashboard. Since the model is uncensored, you might use more tokens for complex, detailed responses. Plan your budget accordingly, especially if you are running high-volume applications.

Handling Rate Limits and Streaming

The API has a rate limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. This limit is per key, so if you have multiple keys, you can distribute your requests across them. However, each key has its own limit. It is important to implement retry logic with exponential backoff in your code to handle these errors gracefully.

Streaming is supported over Server-Sent Events (SSE). This allows you to receive tokens as they are generated, which improves the user experience for chat applications. The usage information, including token counts, is provided in the last chunk of the stream. This means you can track your token usage in real-time as the response is being generated.

When streaming, ensure your client handles the SSE format correctly. Each chunk is a separate event. You should concatenate these chunks to form the complete response. If you are not using streaming, you can still receive the full response in one go. However, streaming is recommended for long responses to reduce latency.

Rate limits can be hit quickly if you are sending many short requests. Consider batching your requests or using a queue to manage the flow. If you consistently hit the rate limit, you might need to upgrade your plan or use multiple keys. However, our API does not have different tiers, so you will need to manage your keys carefully.

Context Window and Token Management

The context window for our API is 100,000 tokens. This includes both the prompt and the completion. This large context window allows you to send long documents or maintain long conversations without losing context. It is important to monitor your token usage to ensure you do not exceed this limit. If you exceed the context window, the API may truncate your prompt or return an error.

Tokenization can be complex, especially with non-English languages or special characters. Our API uses the standard tokenizer for the model. You can estimate the token count by counting the words and multiplying by a rough factor, but for accuracy, use the API's response to get the exact count. The response includes the token usage for both input and output.

When sending long prompts, consider splitting them into smaller chunks if you are concerned about context limits. However, with a 100,000 token window, this is rarely necessary for most use cases. The key is to manage your input efficiently. Avoid sending redundant information that consumes tokens without adding value to the response.

Remember that the context window is shared between the prompt and the completion. If you send a very long prompt, you will have fewer tokens available for the response. Plan your inputs accordingly to ensure you get a complete and useful response. This is particularly important for applications that rely on detailed outputs.

Parameters and Configuration

Our API supports several parameters to customize the response. You can set the temperature, top_p, stop sequences, and seed. The temperature controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature produces more deterministic and focused outputs. The default temperature is usually set to a reasonable value for general use.

The top_p parameter controls the nucleus sampling. It limits the model to consider only the top tokens whose cumulative probability exceeds p. This helps in controlling the diversity of the output. The stop parameter allows you to specify sequences that signal the end of the response. This is useful for controlling the length of the output or stopping at specific markers.

The seed parameter allows you to reproduce the same response by setting a specific seed value. This is useful for testing and debugging. If you set the same seed, you should get the same response, assuming the model and other parameters remain constant. This reproducibility is valuable for ensuring consistency in your applications.

Function calling and JSON mode are also supported. You can define tools for the model to call, and it will return the function call in a structured format. JSON mode ensures that the output is valid JSON, which is useful for integrating with other systems. These features enhance the versatility of the API for various use cases.

Reddit Community Insights on Text vs Image

Discussions on r/aicuriosity often highlight the differences between text and image models. Users frequently ask about the capabilities of uncensored models, particularly regarding image generation. While our API is text-only, the community is interested in the broader ecosystem of uncensored AI. Threads on r/aicuriosity discuss updates to image models like Flux Uncensored V2, which bring unfiltered image generation capabilities.

Users in these threads compare the performance of different image models and discuss technical details like LoRA tweaks and diffuser libraries. They also ask about the realism of image outputs and compatibility with different model versions. These discussions are valuable for understanding the broader context of uncensored AI, even if they focus on image models.

When troubleshooting text API errors, it is helpful to keep these community insights in mind. Users are often looking for the most reliable and high-quality uncensored models. They value transparency and control over the output. Our API provides this control through its uncensored nature and flexible parameters.

While the Reddit digest focuses on image models, the underlying interest is in uncensored AI capabilities. Users want to know which models are the most versatile and reliable. Our API addresses this need by providing a reliable text-only solution. By understanding the community's interests, we can better serve developers who are looking for uncensored text generation.

When This API Is Not the Right Choice

Our API is designed for text generation. If you need image, audio, video, or OCR capabilities, this API is not the right choice. It does not support embeddings, fine-tuning, or model routing. If your project requires these features, you should look for a different service that offers them.

Similarly, if you need a service with an SLA guarantee or certifications like SOC2 or HIPAA, our API may not fit your needs. We do not claim these certifications or provide SLA percentages. Our focus is on providing an uncensored, flexible text API without the overhead of enterprise-grade guarantees.

If you are looking for a free unlimited tier, our API is also not the right choice. We use a prepaid credit system, so you will need to pay for usage. However, the pricing is transparent, and there are no hidden fees. You only pay for the tokens you use.

Finally, if you need a service that supports multiple models or model routing, our API is limited to a single uncensored text model. If you need to switch between different models or use a routing service, you should consider a different provider. Our API is optimized for a single, high-quality uncensored model.

Frequently asked questions

Why do I get a 402 error?

A 402 error means your account has no remaining credit. You need to top up your account using crypto to continue using the API. Errors and refusals are free, so you only pay for successful completions.

How do I top up my account?

You can top up your account using USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20, and the maximum is $500. You can also receive a bonus credit if you top up $50 or more.

Does the API support image generation?

No, the API is text-only. It does not support image, audio, or video generation. If you need image generation, you should look for a different service that offers it.

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 document processing.