EN ▾
llamaapi.cc

Uncensored OpenAI-compatible API for developers

Get API key

Troubleshooting Uncensored LLM API Responses and Safety

Developers often struggle with maintaining consistent uncensored output when integrating open-weight models into their applications. This guide covers common risks, troubleshooting steps for blocked responses, and methods to verify your provider's behavior without relying on external claims.

Developer workspace with holographic screen showing code and chat interface

Understanding Uncensored Behavior in APIs

When developers search for an uncensored LLM API, they are typically looking for a model that does not refuse lawful adult, fictional, security-research, or controversial topics. Our service provides a hosted, OpenAI-compatible chat-completions API serving one specific uncensored open-weight text model. The model ID you must send is uncensored. This ensures that the text input is processed by a model designed to accept a wide range of inputs without the typical safety refusals found in other commercial models.

It is important to note that uncensored does not mean unlimited. The model still has a context window of 100,000 tokens, which includes both the prompt and the completion. If your conversation exceeds this limit, the API will return an error or truncate the context, depending on how you manage the history. This is a technical limit, not a safety filter, and it applies to all requests regardless of content.

Another key aspect is the hard content limit. While the model is uncensored, it refuses requests involving sexual content with minors. This is a standard safety measure to ensure the service remains usable for a broad range of applications. If you send a request that violates this rule, the API will return a refusal, similar to how other models handle sensitive topics.

Finally, remember that our API is text-in, text-out. It does not support embeddings, image generation, audio, video, OCR, fine-tuning, or model routing. If you need these features, you will need to integrate additional tools or services. Keeping this scope clear helps you troubleshoot issues more effectively, as you know exactly what capabilities to expect from the API.

Common Risks in Integration

One of the primary risks when integrating an uncensored LLM API is the potential for unexpected refusals or errors. 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 authentication credentials. A 402 error signals that you have no credit left, and a 429 error means you have hit the rate limit of 300 requests per minute per key.

Rate limiting is a critical factor to consider. If you are building an application that sends many requests in quick succession, you may hit the 300 requests per minute limit. This can cause your application to pause or fail if you do not implement proper retry logic or backoff strategies. It is essential to monitor your request volume to avoid these interruptions.

Another risk is the handling of large contexts. With a 100,000-token context window, you can maintain long conversations, but you must manage the token usage carefully. If your prompts and completions exceed this limit, the API will not automatically truncate; it may return an error or behave unpredictably. You need to implement logic to manage the conversation history and ensure it stays within the limit.

Additionally, the pricing model is based on real token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Errors and refusals are free, which can help reduce costs if you are experimenting with different prompts. However, you need to track your token usage to avoid unexpected charges, especially if you are sending large payloads.

Troubleshooting Blocked Responses

When you encounter a blocked response, the first step is to check the error code. If you receive a 402 error, it means you have no credit left. You can top up your account using crypto, specifically USDT on TRC20 or USDC on Base. The top-up amount must be a whole number between $20 and $500. If you top up from $50, you may receive a bonus credit ranging from +5% to +15%.

If you receive a 429 error, it indicates that you have hit the rate limit. You can resolve this by waiting for the rate limit to reset or by reducing the frequency of your requests. It is also helpful to implement exponential backoff in your application to handle rate limits gracefully.

For content-based refusals, check if the request involves sexual content with minors. If it does, the API will refuse the request. Otherwise, the model should accept the input. If you are unsure why a request was refused, you can test it with a simpler prompt to isolate the issue.

Finally, ensure that you are using the correct model ID, which is uncensored. If you use a different ID, the API may not return the expected uncensored behavior. Always verify your configuration to ensure you are sending requests to the correct endpoint.

Verifying Provider Behavior

To verify that your API provider is truly uncensored, you can test it with a variety of topics. Send requests involving adult themes, controversial opinions, and fictional scenarios. The model should accept these inputs without refusing, provided they do not involve sexual content with minors. This helps you confirm that the model is not applying hidden safety filters.

You can also test the model's response to edge cases. For example, send a request with a very long prompt to see how it handles the context window. Or, send a request with a specific seed to see if the output is deterministic. These tests help you understand the model's behavior and limitations.

Another way to verify behavior is to check the API's documentation and endpoints. Our API supports streaming over SSE, function calling, JSON mode, and various parameters like temperature, top_p, stop, seed, and penalties. These features allow you to fine-tune the model's output and ensure it meets your application's needs.

Finally, monitor the API's performance over time. Check if the response times are consistent and if the error rates are low. This helps you ensure that the API is reliable and stable for your application. You can also check the API's status page for any ongoing issues or maintenance.

When Our API Is Not the Right Choice

Our API is designed for text-based interactions, but it may not be the right choice if you need more than just text. If your application requires image generation, audio processing, video creation, or OCR, you will need to integrate additional tools. Our API does not support these features, so you will need to handle them separately.

Similarly, if you need fine-tuning or model routing, our API does not offer these capabilities. You will need to find a different provider that supports these features. Our API is focused on providing a simple, uncensored text model with a straightforward pricing model.

Another consideration is the payment method. We accept crypto only, specifically USDT on TRC20 or USDC on Base. If your application requires credit card payments or bank transfers, our API may not be suitable. You will need to find a provider that supports your preferred payment method.

Finally, if you need a provider with an SLA, certifications like SOC2 or HIPAA, or on-prem deployment options, our API may not meet your needs. We do not claim these features, so you should check with other providers if these are critical for your application.

Addressing Community Questions

Developers on Reddit often ask about the best uncensored LLM models for role-playing and erotic role-play. Many users are looking for models that can handle complex narratives and character interactions without being too restrictive. Our API provides a model that is designed to accept a wide range of inputs, making it suitable for these types of applications.

Another common question is about finding an uncensored LLM that is not advertised as "spicy" or "character-based." Users want a model that tells the truth without being politically correct. Our API offers a model that is uncensored but not necessarily focused on role-play, making it a good option for users who want a more general-purpose uncensored model.

Some users also ask about the best uncensored LLM for coding and technical tasks. While our API is primarily designed for text generation, it can be used for coding tasks as well. The model can generate code, explain concepts, and help with debugging, making it a versatile tool for developers.

Finally, users often discuss the best models for specific use cases, such as D&D or creative writing. Our API can be used for these purposes as well, providing a flexible and uncensored model that can handle a variety of inputs. You can test the model with your specific use case to see if it meets your needs.

Best Practices for Integration

When integrating our API, it is important to handle errors gracefully. Use the error codes to diagnose issues and implement retry logic for rate limits. This ensures that your application can handle unexpected errors without failing completely. You can also use the streaming feature to provide real-time updates to your users, improving the user experience.

Another best practice is to manage your token usage carefully. Monitor your token consumption to avoid unexpected charges and ensure that your conversations stay within the 100,000-token limit. You can also use the seed parameter to generate deterministic outputs, which can be useful for testing and debugging.

Finally, keep your API key secure and rotate it regularly to prevent unauthorized access. Use environment variables to store your key and avoid hardcoding it in your application. This helps ensure that your API key is not exposed in your code repository or logs.

By following these best practices, you can ensure that your integration with our API is smooth and reliable. You can also take advantage of the model's uncensored nature to build applications that can handle a wide range of inputs and outputs.

Frequently asked questions

How do I top up my credit?

You can top up your credit using USDT on TRC20 or USDC on Base. The minimum top-up is $20 and the maximum is $500. You may also receive a bonus credit if you top up from $50.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. If you exceed this limit, you may encounter errors or truncated responses.

Does the API support streaming?

Yes, the API supports streaming over SSE. You can also get usage information in the last chunk of the stream.

What are the error codes?

The API returns 401 for invalid keys, 402 for no credit, and 429 for rate limits. These codes help you diagnose issues with your requests.