EN ▾
Get API key

Nano Banana API: Production Guide for Unrestricted Text Generation

The Nano Banana API provides a reliable, uncensored text engine designed for developers building AI video, image, or speech pipelines who need reliable prompt generation and post-processing without content filters. This guide details how to integrate our OpenAI-compatible chat-completions endpoint for unrestricted text workflows, covering streaming, structured outputs, and transparent prepaid billing.

Nano Banana API: Production Guide for Unrestricted Text Generation

Updated

Key points

  1. The API serves the 'uncensored' open-weight model via a standard OpenAI-compatible endpoint, ensuring easy integration with existing SDKs.

  2. Billing is prepaid and transparent, with costs charged only for real token usage and no monthly subscription fees.

  3. Supports streaming via SSE, function calling, and JSON mode for structured data extraction or script generation.

  4. Top-ups are by crypto (USDT/USDC), and trial credit is available without requiring a credit card.

What is the Nano Banana API?

The Nano Banana API is a specialized text-generation service built for developers who need raw, unrestricted language model output. Unlike general-purpose APIs that may filter content or limit context windows, this service hosts a dedicated open-weight model tuned to answer without refusals for lawful adult, fictional, or technical content.

It operates as a text-only engine. It does not generate images, audio, or video directly. Instead, it powers the text components of your pipeline: writing prompts for image generators, scripting voice-over narration, extracting data from logs, or post-processing transcripts. The API is fully OpenAI-compatible, meaning you can use the official OpenAI SDKs or any compatible client by simply updating the base URL and API key.

  • Model: 'uncensored' (open-weight, self-hosted)
  • Endpoints: POST /v1/chat/completions, GET /v1/models
  • Format: Text in, text out

Why Use an Uncensored Text API?

Standard LLM APIs often apply content filters that can interrupt creative workflows or block nuanced explanations of adult topics, security research, or controversial subjects. For pipelines generating media, these filters can cause failures in prompt generation or truncate responses unexpectedly. The Nano Banana API removes these arbitrary blocks, ensuring your text engine delivers exactly what you request.

This is particularly valuable for AI video and image generation. If your prompt generator refuses to include certain descriptive keywords due to a content policy, your final media may miss key details. By using an uncensored text engine, you maintain full control over the narrative and descriptive elements of your creative projects.

Key Distinction: 'Uncensored' means the model does not refuse lawful adult, fictional, or controversial topics. It still enforces a hard limit on sexual content involving minors. This makes it suitable for a wide range of creative and technical use cases without the risk of silent refusals.

Integration Checklist

Integrating the Nano Banana API into your Python, Node.js, or Go pipeline requires minimal changes if you are already using OpenAI-compatible clients. Follow this checklist to ensure a smooth setup.

  • Base URL: Set your client's base URL to https://api.unrestrictedaigenerator.cc/v1
  • Model ID: Specify 'uncensored' in your requests.
  • API Key: Generate your key via the 'Get API key' page using Google or email/password.
  • Authentication: Pass the API key in the Authorization header.

Ensure your client handles standard OpenAI error formats. The API returns standard HTTP status codes and JSON error objects, making debugging straightforward. No custom headers or complex authentication flows are required.

Streaming Responses

For real-time applications, such as live captioning or interactive chat interfaces, streaming is essential. The Nano Banana API supports Server-Sent Events (SSE) via the standard OpenAI streaming protocol. This allows you to receive tokens as they are generated, reducing perceived latency.

When streaming, the final chunk contains the token usage statistics, allowing you to track costs accurately in real-time. This is particularly useful for high-volume pipelines where token consumption can vary significantly based on input complexity.

Implementation Note: Ensure your client correctly handles the last chunk, which includes the 'usage' field. This field provides the total input and output tokens for the request, enabling precise prepaid credit management.

Function Calling Setup

Function calling enables your pipeline to extract structured data from unstructured text or trigger specific actions based on model output. The Nano Banana API supports function calling with full compatibility for tools, tool_choice, and standard function definitions.

This is invaluable for post-processing transcripts or extracting specific details from generated scripts. For example, you can define a function to parse a generated video script and extract scene descriptions, dialogue, and audio cues. The model will return a structured JSON object that your code can immediately consume.

Best Practice: Define clear function schemas in your request. The model performs best when the function descriptions are explicit and the expected input format is well-defined. This reduces the likelihood of malformed responses.

JSON Mode for Structured Data

When you need guaranteed structured output, JSON mode is the most reliable option. By setting the response_format parameter to 'json_object', the model is constrained to output valid JSON. This eliminates the need for complex parsing logic to handle markdown code blocks or extra text.

This feature is critical for pipelines that feed model output directly into other systems, such as a JSON parser for a voice synthesis engine or a database insertion routine. It ensures consistency and reduces errors in data handling.

Usage: Include 'response_format': { 'type': 'json_object' } in your request payload. The model will attempt to format the entire response as a valid JSON object, making it ideal for automated workflows.

Rate Limits & Performance

Understanding rate limits is important for maintaining smooth pipeline operations. The Nano Banana API enforces the following limits per API key:

  • Requests per minute: 300
  • Concurrent requests: 8
  • Max request body size: 8 MB

These limits are designed to prevent abuse while allowing sufficient throughput for most development and production workloads. If you exceed the concurrent request limit, you will receive a 429 error. To optimize performance, consider batching requests or using streaming for large outputs.

Note: Each account can have only one active API key at a time. Generating a new key will invalidate the previous one, so manage your keys carefully to avoid disrupting active pipelines.

Pricing & Token Usage

The Nano Banana API uses a transparent, prepaid token billing model. You pay only for what you use, with no monthly fees or subscription commitments. Credit never expires, so you can top up when needed and use it at your own pace.

Token Rates:

  • Input tokens: $0.15 per 1M tokens
  • Output tokens: $0.50 per 1M tokens

Top-ups: Payments are accepted by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20, and maximum is $500. Bonus credit is available: +5% for top-ups of $50 or more, +10% for top-ups of $100 or more, and +15% for top-ups of $200 or more.

Trial: New accounts receive $0.50 in trial credit, valid for 7 days. Claim this credit with one click on your API key page. No credit card is required to start.

Getting Started

Getting started with the Nano Banana API is straightforward. Follow these steps to begin generating unrestricted text for your pipeline.

  1. Sign up: Visit the 'Get API key' page and sign up using Google or an email/password combination. No phone number is required.
  2. Get your key: Your API key will be displayed immediately after signup. Store it securely.
  3. Top up: Add credit by crypto (USDT on TRC20, USDC on Base). You can start with the free trial credit to test the API.
  4. Integrate: Use the base URL https://api.unrestrictedaigenerator.cc/v1 and model ID 'uncensored' in your preferred SDK.

For more detailed documentation, refer to the API Quickstart page. If you encounter any issues, use the Support page for assistance with billing or technical questions.

Questions and answers

Is the Nano Banana API compatible with OpenAI SDKs?

Yes, it is fully OpenAI-compatible. You can use the official OpenAI SDKs or any client that supports the OpenAI API format by simply updating the base URL to https://api.unrestrictedaigenerator.cc/v1 and setting the model ID to 'uncensored'.

What payment methods are accepted for top-ups?

Payments are accepted by crypto (USDT on TRC20, USDC on Base). The minimum top-up amount is $20, and the maximum is $500.

Does the API have content filters?

The API is uncensored and does not refuse lawful adult, fictional, or controversial topics. However, it enforces a hard limit that blocks sexual content involving minors. This content will be refused in all cases.

Can I use multiple API keys simultaneously?

No, each account is limited to one active API key at a time. If you generate a new key, the previous one will be invalidated. This ensures consistent usage tracking and billing per account.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Start with trial credit

Email and password, key on screen right away.