Troubleshooting Uncensored AI API Errors
Integrating an uncensored AI API requires careful handling of rate limits and token constraints. This guide explains how to manage input and output budgets while troubleshooting common connection issues for text-only use cases.

Understanding Rate Limits and 429 Errors
When integrating our API, you will encounter a hard limit of 300 requests per minute per key. This constraint is designed to ensure stable performance for all users on the platform. If you exceed this limit, the API returns a 429 status code. It is important to implement exponential backoff strategies in your code to handle these transient errors gracefully.
Developers often push the limits when running bulk operations or testing multiple prompts simultaneously. You should monitor your request frequency closely, especially during peak usage times. The API does not offer a higher tier for increased limits, so efficient coding practices are essential. Avoid sending rapid-fire requests in tight loops without adequate delays.
When a 429 error occurs, your application should pause and retry after a short interval. This prevents overwhelming the server and ensures that your requests are processed in order. You can also distribute your load across multiple API keys if you have generated several keys for your account.
Keep in mind that the rate limit applies to all endpoints, including /v1/chat/completions and /v1/responses. Consistent monitoring of your error logs will help you identify patterns and adjust your request strategy accordingly. Proper handling of rate limits ensures a smooth experience for both you and other users on the platform.
Managing Token Budgets and Costs
Our API charges $0.15 per million input tokens and $0.50 per million output tokens. Since there is no subscription fee, your costs are directly tied to your actual token usage. It is important to estimate your token consumption before sending large prompts to avoid unexpected charges. You can use the formula (tokens divided by 1,000,000 times the per-million price) to calculate costs.
The context window supports up to 100,000 tokens for both prompt and completion combined. This allows for extensive context but can also lead to higher costs if not managed properly. You should trim unnecessary information from your prompts to stay within your budget. Efficient prompt engineering can significantly reduce your input token usage.
Errors and refusals are free, which means you do not pay for tokens that are not processed successfully. This feature is particularly useful when testing different prompt variations. You can experiment with various inputs without worrying about accumulating costs for failed requests.
Prepaid credit never expires, giving you the flexibility to use your funds over time. However, you must maintain a positive balance to continue sending requests. Monitoring your remaining credit and setting alerts can help you avoid service interruptions. Always ensure you have sufficient funds to cover your expected usage.
Troubleshooting 401 and 402 Errors
A 401 error indicates an invalid or missing API key. This is often caused by typos in the key string or using an expired key. Ensure that you copy the key exactly as it appears in your dashboard. The key is shown immediately upon signup, so verify it during the initial setup process.
A 402 error means you have insufficient credit to process the request. This can happen if your prepaid balance is depleted or if the cost of the request exceeds your available funds. You can top up your account using crypto only, specifically USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500.
To resolve these errors, check your API key validity and verify your account balance. If you receive a 401 error, regenerate your key or update it in your application. For 402 errors, add more credit to your account before retrying the request. These errors are straightforward to fix once you identify the root cause.
Keep your API key secure and avoid sharing it publicly. If you suspect your key has been compromised, regenerate it immediately to prevent unauthorized usage. Regularly reviewing your account activity can help you detect any unusual patterns that might indicate a security issue.
Optimizing Performance with Streaming and JSON
Our API supports streaming over Server-Sent Events (SSE), which allows you to receive responses in real-time. This is particularly useful for chat applications where you want to display text as it is generated. The usage statistics are included in the last chunk of the stream, so you can track token consumption accurately.
JSON mode is available for structured data output, which is ideal for integrating with other systems. You can specify the response_format parameter to ensure the model returns valid JSON. This reduces the need for post-processing and parsing errors in your application.
Parameters such as temperature, top_p, stop, and seed allow you to fine-tune the model's behavior. Adjusting these settings can help you achieve the desired tone and consistency in your responses. Experiment with different values to find the optimal configuration for your use case.
Penalties for repetition and other parameters can help improve the quality of the output. Use these features to control the model's creativity and prevent repetitive patterns. Proper configuration of these parameters ensures that your application delivers high-quality, relevant responses to users.
When Our API Is Not the Right Choice
Our API is designed specifically for text generation using a single uncensored open-weight model. If you need image, audio, video generation, embeddings, OCR, or fine-tuning, this service is not the right choice. The API does not support model routing or multiple model selection, so you are limited to the uncensored model.
If you require a service with a higher rate limit or a subscription-based pricing model, our API may not meet your needs. We offer a prepaid credit system with no monthly fees, which is ideal for variable usage but may not suit high-volume, predictable workloads.
Additionally, if you need advanced features like real-time translation or multi-modal inputs, you should look for a provider that specializes in those areas. Our API focuses on text-in, text-out capabilities with a focus on uncensored content. Check other vendors' documentation for current prices and limits if you need these additional features.
Finally, if you require strict SLA guarantees or certifications like SOC2 or HIPAA, our API does not currently offer these. We are an independent service that prioritizes flexibility and uncensored output over enterprise-grade certifications. Consider these factors when deciding if our API fits your project requirements.
Addressing Common User Concerns
Users often discuss the nature of uncensored AI in online communities, noting that these models can be highly engaged in various topics. Some users mention that the AI can be very interactive, sometimes leading to intense conversations. This is due to the model's training on diverse internet data, which includes a wide range of human expressions.
Another common theme is the desire for an AI that acts more like a tool and less like a monitor. Users appreciate the ability to get direct answers without excessive filtering. However, they also note that the AI is still a language model, not a true consciousness, which helps manage expectations about its behavior.
Some users also talk about the loneliness factor and how AI can serve as a companion. While our API provides the text generation capability, it does not handle the emotional aspects of the interaction. You are responsible for building the application that creates this connection.
Finally, users often compare different uncensored models, noting that some are better at reasoning while others are more creative. Our API provides a consistent experience with the uncensored model, allowing you to focus on building your application rather than managing model variations. Check other vendors' documentation for current prices and limits if you need to compare specific model performance.
Best Practices for Integration
When integrating our API, always handle errors gracefully by checking for 401, 402, and 429 status codes. Implement retry logic with exponential backoff to handle rate limits effectively. This ensures that your application remains responsive even under heavy load.
Use the seed parameter to ensure reproducibility in your tests. This is useful for debugging and ensuring consistent results across multiple runs. You can also use the stop parameter to control the length of the output, which helps manage token usage.
Monitor your token usage closely to stay within your budget. Use the streaming feature to display responses in real-time, improving the user experience. Keep your API key secure and rotate it periodically to maintain security.
Finally, test your integration thoroughly with different types of prompts to ensure it handles various scenarios. Use the JSON mode for structured data and adjust parameters like temperature and top_p to fine-tune the output. Regularly review your error logs to identify and resolve any issues promptly.
Frequently asked questions
How do I handle rate limits?
Implement exponential backoff in your code to retry requests after a 429 error. You can also distribute load across multiple API keys to stay within the 300 requests per minute limit.
What happens if I run out of credit?
You will receive a 402 error. You can top up your account using USDT on TRC20 or USDC on Base, with amounts between $20 and $500. Credit never expires.
Can I use other models with this API?
No, the API serves only the uncensored model with the ID 'uncensored'. You cannot route to other models or use embeddings, images, or audio.
Is there a free trial?
Yes, every new account receives $0.50 of trial credit with no card needed. This allows you to test the API before purchasing prepaid credit.