Managing Safety and Filters in Gemini API
Developers often struggle with unexpected refusals when integrating large language models. This guide explains how to manage safety settings and ensure your requests pass through filters effectively.

Understanding Guardrails and Refusals
This site is an independent service and is not affiliated with Google.
When you send a request to a language model, safety systems often intervene. These guardrails are designed to prevent the model from generating content that might be considered harmful or inappropriate. However, for developers seeking uncensored behavior, these systems can sometimes block valid requests. Our API serves an uncensored open-weight model, meaning it does not refuse lawful adult, fictional, security-research, or controversial topics. This ensures that your text in, text out workflow remains uninterrupted by external moral lectures or strict filters.
- Guardrails act as a layer between your prompt and the model's response.
- They can trigger refusals even for simple, lawful queries.
- Our API minimizes these interruptions by using a model that is less prone to over-censorship.
- This allows for more consistent output in roleplay or creative writing scenarios.
It is important to note that while our model is uncensored, it does have a hard content limit. Requests involving sexual content with minors are refused. This is the only major restriction you will encounter. All other topics, no matter how controversial, are processed without refusal. This distinction is important for developers building applications that require high freedom of expression.
When integrating our API, you should expect fewer refusals compared to other vendors. The model id "uncensored" is specifically tuned to handle a wide range of inputs. This makes it ideal for applications where consistent output is more important than strict safety compliance. You can rely on this stability for your daily operations without worrying about sudden blocks.
Adjusting Safety Settings for Freedom
To achieve the best results with our API, you need to understand how to adjust safety settings. While our model is inherently uncensored, you can still influence its behavior through parameters. The API supports parameters like temperature, top_p, and stop sequences. These allow you to fine-tune the output to your specific needs. For example, a higher temperature can make the model more creative and less predictable, which might help in bypassing rigid patterns.
- Use the temperature parameter to control creativity.
- Set top_p to influence the diversity of responses.
- Define stop sequences to control the length of output.
- Utilize penalties to adjust token frequency.
These parameters give you control over the model's output without needing to change the underlying safety settings. Since our API does not offer complex safety tiers, you rely on these technical adjustments to shape the response. This is a powerful feature for developers who want precise control over the generated text. You can experiment with different values to find the sweet spot for your application.
It is also worth noting that our API supports streaming over SSE. This allows you to receive usage information in the last chunk, which can help you monitor token usage in real-time. This feature is particularly useful for managing costs and ensuring that your requests are processed efficiently. By combining these parameters with streaming, you can create a reliable and responsive application.
Troubleshooting Unexpected Refusals
Even with an uncensored model, you might encounter occasional refusals. These can be frustrating, especially if you are not sure why they are happening. The most common reason for a refusal is the hard content limit regarding sexual content with minors. If your request triggers this limit, the model will refuse to generate a response. This is the only case where a refusal is guaranteed.
- Check for content involving minors in your prompts.
- Review your API key for validity and credit status.
- Ensure you are within the rate limit of 300 requests per minute.
- Verify that your input does not exceed the context window.
If you receive a 401 error, it means your key is invalid. A 402 error indicates that you have no credit left. A 429 error means you have hit the rate limit. These errors are straightforward to resolve by checking your account status or waiting for the rate limit to reset. However, if you receive a refusal without an error code, it is likely due to the content limit.
To troubleshoot, start by simplifying your prompt. Remove any elements that might trigger the safety filter. If the refusal persists, check the vendor documentation for any updates on safety policies. Since we do not claim specific SLA percentages or certifications, you should rely on the model's inherent behavior. This approach ensures that you are not misled by external claims about safety features.
When Our API Is Not the Right Choice
While our API is excellent for uncensored text generation, it is not suitable for every use case. If you need image, audio, or video generation, our API will not meet your needs. We serve only text in, text out. There is no support for embeddings, OCR, fine-tuning, or model routing. If your application requires these features, you should look for a different solution.
- We do not support image or audio generation.
- There is no OCR capability in our API.
- Fine-tuning is not available for this service.
- Model routing is not supported.
Additionally, if you need a subscription model with monthly fees, our prepaid credit system might not be ideal. We charge $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no monthly fee, and paid credit never expires. This is great for variable usage, but less so for predictable, high-volume needs.
Furthermore, if you require a service with named customers or benchmark scores, our API might not fit your criteria. We do not claim these metrics. Instead, we focus on providing a reliable, uncensored text API. If you need these specific features, check the vendor documentation for current prices and limits. Our API is best suited for developers who prioritize freedom of output over additional features.
What the Community Asks About Filters
Developers often discuss how to ensure true uncensored behavior in forums like r/VeniceAI. Many users question whether frontline models like Claude and Gemini are truly jailbroken. The consensus is that while API models have fewer guardrails, they still have some elements baked in. This means that complete freedom is not always guaranteed, even with uncensored models.
- Users question the true uncensored nature of frontline models.
- API models often have fewer guardrails than web interfaces.
- Some models, like Claude Opus, are noted for rational judgments.
- Complete freedom is rare due to baked-in safety elements.
When people ask about uncensored Gemini, they are often looking for a model that does not lecture or filter content. Our API addresses this by serving an open-weight model that is less prone to censorship. However, it is important to manage expectations. No model is 100% uncensored, but ours comes very close.
Threads on r/VeniceAI also highlight that nothing special is being done to messages in some cases. This means that the model processes input as is, without additional manipulation. This transparency is valuable for developers who want to understand how their requests are handled. By choosing our API, you get a straightforward, uncensored experience without hidden layers of filtering.
Integrating with Function Calling
Our API supports function calling, which allows you to integrate the model with external tools. This is useful for applications that require the model to perform specific actions based on the input. You can define tools and let the model decide when to use them. This feature adds flexibility to your application, allowing for more complex workflows.
- Define tools for the model to use.
- Let the model decide when to call functions.
- Integrate with external APIs for enhanced functionality.
- Use JSON mode for structured output.
Function calling is particularly useful for developers who want to build assistants or agents. By allowing the model to call functions, you can create more dynamic and responsive applications. This feature works smoothly with our uncensored model, ensuring that the model can make decisions without being hindered by safety filters.
When using function calling, it is important to define your tools clearly. This helps the model understand what actions are available. You can also use JSON mode to ensure that the output is structured and easy to parse. This combination of features makes our API a powerful tool for building advanced AI applications.
Pricing and Payment Methods
Our API uses a prepaid credit system, which means you pay for what you use. There is no monthly fee, and paid credit never expires. This is ideal for developers with variable usage patterns. 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. You can also receive bonus credit for top-ups of $50 or more.
- Prepaid credit system with no monthly fees.
- Crypto only: USDT on TRC20 or USDC on Base.
- Top-up amounts range from $20 to $500.
- Bonus credit available for top-ups of $50+.
The pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free, which means you only pay for successful completions. This is a cost-effective solution for developers who want to minimize expenses. You can start with a trial credit of $0.50, no card needed, to test the API.
It is important to note that we do not accept cards, PayPal, or bank transfers. All payments must be made using crypto. This ensures a fast and secure transaction process. By using our prepaid system, you have full control over your budget and usage. You can monitor your token usage in real-time and adjust your spending as needed.
Frequently asked questions
Does the API support image generation?
No, the API serves only text in, text out. There is no support for image, audio, or video generation. You can use it for text-based tasks like roleplay or creative writing.
What happens if I hit the rate limit?
If you exceed 300 requests per minute per key, you will receive a 429 error. You should wait for the limit to reset before sending more requests. This ensures fair usage for all users.
Can I use the API for function calling?
Yes, the API supports function calling. You can define tools and let the model decide when to use them. This is useful for building assistants or agents that interact with external APIs.
Is there a monthly subscription fee?
No, there is no monthly fee. You pay for what you use with prepaid credit. The credit never expires, and you can top up using crypto. This makes it cost-effective for variable usage.