EN ▾
Get API key

Troubleshooting Uncensored LLM API Errors and Limits

Developers integrating uncensored LLM APIs often encounter specific error codes and rate limits that can halt progress. This guide explains how to interpret these signals and manage your integration effectively. We focus on the practical steps to resolve common issues with our text-only service.

Developer workspace with laptop and crypto tokens illustrating API integration

Understanding Common HTTP Errors

When integrating with our API, you will inevitably encounter HTTP error codes that indicate specific issues with your requests. The most common errors are 401, 402, and 429. A 401 error indicates an invalid key, which means the authentication token you provided is either incorrect or has been revoked. This is often due to a typo in the API key or using a key from a different account. You should verify that the key you are sending matches the one generated during signup.

A 402 error signifies that you have no credit left on your account. Since our service uses prepaid credits, requests will fail once your balance reaches zero. Unlike some competitors, we do not offer a free tier or a trial that lasts indefinitely. You must top up your account using cryptocurrency to continue making requests. This error is straightforward to resolve by adding funds via USDT on TRC20 or USDC on Base.

A 429 error indicates that you have hit the rate limit. Our API allows 300 requests per minute per key. If you exceed this limit, subsequent requests will be rejected until the window resets. This is important for applications that make rapid, automated requests. You should implement exponential backoff in your code to handle these delays gracefully. This prevents your application from flooding the server and wasting resources on failed attempts.

Managing Prepaid Crypto Credits

Our API operates on a prepaid credit system, which means you pay for what you use. There are no monthly subscriptions or hidden fees. You can top up your account with any whole amount between $20 and $500. The payment is processed using cryptocurrency, specifically USDT on the TRC20 network or USDC on the Base network. This method ensures fast transactions and low fees for both the provider and the user.

It is important to note that we do not accept credit cards, PayPal, or bank transfers. If you are used to traditional payment methods, this might require a adjustment. You will need a crypto wallet capable of sending USDT or USDC. Once the transaction is confirmed, your credit is available immediately. There is no waiting period for funds to clear, which allows for rapid development and testing cycles.

Bonus credit is available when you top up $50 or more. This bonus ranges from 5% to 15%, depending on the amount. This incentive helps developers stretch their budget further, especially for larger projects. The bonus credit never expires, so you can use it whenever you need it. This is a significant advantage for long-term projects that require consistent access to the model.

Handling Rate Limits and Streaming

Rate limits are a critical aspect of using any API, and our service is no exception. The limit is set at 300 requests per minute per key. This is a generous limit for most applications, but it can be reached quickly if you are processing large batches of data. To manage this, you should implement a queue system in your application. This ensures that requests are sent at a steady rate, preventing sudden spikes that could trigger a 429 error.

Streaming is supported over Server-Sent Events (SSE). This allows you to receive responses in chunks, which is useful for real-time applications. The usage information, such as token counts, is included in the last chunk of the stream. This means you can track your token consumption in real-time. It is important to handle the stream correctly to avoid memory leaks or incomplete responses. Always ensure that your client library supports SSE or implement a simple parser.

If you are building a chat application, streaming provides a better user experience by showing text as it is generated. However, it also means you need to handle partial responses carefully. If the connection drops, you may need to retry the request. This can lead to duplicate charges if not handled properly. You should implement idempotency keys or check the status of previous requests before retrying. This ensures that you are not charged multiple times for the same logical request.

Context Window and Token Usage

The context window for our API is 100,000 tokens, which includes both the prompt and the completion. This is a large window that allows for extensive conversations and complex instructions. However, it is important to understand how tokens are counted. Each token represents a portion of a word, and the model processes these tokens to generate responses. The cost is based on the number of tokens used, not the number of characters.

Pricing is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This means that output tokens are significantly more expensive than input tokens. To manage costs, you should optimize your prompts to be concise and clear. Avoid including unnecessary information in the prompt. Also, consider using system prompts to set the behavior of the model, which can reduce the need for repetitive instructions in each request.

Errors and refusals are free, which is a significant benefit. If the model refuses to generate a response due to content filters or other reasons, you are not charged for that request. This allows you to test different prompts without worrying about costs. However, if the request is valid and the model generates a response, you will be charged for the tokens used. It is important to monitor your token usage to avoid unexpected charges.

When This API Is Not the Right Choice

While our API is powerful for text generation, it is not suitable for all use cases. It is a text-only service, meaning it does not support image, audio, or video generation. If you need to generate images or videos, you will need to use a different service. Similarly, if you require embeddings for semantic search, our API does not provide this feature. You will need to integrate a separate embedding service to handle this task.

Additionally, our API does not support fine-tuning. If you need to train the model on your specific dataset, you will need to use a different provider. The model we offer is a fixed open-weight model, and you cannot customize its weights. This is a trade-off for the simplicity and uncensored nature of the service. If you need a highly customized model, this API may not meet your needs.

Finally, if you require on-premises deployment, our hosted service may not be the best option. We offer a cloud-based solution, which means your data is processed on our servers. If data privacy is a critical concern, you may need to consider a self-hosted solution. However, for most developers who need a reliable, uncensored text API, our service is an excellent choice. It offers a good balance of features, price, and ease of use.

Addressing Common Developer Questions

Developers often ask about the best uncensored models for roleplay and erotic content. Our model is designed to handle these topics without refusing lawful adult content. This makes it a popular choice for developers building chatbots for roleplay. The model does not have the same restrictions as some commercial models, allowing for more creative and unrestricted interactions. This is particularly useful for applications that require a high degree of flexibility in content generation.

Another common question is whether the model is 'spicy' or just unfiltered. Our model is uncensored, meaning it does not refuse content based on political correctness or other filters. However, it is not specifically designed for 'spicy' content. It is a general-purpose model that can handle a wide range of topics. If you are looking for a model that is specifically tuned for erotic content, you may need to experiment with different prompts to get the desired results.

Developers also ask about the best models for coding and technical tasks. While our model is primarily focused on text generation, it can handle coding tasks effectively. The uncensored nature of the model allows it to generate code without being restricted by safety filters. This can be useful for generating code snippets or debugging existing code. However, for complex coding tasks, you may still need to use a model specifically trained for code.

Integration and Troubleshooting Tips

When integrating with our API, it is important to handle errors gracefully. This includes handling network errors, timeout errors, and HTTP errors. You should implement a retry mechanism with exponential backoff to handle transient errors. This ensures that your application can recover from temporary issues without failing completely. It is also important to log errors for debugging purposes. This will help you identify patterns and resolve issues more quickly.

Another important tip is to use the correct endpoints. Our API supports the /v1/chat/completions and /v1/responses endpoints. Make sure you are using the correct endpoint for your use case. The /v1/models endpoint can be used to retrieve information about the available models. This can be useful for debugging and verifying that your API key is working correctly. Always check the documentation for the latest endpoint specifications.

Finally, it is important to monitor your API usage. This includes tracking the number of requests, tokens used, and errors encountered. You can use this information to optimize your application and reduce costs. For example, if you are seeing a high number of 429 errors, you may need to adjust your rate limiting. If you are seeing a high number of 402 errors, you may need to top up your credits more frequently. Regular monitoring helps ensure that your application runs smoothly and efficiently.

Frequently asked questions

What causes a 401 error?

A 401 error indicates an invalid API key. This usually happens if the key is incorrect, expired, or if you are using a key from a different account. Verify your key in the dashboard and ensure it is being sent correctly in the authorization header.

How do I top up my credits?

You can top up your credits using USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. Credits are added immediately after the transaction is confirmed.

Does the API support image generation?

No, our API is text-only. It does not support image, audio, or video generation. If you need image generation, you will need to use a different service or integrate a separate image generation API.

What is the rate limit?

The rate limit is 300 requests per minute per API key. If you exceed this limit, you will receive a 429 error. You should implement exponential backoff in your application to handle these limits gracefully.