EN ▾

Uncensored LLM API. Pay per token. No filters.

Get API key

Troubleshooting Uncensored API Filters and Limits

Developers often wonder why outputs still trigger filters or how to manage rate limits on uncensored platforms. This guide explains common troubleshooting steps and how to choose an approach that minimizes friction when using UnrestrictedGPT's text-in, text-out model.

Server rack with glowing blue neon lines representing an API endpoint

Understanding Filter Triggers

Even with an uncensored model, filters can still appear in your output. This often happens because the model itself applies certain constraints rather than an external gate. The model refuses requests involving sexual content with minors, which is a hard limit in our service. Other controversial or adult topics remain open, but the model may still decline if the prompt is too ambiguous or if the output format does not match expectations.

When you encounter a refusal, check the error code first. A 401 error means your key is invalid, while a 402 error indicates you have no credit left. A 429 error signals that you have hit the rate limit. These errors are distinct from content refusals. Content refusals do not consume credit, so they are free to retry. This is a key advantage for testing different prompts without burning your prepaid balance.

To troubleshoot filter triggers, start by simplifying your prompt. Remove any ambiguous terms that might confuse the model. Ensure your system instructions are clear about the desired tone and content. If the model still refuses, try adjusting the temperature or top_p parameters. These settings can influence how creative or deterministic the model's responses are, which might help it bypass certain triggers.

Remember that the model is uncensored for lawful adult, fictional, and security-research topics. It does not refuse based on political correctness or standard safety guidelines. However, it is not a magic bullet for every type of content. If you need specific control over the output format, use JSON mode or function calling. These features help structure the response, reducing the chance of the model generating unexpected or filtered content.

Managing Rate Limits

Our API allows 300 requests per minute per key. This limit is designed to prevent abuse and ensure stable performance for all users. If you exceed this limit, you will receive a 429 error. This error does not consume credit, so you can retry after a short delay without losing money. However, frequent retries can slow down your application, so it is important to manage your request rate effectively.

To avoid hitting the rate limit, consider implementing exponential backoff in your code. This means increasing the delay between retries after each failed attempt. For example, start with a one-second delay, then two seconds, then four seconds, and so on. This approach helps prevent overwhelming the server during peak usage times. It also gives the system time to process your requests and return a response.

Another strategy is to batch your requests if possible. Instead of sending individual requests for each item, combine them into a single request if the API supports it. This reduces the total number of requests you make, helping you stay within the rate limit. If batching is not possible, consider spreading your requests over a longer period. For example, if you need to process 1,000 items, send them in chunks of 100 with a small delay between each chunk.

Keep an eye on your usage statistics. Our API provides usage data in the last chunk of streaming responses. This allows you to monitor your token usage and adjust your strategy accordingly. If you notice you are approaching the rate limit, slow down your requests. If you are well below it, you can increase your request rate to improve performance. This balance is key to maintaining a smooth user experience.

Optimizing Token Usage

Understanding token usage is important for managing costs and avoiding errors. Our API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. These prices are straightforward and transparent. You pay for what you use, and there are no hidden fees or subscription costs. Prepaid credit is charged based on real token usage, and errors and refusals are free. This means you only pay for successful completions.

To optimize token usage, start by keeping your prompts concise. Avoid unnecessary words or redundant information. Use clear and direct language to convey your message. This reduces the number of input tokens, which lowers your costs. Additionally, use the context window effectively. Our API supports a 100,000 token context window, which allows you to include large amounts of information in your prompts. However, using the full context window can be expensive, so use it judiciously.

Another way to optimize token usage is to use streaming responses. Streaming allows you to receive responses in chunks, which can be more efficient than waiting for the entire response. This is particularly useful for long outputs or when you need to display results in real-time. Streaming also helps you monitor usage in real-time, allowing you to adjust your strategy if needed.

Finally, consider using JSON mode or function calling to structure your responses. These features help ensure that the model generates the exact format you need, reducing the need for post-processing. This can save tokens by avoiding the need to send additional requests to fix formatting issues. By optimizing your token usage, you can maximize the value of your prepaid credit and minimize costs.

Handling Errors and Refusals

Errors and refusals are a normal part of working with AI APIs. Our API returns specific error codes to help you diagnose issues. A 401 error indicates an invalid key, which means you need to check your API key. A 402 error means you have no credit left, so you need to top up. A 429 error signals a rate limit, which you can handle by slowing down your requests. These errors are distinct from content refusals, which do not consume credit.

Content refusals occur when the model declines a request due to specific constraints, such as sexual content involving minors. These refusals are free, so you can retry without losing credit. This is a key advantage for testing different prompts. If you encounter a refusal, check the prompt for any ambiguous or sensitive terms. Adjust the prompt or parameters to see if the model will accept the request.

When handling errors, it is important to log them for debugging. Record the error code, the prompt, and the response. This information can help you identify patterns and improve your integration. For example, if you notice that certain prompts consistently trigger refusals, you can adjust your prompt strategy to avoid them. Logging errors also helps you monitor the health of your integration and identify any issues with your API key or credit.

Remember that errors and refusals are free. This means you can experiment with different prompts and parameters without worrying about costs. Use this opportunity to find the best approach for your use case. Test different temperatures, top_p values, and stop sequences to see how they affect the output. By understanding how errors and refusals work, you can build a more reliable and efficient integration.

When Our API Is Not the Right Choice

While our API is powerful for text generation, it is not suitable for every use case. If you need image, audio, video, or embedding generation, our API does not support these features. We focus solely on text-in, text-out capabilities. If your project requires multimedia content, you will need to use a different service or combine our API with other tools.

Similarly, if you need fine-tuning or model routing, our API does not offer these features. We provide a single uncensored open-weight text model. If you need to switch between different models or fine-tune a model for specific tasks, you will need a more flexible service. Our API is designed for simplicity and reliability, not for complex model management.

Additionally, if you need OCR or search capabilities, our API does not support these functions. We provide a straightforward text API that integrates easily with existing systems. If you need to extract text from images or search through large datasets, you will need to use additional tools or services. Our API is best suited for applications that require high-quality text generation without the complexity of multimedia or search features.

Finally, if you need on-prem deployment or specific SLA guarantees, our API may not be the right choice. We are a hosted service with no on-prem options. If you require strict uptime guarantees or need to deploy the model on your own infrastructure, you will need a different solution. Our API is ideal for developers who want a reliable, uncensored text API without the overhead of managing their own infrastructure.

Addressing Common Developer Questions

Developers often ask why some outputs still trigger filters or how to handle rate limits on uncensored platforms. These questions are common in communities like r/startup and r/LocalLLM, where users discuss the best no restriction AI platforms. The consensus is that while uncensored models offer more freedom, they still have constraints that need to be managed.

One common question is how to minimize friction when using an uncensored API. The answer lies in understanding the model's limitations and optimizing your prompts. By using clear instructions and adjusting parameters like temperature and top_p, you can reduce the likelihood of filters triggering. Additionally, managing your rate limits effectively ensures that your application remains responsive and reliable.

Another question is whether it is worth paying for a reliable, uncensored LLM API. Many developers find that the cost is justified by the quality and flexibility of the output. Our API offers a simple pricing model with no hidden fees, making it easy to budget for your projects. The ability to retry refusals for free also adds value, as you can experiment without worrying about costs.

Finally, developers often ask how to integrate an uncensored API into their existing workflows. The key is to use the API's features, such as streaming and JSON mode, to simplify the process. By structuring your requests and responses effectively, you can reduce the need for post-processing and improve the overall efficiency of your application. This approach helps you get the most out of the API while minimizing friction.

Best Practices for Integration

Integrating an uncensored API requires careful planning and execution. Start by understanding the API's features and limitations. Our API supports streaming, function calling, and JSON mode, which can help you build more reliable applications. Use these features to structure your requests and responses, reducing the need for post-processing and improving efficiency.

Next, implement error handling and rate limit management. Use exponential backoff to handle rate limits effectively, and log errors for debugging. This helps you identify issues early and improve your integration over time. Additionally, monitor your token usage to control costs and avoid errors. By keeping your prompts concise and using the context window effectively, you can optimize your token usage and maximize the value of your prepaid credit.

Another best practice is to test your integration thoroughly. Use different prompts and parameters to see how the model responds. Test edge cases and unusual inputs to ensure your application can handle them gracefully. This helps you identify any potential issues before they become problems in production. Additionally, consider using a staging environment to test your integration before deploying it to users.

Finally, stay informed about updates and changes to the API. Our API is designed to be simple and reliable, but it may evolve over time. Keep an eye on our documentation and announcements to stay up to date with any new features or changes. By staying informed, you can ensure that your integration remains compatible and efficient. This proactive approach helps you get the most out of the API while minimizing friction.

Frequently asked questions

Why do I get a 429 error?

A 429 error means you have hit the rate limit of 300 requests per minute. This error does not consume credit, so you can retry after a short delay. Implement exponential backoff to manage this effectively.

Are refusals free?

Yes, content refusals are free. You only pay for successful completions. This allows you to test different prompts without burning your prepaid balance.

What is the context window size?

Our API supports a 100,000 token context window, which includes both the prompt and the completion. Use this wisely to manage costs and performance.

Can I use this API for image generation?

No, our API is text-in, text-out only. It does not support image, audio, video, or embedding generation. Use a different service for multimedia needs.