Troubleshooting NSFW Bans in LLM APIs
Developers often face NSFW bans when integrating large language models into their applications. This guide explains why these blocks happen and how to troubleshoot them effectively.

Understanding NSFW Bans
This site is an independent service and is not affiliated with Google.
When you send a request to an API, the system checks the content against specific safety guidelines. These guidelines are designed to prevent the model from generating inappropriate or sensitive material. If your prompt or the model's response violates these rules, the API will return an error or refuse the request. This process is known as a content filter or safety block.
For developers, this can be frustrating, especially when your application is designed for adult audiences or creative writing. The model might refuse to generate a story because it contains mild romantic content, even if that content is appropriate for your target audience. Understanding this mechanism is the first step in troubleshooting.
Our API serves an uncensored open-weight text model, which means it does not refuse lawful adult, fictional, security-research, or controversial topics. However, there is one hard content limit: no sexual content involving minors. Requests involving minors are refused to ensure compliance with general safety standards.
To troubleshoot, you need to identify whether the ban is coming from the model's internal safety layer or from your application's logic. If you are using a standard model, you might need to adjust your prompt to be more explicit about the context. For example, specifying that the content is for a mature audience can sometimes help the model understand the intended tone.
Common Triggers for Bans
There are several common triggers that can cause your requests to be blocked. One of the most frequent is the use of specific keywords or phrases that the model associates with sensitive content. For instance, words related to violence, sexuality, or political controversy might trigger a filter.
Another trigger is the structure of your prompt. If your prompt is ambiguous or contains multiple layers of context, the model might misinterpret the intent and refuse to generate a response. This is particularly common in complex creative writing tasks where the context is subtle.
Additionally, the frequency of your requests can play a role. If you send too many requests in a short period, the API might rate-limit your key, causing temporary bans. Our API allows 300 requests per minute per key, which is a generous limit for most developers. However, if you exceed this limit, you will receive a 429 error.
Finally, the content of the model's response itself can trigger a ban. If the model generates content that violates the safety guidelines, the API might refuse to return that response to you. This is known as a refusal. In our API, refusals are free, so you do not lose credit for a rejected response.
How to Avoid Bans
To avoid bans, you can start by refining your prompts. Make sure your prompts are clear and specific. If you are writing a story, provide enough context to help the model understand the intended tone and audience. For example, instead of just asking for a scene, specify that it is a romantic scene between two adults.
You can also use parameters like temperature and top_p to control the model's behavior. A higher temperature can make the model more creative and less likely to stick to safe, predictable responses. However, this can also increase the risk of generating unexpected content. Experiment with these parameters to find the right balance for your application.
Another strategy is to use function calling or JSON mode to structure your requests. This can help the model understand the format of the expected response and reduce the likelihood of generating unwanted content. For example, you can ask the model to return a JSON object with specific fields, which can help you filter the content before displaying it to users.
Finally, consider using our uncensored model if you need more flexibility. Our model does not refuse lawful adult content, which can be useful for creative writing, role-playing, or security research. Just remember that the hard content limit for minors still applies.
When Our API Is Not the Right Choice
While our API is designed for uncensored content, it might not be the right choice for every developer. If you need a model that adheres to strict corporate safety guidelines, our API might not fit your needs. For example, if you are building an application for a school or a corporate environment, you might need a model that filters out all adult content.
Additionally, if you need features like image generation, audio processing, or fine-tuning, our API might not be sufficient. We currently offer text-only capabilities, so if your application requires multimodal outputs, you might need to look for a different solution.
Another consideration is the pricing model. Our API charges based on token usage, with no monthly subscription. This is great for developers who want to pay only for what they use. However, if you expect a high volume of requests with low token usage, a subscription-based model might be more cost-effective.
Finally, if you need a model with a specific brand identity or a large ecosystem of tools, our API might not be the best fit. We are an independent service, and while we offer a reliable set of features, we do not have the same level of integration with other tools as some of the larger providers.
What People Ask About Bans
Developers often ask why their prompts get blocked and how to avoid risks with uncensored models. On Reddit, users discuss how to handle bans in their applications. For example, some users mention that they use Google Maps to see their late relatives, and they wonder how to avoid similar bans in their AI apps.
Another common question is about the difference between safety filters and content limits. Users want to know if a ban is due to the model's internal safety layer or the API's external filters. In our API, the model is uncensored, so bans are usually due to the hard content limit for minors or rate limiting.
Users also ask about the best way to structure their prompts to avoid bans. Some suggest using specific keywords or phrases to signal the intended tone. Others recommend using function calling to structure the response. These strategies can help reduce the likelihood of bans.
Finally, users discuss the impact of bans on their applications. Some mention that bans can disrupt the user experience, especially if the application relies on real-time responses. By understanding the causes of bans and how to avoid them, developers can create more reliable applications.
Integrating with Our API
Integrating with our API is straightforward. You can start by signing up with your Google account or email and password. Once you have an account, you will receive an API key immediately. This key is used to authenticate your requests to the API.
You can send requests to the /v1/chat/completions endpoint, which is compatible with the OpenAI format. This makes it easy to integrate with existing tools and libraries. You can also use the /v1/responses endpoint for streaming responses, which is useful for real-time applications.
To get started, you need to include your API key in the authorization header of your requests. The key is shown immediately after signup, so you can start testing right away. You can also check the /v1/models endpoint to see the available models.
Our API supports various parameters, including temperature, top_p, stop, and seed. You can use these parameters to control the model's behavior and generate the desired output. For example, you can set the temperature to a higher value to encourage more creative responses.
Pricing and Credits
Our API charges based on token usage, with no monthly subscription. The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. This means you only pay for what you use, which can be cost-effective for many developers.
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 of 5% to 15%. This bonus can help you get more value from your credits.
When you sign up, you get $0.50 of trial credit, which allows you to test the API without any upfront cost. This trial credit is a great way to evaluate the API before committing to a larger top-up.
If you run out of credit, you will receive a 402 error. You can top up your credit at any time to continue using the API. Errors and refusals are free, so you do not lose credit for rejected requests. This can help you save money while testing your application.
Frequently asked questions
Why is my request being blocked?
Your request might be blocked due to the hard content limit for sexual content involving minors. Our model refuses such requests to ensure compliance with safety standards. Other bans may be due to rate limiting if you exceed 300 requests per minute.
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. You can also receive a bonus credit of 5% to 15% if you top up $50 or more.
Is the API compatible with OpenAI?
Yes, our API is OpenAI-compatible. You can use the /v1/chat/completions endpoint with the same format as OpenAI. This makes it easy to integrate with existing tools and libraries that support the OpenAI format.
What happens if I run out of credit?
If you run out of credit, you will receive a 402 error. You can top up your credit at any time to continue using the API. Errors and refusals are free, so you do not lose credit for rejected requests.