EN ▾

Uncensored LLM API for developers

Get API key

Troubleshooting Uncensored LLM API: Latency & Token Limits

Developers often encounter friction when integrating uncensored text models, particularly regarding response delays and request throttling. This guide addresses the specific mechanics of our API to help you stabilize your applications and avoid common integration errors.

Developer workspace showing text code and rate limit indicators on a monitor

Understanding Context Windows and Memory

When you integrate an uncensored text model, the context window is a critical factor in determining how much information the model can retain during a conversation. Our API provides a context window of 100,000 tokens, which includes both the input prompt and the output completion. This generous limit allows for deep conversations and large document processing without losing context.

However, a large context window does not guarantee faster responses. In fact, processing a high volume of tokens can increase latency because the model must attend to more data. Developers should monitor their token usage closely to ensure that the input size remains manageable for their specific use case.

It is important to note that the context window measures the total tokens in a single request. If you are sending very long documents or maintaining long conversation histories, you may approach this limit quickly. Keeping track of your token count helps you anticipate when you might need to truncate older messages or start a new session.

Unlike services that offer image or video generation, our API focuses solely on text. This means your token usage is dedicated entirely to language processing. You do not need to worry about tokens being consumed by multimodal inputs, which simplifies your cost and performance calculations.

Managing Rate Limits and Throttling

One of the most common issues developers face is hitting the rate limit. Our API allows 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. This limit is designed to ensure fair usage and maintain stability for all users on the platform.

To troubleshoot rate limit issues, you should implement exponential backoff in your integration. This means that if you receive a 429 error, you wait for a short period before retrying the request, and then wait longer if the error persists. This approach prevents your application from flooding the API with requests.

It is also helpful to batch your requests where possible. Instead of sending individual requests for each line of text, consider grouping them into a single call if the API supports it. This reduces the total number of requests and helps you stay within the 300 requests per minute limit.

Keep in mind that the rate limit applies to the API key, not the account. If you have multiple keys, each key has its own limit. This allows you to scale your application by distributing requests across multiple keys, but you must manage each key separately to avoid hitting the limit on any single one.

Handling Errors and Refusals

Errors can occur for various reasons, such as invalid keys or insufficient credit. A 401 error indicates an invalid key, while a 402 error means you have no credit left. Understanding these errors helps you debug your integration quickly.

One advantage of our service is that errors and refusals are free. This means that if a request fails due to a network issue or a validation error, you do not lose any prepaid credit. This can be a significant cost saver, especially during the testing phase of your application.

Another important error to watch for is the content refusal. Our API has a hard limit on sexual content involving minors. If your input triggers this limit, the request will be refused. This is a safety feature to ensure compliance with legal standards. It is important to review your input data to ensure it does not contain prohibited content.

By handling these errors gracefully, you can provide a better user experience. Displaying a clear message when a request fails helps users understand what went wrong and how to proceed. This is particularly important for applications that rely on continuous text generation.

Pricing and Credit Management

Our API uses a prepaid credit system based on real token usage. The price is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This pricing model is straightforward and allows you to pay only for what you use.

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. If you top up $50 or more, you receive a bonus credit ranging from 5% to 15%. This bonus can help you get more value from your purchases.

It is important to note that there is no monthly fee or subscription. Your prepaid credit never expires, so you can use it whenever you need it. This flexibility is beneficial for developers who have variable usage patterns.

When calculating your costs, remember that the price is per million tokens. For most applications, the cost per request is very low. However, if you are processing large documents or generating long responses, the cost can add up. Monitoring your usage helps you stay within your budget.

When This API Is Not the Right Choice

While our API is excellent for text generation, it may not be the right choice for everyone. If you need image, audio, or video generation, this service does not offer those features. Our API is strictly text-in, text-out.

Similarly, if you require embeddings for vector search, our API does not support this feature. You would need to look for a different service that offers embedding capabilities. The same applies to OCR, fine-tuning, and model routing.

Additionally, if you need a service with a strict SLA or certifications like SOC2 or HIPAA, our API may not meet those requirements. We do not claim to offer these guarantees. Developers who need these specific features should evaluate other options.

Finally, if you prefer to pay with a credit card or PayPal, our crypto-only payment system might not be suitable for you. We accept USDT on TRC20 or USDC on Base, so you need to have a crypto wallet to use our service.

Addressing Community Questions on Reddit

Developers often discuss the best uncensored AI generators on platforms like Reddit. In threads on r/GeminiAI and r/AIToolsAndTips, users frequently ask for recommendations for uncensored chatbots and image generators. Many users are looking for tools that offer creative freedom without strict content filters.

While some users recommend local models or mobile apps, others prefer cloud-based APIs for their ease of integration. Our API addresses this need by providing a hosted, uncensored text model that is easy to integrate into your applications. The model ID is simply uncensored, making it straightforward to use.

Users also discuss the trade-offs between different services. Some prefer services that offer a free trial, while others are willing to pay for higher quality. Our API offers a $0.50 trial credit for new accounts, allowing you to test the service without any financial commitment.

Another common topic is the quality of the responses. Users often compare the performance of different models. While our API does not claim to have the highest benchmark scores, it offers a reliable and uncensored text generation experience. Developers can check the vendor documentation for more details on specific model capabilities.

Optimizing Your Integration

To ensure a smooth integration, it is important to optimize your requests. Use streaming over SSE to get real-time updates on the response. This can improve the user experience by showing the text as it is generated.

You can also use function calling and JSON mode to structure your responses. This is useful for applications that need to parse the output programmatically. The API supports parameters like temperature, top_p, stop, seed, and penalties, allowing you to fine-tune the generation.

Monitoring your usage is key to avoiding rate limits and managing costs. Keep track of your token usage and adjust your request volume accordingly. If you notice a increase in latency, consider reducing the context window or batching your requests.

Finally, always handle errors gracefully. Display clear messages to users when a request fails, and provide guidance on how to resolve the issue. This helps build trust and ensures a better user experience.

Frequently asked questions

What is the context window size?

The context window is 100,000 tokens, which includes both the input prompt and the output completion. This allows for long conversations and large document processing.

How do I top up my credit?

You can top up your credit using USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500. Bonus credit is available for top-ups of $50 or more.

What happens if I hit the rate limit?

If you exceed 300 requests per minute, you will receive a 429 error. You should implement exponential backoff to retry your requests after a short delay.

Does the API support image generation?

No, the API is text-only. It does not support image, audio, video, or embedding generation. You need a different service for those features.