Integrating the Uncensored Gemini API
Developers often search for ways to connect third-party clients to an uncensored backend for roleplay or creative writing. This guide provides a tested checklist for SDK settings and endpoint configuration, ensuring smooth text-in, text-out functionality without unnecessary complexity. You will learn how to configure your client to use our specific endpoints and handle the unique payment and token limits of this service.

Understanding the API Structure
This site is an independent service and is not affiliated with Google.
The foundation of integrating with our API lies in understanding its structure and base URL. Our service provides a hosted, OpenAI-compatible chat-completions API that serves one uncensored open-weight text model. The base URL for all requests is https://api.geminiuncensored.cc/v1. This means you can use standard OpenAI SDKs with minimal modification, simply by pointing them to our specific endpoint. The API accepts text input and returns text output, making it ideal for text-based applications like chatbots, roleplay engines, and content generators.
It is important to note that this service does not offer embeddings, image generation, audio processing, or video generation. There is no OCR capability, no fine-tuning options, and no model routing. If your application requires multi-modal capabilities, you will need to integrate additional services alongside this text-only API. The focus here is purely on high-quality, uncensored text generation using the model identified by the ID 'uncensored'.
The API supports several endpoints, including POST /v1/chat/completions for standard chat interactions, POST /v1/responses for response-based interactions, and GET /v1/models to retrieve available model information. By sticking to these endpoints, you ensure compatibility with the service's architecture. The 'uncensored' model does not refuse lawful adult, fictional, security-research, or controversial topics, providing a free-flowing text generation experience.
When configuring your client, ensure that you are using the correct base URL and model ID. Any deviation from these specifications may result in errors or unexpected behavior. The API is designed to be straightforward, allowing developers to focus on building their application logic rather than wrestling with complex API structures. This simplicity is a key feature for developers looking for a reliable text generation backend.
Authentication and Key Management
Authentication for our API is handled via API keys, which are generated upon signup. You can sign up using Google or by creating an account with an email and password. The API key is shown immediately after signup, so make sure to copy it securely. This key is required for all requests to the API and must be included in the Authorization header of your HTTP requests.
If you encounter a 401 error, it indicates an invalid key. This could be due to a typo, an expired key, or using a key from a different account. Ensure that you are using the correct key for the account you intend to use. If you receive a 402 error, it means you have no credit left in your account. You will need to top up your account before you can make further requests.
The service uses a prepaid credit system, meaning you pay for what you use. Errors and refusals are free, so you only pay for successful token usage. This model allows for predictable costs, as you are charged based on real token usage rather than a subscription fee. Paid credit never expires, so you can use it whenever you need it.
To top up your account, you must use cryptocurrency. The accepted currencies are USDT on the TRC20 network or USDC on the Base network. You can top up with any whole amount from $20 to $500. There are no options for credit cards, PayPal, or bank transfers. This crypto-only payment method ensures fast and borderless transactions for developers worldwide.
Configuring SDK and Parameters
When integrating the API, you will need to configure your SDK to handle the specific parameters supported by our service. The API supports streaming over Server-Sent Events (SSE), which allows for real-time text output. This is particularly useful for chat applications where you want to display text as it is generated. The usage information is included in the last chunk of the stream, so you can track token usage accurately.
In addition to streaming, the API supports function calling (tools), JSON mode, and various generation parameters. You can set the temperature, top_p, stop sequences, seed, and penalties to control the output. These parameters allow you to fine-tune the model's behavior to suit your specific use case. For example, a lower temperature will produce more deterministic outputs, while a higher temperature will introduce more creativity.
It is important to note that the API has a context window of 100,000 tokens, which includes both the prompt and the completion. This large context window allows for extensive conversations and document processing. However, you should be mindful of the token limits to avoid exceeding the context window, which could result in truncated outputs.
When using the SDK, ensure that you are handling the response format correctly. The API returns JSON responses, so you will need to parse the response to extract the generated text. If you are using JSON mode, the response will be formatted as valid JSON, which can be easily parsed by most programming languages. This flexibility makes the API suitable for a wide range of applications.
Pricing and Cost Management
Understanding the pricing structure is important for managing your budget when using the API. The service charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This pricing model is transparent and allows you to estimate costs based on token usage. You can calculate the cost of a request by dividing the number of tokens by 1,000,000 and multiplying by the respective per-million price.
For example, if a request uses 500,000 input tokens and 200,000 output tokens, the cost would be calculated as (500,000 / 1,000,000) * $0.15 for input and (200,000 / 1,000,000) * $0.50 for output. This formula helps you predict costs accurately. Errors and refusals are free, so you only pay for successful token usage, which can help reduce costs for experimental projects.
Since the service is crypto-only, you need to ensure that you have enough credit in your account before making requests. The minimum top-up amount is $20, and the maximum is $500. If you top up with $50 or more, you may receive a bonus credit ranging from +5% to +15%. This bonus can help you get more value from your top-up, especially for larger projects.
It is important to monitor your token usage to avoid unexpected charges. You can use the streaming feature to track token usage in real-time, allowing you to adjust your application's behavior if costs start to rise. By understanding the pricing structure, you can manage your budget effectively and avoid running out of credit unexpectedly.
Handling Errors and Limits
When integrating the API, you will encounter various errors and limits that you need to handle gracefully. The API returns specific HTTP status codes to indicate the nature of the error. A 401 error indicates an invalid key, a 402 error indicates no credit, and a 429 error indicates a rate limit. Understanding these codes allows you to implement appropriate error handling in your application.
The rate limit for the API is 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. To handle this, you can implement exponential backoff in your application, which gradually increases the delay between requests until the limit is reset. This prevents your application from overwhelming the API and ensures a smooth user experience.
It is also important to handle cases where the model refuses a request. The API has a hard content limit, refusing requests involving sexual content with minors. However, it does not refuse other lawful adult, fictional, or controversial topics. If a request is refused, you will receive a response indicating the reason, allowing you to adjust your prompt or content accordingly.
By implementing reliable error handling and rate limit management, you can ensure that your application remains stable and reliable. This is particularly important for applications that rely on continuous API calls, such as chatbots or real-time translation services. Proper error handling also helps in debugging and identifying issues quickly, reducing downtime and improving user satisfaction.
When This API Is Not the Right Choice
While our API is powerful for text generation, it may not be the right choice for every project. If your application requires image, audio, or video generation, you will need to integrate additional services alongside this text-only API. The service does not offer multi-modal capabilities, so if you need to generate images or process audio, this API alone will not suffice.
Similarly, if you require fine-tuning of the model to customize its behavior for a specific domain, this API may not meet your needs. The service offers a single uncensored model with standard parameters, but it does not support fine-tuning. If you need a model that has been trained on specific data, you may need to look for other services that offer this capability.
Another consideration is the payment method. Since the service is crypto-only, it may not be suitable for users who prefer traditional payment methods like credit cards or PayPal. If your team or users are not comfortable with cryptocurrency, this could be a barrier to adoption. Additionally, the minimum top-up amount of $20 may be too high for small-scale experiments or low-volume usage.
Finally, if you need a service with a strong SLA or certifications like SOC2 or HIPAA, this API may not be the best fit. The service does not claim any SLA percentages or certifications, and it is an independent service without named customers or benchmark scores. If these factors are critical for your project, you may want to evaluate other options that offer these guarantees.
Addressing Community Questions on Uncensored Models
Developers often discuss the concept of 'uncensored' models in communities like r/VeniceAI, questioning whether frontline models like Claude or Gemini are truly uncensored. The consensus is that while API models have fewer guardrails than their web interfaces, they still have some elements baked in. For instance, Claude Opus is known for its rational judgments on content moderation, but it may not be fully uncensored in the way some users expect.
Users also inquire about whether services like Venice edit messages or if models are jailbroken. The general understanding is that there is less censorship via API, but it is not absolute. Some users report that models like Opus 4.6 are not censored, walking the wild side, but this can vary. It is important to test the model with your specific prompts to determine its behavior.
When integrating with an uncensored API, it is important to manage expectations. The model does not refuse lawful adult or controversial topics, but it may still have some inherent biases or limitations. Developers should be prepared to handle cases where the model produces unexpected or undesirable outputs. Testing and iteration are key to finding the right balance between freedom and control.
By understanding the nuances of uncensored models, you can better integrate them into your applications. This involves not just technical configuration but also a deep understanding of the model's capabilities and limitations. Engaging with community discussions can provide valuable insights into how other developers are using these models and what challenges they have faced.
Frequently asked questions
How do I top up my account?
You can top up your account using cryptocurrency. The service accepts USDT on the TRC20 network or USDC on the Base network. You can top up with any whole amount from $20 to $500. Credit cards and PayPal are not accepted.
What is the context window size?
The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for extensive conversations and document processing. Make sure to monitor your token usage to avoid exceeding this limit.
Does the API support streaming?
Yes, the API supports streaming over Server-Sent Events (SSE). This allows for real-time text output, which is ideal for chat applications. Usage information is included in the last chunk of the stream.
What happens if I run out of credit?
If you run out of credit, you will receive a 402 error. You will need to top up your account before you can make further requests. Errors and refusals are free, so you only pay for successful token usage.