EN ▾
Create key

Integrating Gemini Unblocked: SDK Setup and Input/Output Guide

Developers often seek a reliable fallback for text generation when standard providers impose strict content filters. This guide walks you through connecting to an uncensored, OpenAI-compatible endpoint that serves a single open-weight model. We cover the essential SDK configuration, payment methods, and how to verify your access.

Developer workspace with laptop showing API code integration and crypto coin on desk

Understanding the API Endpoint and Model

This site is an independent service and is not affiliated with Google.

The foundation of integrating this service lies in understanding its unique endpoint structure. Unlike providers that route traffic through multiple model variants, this service serves a single uncensored open-weight text model. You identify this model by sending the identifier uncensored in your requests. The base URL for all interactions is https://api.geminiunblocked.com/v1. This consistency allows you to use familiar client libraries without complex routing logic.

When you initialize your client, you must point it to this specific base URL. The API supports the standard chat completions endpoint at POST /v1/chat/completions. It also exposes a responses endpoint at POST /v1/responses and a models listing endpoint at GET /v1/models. These endpoints adhere to the OpenAI compatible format, meaning you can swap in your existing API key and base URL to start generating text immediately.

It is important to note that this service is strictly for text. It does not support embeddings, image generation, audio processing, video creation, or OCR. There is no fine-tuning capability and no model routing. If your project requires multimodal inputs or outputs, you will need to handle those steps separately before or after interacting with this text-only API.

The model processes text in and returns text out. This simplicity is a feature for developers who want predictable, uncensored outputs without the overhead of managing multiple model versions. The uncensored nature means the model does not refuse lawful adult, fictional, security-research, or controversial topics. However, it does enforce a hard content limit regarding sexual content involving minors, which will be refused.

SDK Configuration and Initialization

Setting up your development environment is straightforward because the API follows standard conventions. You can use the official OpenAI SDK for your preferred language, such as Python, JavaScript, or Go. The key change is updating the base URL to https://api.geminiunblocked.com/v1. You do not need to modify the SDK itself, only the configuration object that points to the server.

When you create an account via Google or email, you receive an API key immediately. This key is required for authentication. You pass this key in the Authorization header as a Bearer token. The API validates the key on every request. If the key is invalid, you will receive a 401 error. If the key is valid but lacks sufficient credit, you will receive a 402 error.

Rate limiting is enforced at 300 requests per minute per key. If you exceed this limit, the API returns a 429 error. This limit applies to all endpoints. For most indie builders and small-scale applications, this limit is generous. However, if you are running high-volume batch processing, you may need to implement exponential backoff in your code to handle these 429 responses gracefully.

The SDK also supports streaming responses via Server-Sent Events (SSE). This is useful for real-time applications where you want to display text as it is generated. The usage statistics, such as token counts, are included in the last chunk of the stream. This allows you to track costs accurately even when using streaming mode.

Payment Methods and Top-Up Process

Unlike many competitors that accept credit cards or PayPal, this service relies exclusively on cryptocurrency for top-ups. You can add credit using USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500 per transaction. You can top up any whole amount within this range.

One of the benefits of this payment model is the potential for bonus credit. If you top up $50 or more, you may receive a bonus ranging from 5% to 15%. This bonus is added to your balance automatically. The credit never expires, so you can top up when prices are favorable and use it whenever you need it. There are no monthly subscription fees or recurring charges.

The pricing is transparent and based on actual usage. You pay $0.15 per one million input tokens and $0.50 per one million output tokens. Errors and refusals are free, meaning you are not charged for tokens that are rejected due to the hard content limit or other validation errors. This model protects you from paying for unusable responses.

To track your usage, you can check your balance in the dashboard. The API returns token counts in the response headers or body, depending on the endpoint. You can calculate your costs by multiplying the token count by the respective per-million price. For example, if you use 10,000 input tokens, the cost is 10,000 divided by 1,000,000 times $0.15.

Trial Credit and Account Setup

New accounts start with $0.50 of trial credit. This allows you to test the API without committing to a crypto top-up immediately. No credit card or payment method is required to create an account. You can sign up using Google or by setting an email and password. Once registered, your API key is shown immediately, allowing you to start testing right away.

The trial credit is perfect for verifying that your SDK integration works correctly. You can send a few test requests to ensure the model responds as expected. If the trial credit runs out, you will need to top up using crypto to continue using the service. The trial credit is non-refundable and does not expire, so you can use it at your own pace.

When you sign up, the key is generated and displayed. It is important to save this key securely, as you may not be able to view it again. The key is tied to your account and determines your access level and rate limits. If you lose your key, you may need to regenerate it or contact support.

The trial credit is a great way to explore the uncensored capabilities of the model. You can test different prompts to see how the model handles controversial or adult topics. Since the model is uncensored, it will generate text for a wide range of inputs without the typical refusals you might encounter with other providers.

Handling Errors and Rate Limits

Understanding how the API handles errors is important for building a reliable application. The API returns standard HTTP status codes to indicate the outcome of your request. A 401 error means your API key is invalid or missing. A 402 error indicates that you have no credit left. A 429 error means you have exceeded the rate limit of 300 requests per minute.

When you encounter a 429 error, you should implement a retry mechanism with exponential backoff. This prevents your application from overwhelming the server and wasting your own resources. You can also check your rate limit usage in the response headers to plan your requests more efficiently.

Errors and refusals are free, which is a significant advantage. If a request is rejected due to the hard content limit or other validation rules, you are not charged for the tokens. This means you can experiment with different prompts without worrying about unnecessary costs. It also encourages you to test edge cases thoroughly.

For other errors, such as network timeouts or server issues, the API may return a 500 series code. In these cases, you should retry the request a few times before giving up. The API is hosted and generally reliable, but like any service, it may experience occasional downtime. Having a solid error handling strategy ensures your application remains stable.

When This API Is Not the Right Choice

While this API is excellent for uncensored text generation, it may not be the right choice for every project. If your application requires image generation, audio processing, or video creation, this text-only API will not suffice. You will need to integrate additional services to handle those modalities.

Similarly, if you need embeddings for vector search or fine-tuning for custom model behavior, this service does not offer those features. The API is designed for straightforward text input and output. If your workflow relies on these advanced capabilities, you may need to use a different provider for those specific tasks.

Another consideration is the payment method. If your team prefers to pay with credit cards or PayPal, this crypto-only model might be a friction point. You will need to set up a crypto wallet and manage private keys to top up your account. This adds a layer of complexity that some developers may find undesirable.

Finally, if you need a Service Level Agreement (SLA) or certifications like SOC2 or HIPAA, this service does not provide them. It is an independent service without guaranteed uptime percentages or specific compliance certifications. For enterprise clients with strict compliance requirements, this may be a dealbreaker. However, for indie builders and developers who value uncensored text generation, it is a strong option.

Addressing Community Concerns on Reddit

Discussions on Reddit, particularly in threads on r/technology and r/googlecloud, often highlight concerns about API key security and unexpected costs. Users have shared stories of stolen keys leading to massive bills, raising questions about budget caps and rate limits. While our API does not offer monthly budget caps like some cloud providers, it does enforce a strict rate limit of 300 requests per minute per key.

This rate limit helps mitigate the risk of runaway usage. If a key is compromised, the attacker is limited to 300 requests per minute. This is significantly lower than the unlimited or high-limit plans offered by some competitors. Additionally, since you pay only for what you use, and errors are free, the financial risk is contained within your prepaid credit.

Another common topic is the comparison with other models like Claude Code. Developers appreciate the simplicity of our uncensored model for specific use cases. Unlike other providers that may restrict certain types of content, our model allows for broader creative and security-research applications. This flexibility is highly valued by developers who need to test edge cases without hitting content filters.

Users also discuss the ease of integration with standard SDKs. The OpenAI-compatible format means that switching from other providers is easy. You only need to change the base URL and API key. This familiarity reduces the learning curve and allows developers to focus on building their applications rather than debugging complex integrations.

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. The minimum top-up amount is $20, and the maximum is $500.

Does the API support image generation?

No, this API is text-only. It does not support image, audio, or video generation. You can use it for text input and output, but you will need other services for multimodal tasks.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for long conversations and large document processing.

How do I verify my trial credit?

New accounts receive $0.50 in trial credit upon signup. You can verify this by making a test request with your API key. If the request succeeds, your trial credit is active.