Nano Banana Pro API

Leverage the next-gen Nano Banana 2 API for semantic photo manipulation. Built on Google's Gemini 3 Pro architecture, it executes complex natural language edits—from text correction to multi-image fusion—with unmatched consistency.

A highly dynamic, futuristic infographic poster for "Evolink," blending comic book art with high-end sci-fi concept art. A powerful, glowing cybernetic entity, the "Evo-Agent," bursts forth from a central data vortex platform. Data streams and light trails connect various floating holographic interfaces around the hero, forming a loose six-panel structure without rigid borders.Top section shows a sprawling, impossibly detailed digital landscape (8K Reality) transitioning into a massive holographic brain structure (Quantum Core). Mid-section features the Agent interacting with flowing text that translates instantly (Universal Decryption), flanked by complex floating holographic UI controls with sliders for manipulating visual parameters (Advanced UI). Bottom section displays floating screens in varied aspect ratios (1:1, 9:16, wide) showing identical content, next to multiple translucent echoes of the Agent in perfect pose consistency.The style is sleek, dominant tech-noir, with glowing circuit patterns and lens flares. Footer area with stylized minimalist node icons. Bold glowing tagline across the bottom: "EVOLINK: THE ARCHITECTURE OF FUTURE THOUGHT."

Parameters
size
auto
quality
2K
Estimated Cost
8.7 Credits
Sample Result
Sample generated image
1,170 (suggested: 2,000)

Upload reference images for video generation

Click to upload or drag and drop

Supported formats: JPG, JPEG, PNG, WEBP
Maximum file size: 10MB; Maximum files: 10

Generated image 1
$

Pricing

Starting from
$0.121
8.7 Credits
per image
Guaranteed
99.9% Uptime
Powered by 13 redundant providers

Nano Banana 2 API : The Best Image Editor Model

Execute precise instruction-based edits without complex masks. The Nano Banana 2 API handles bilingual text modification, character consistency, and background replacement for high-volume professional workflows.

Nano Banana 2 API : The Best Image Editor Model

Capabilities of the Nano Banana 2 API

Semantic Object & Text Editing

Programmatically modify elements using natural language via the Nano Banana 2 API. It understands context, allowing you to 'replace the cup with a vase' without manual masking.

Start Using API
example 2

Flawless Text Rendering

A unique strength of the Nano Banana 2 API: modify text on signs, posters, or merchandise while preserving original fonts and eliminating generated gibberish.

Start Using API
example 3

Multi-Image Fusion

Send up to 14 reference images in a single Nano Banana 2 API request to apply consistent character identity or styling rules across a product series.

Start Using API
example 4

Why developers choose Nano Banana 2 API

Access state-of-the-art Gemini 3 reasoning for instruction-based editing at a competitive price point.

Instruction-Based Control

Use natural language (e.g., "change the outfit to a red dress") to guide the Nano Banana 2 API without complex parameter tuning or layers.

2K/4K Native Resolution

The model generates native 2K outputs with 4K upscaling capabilities, ensuring edited regions blend seamlessly with professional photography.

Cost-Effective Scaling

Reduce operational costs with efficiency-optimized pricing averaging ~$0.039 per successful high-fidelity edit.

How to integrate the Nano Banana 2 API

A simple request-response flow for complex Gemini-powered manipulations.

1

Step 1 — Construct the Payload

Send a POST request containing your base image (Base64/URL) and optional reference images to the Nano Banana 2 API endpoint.

2

Step 2 — Define the Instruction

Pass a text prompt to the Nano Banana 2 API describing the desired change (e.g., "replace the background with a snowy mountain").

3

Step 3 — Retrieve & Deploy

Receive the processed high-resolution image URL in the JSON response, ready for immediate display in your application.

API Key Features

Engineered for granular control and automation

Semantic Inpainting

Edit specific pixels via natural language understanding.

Multi-Image Batching

Process batches with consistent style constraints.

Scene Restaging

Swap backgrounds while keeping subject depth correct.

Text Style Preservation

Modify embedded text without breaking visual design.

Bilingual Instruction

Native support for complex prompts in multiple languages.

Transparent Pricing

Pay-per-request model (~$0.039) via Nano Banana 2 API.

Nano Banana 2 API vs. Alternatives

Choose the right programmatic editor for your stack

ModelDurationResolutionPriceStrength
Nano Banana 2 APIN/A2K Native / 4K Upscale~$0.039/requestSuperior text editing, Gemini 3 reasoning, and multi-image consistency.
Qwen Image EditN/AWeb Optimized~$0.04/requestGood general inpainting but lacks the advanced text rendering of Nano Banana.
Midjourney APIN/A1024px BaseSubscription/CreditHigh artistic style capability, but harder to control programmatically for edits.

Nano Banana Pro API FAQs

The API is powered by the Gemini 3 Pro Image architecture (internally known as GemPix 2), enabling superior semantic reasoning and text rendering capabilities.
Yes, this is a core strength. Unlike many diffusion models, Nano Banana 2 specializes in rendering and modifying text within images while maintaining the original font style and legibility.
The Nano Banana 2 API supports multi-image fusion, allowing you to upload reference images to maintain character identity across up to 5 different subjects in a single scene.
Yes, you can extend canvas boundaries. Simply provide the context, and the Gemini 3 based model will hallucinate realistic extensions to the scene.
The API natively supports 2K resolution generation and includes built-in upscaling to deliver 4K production-ready assets.
Pricing is competitive, averaging around $0.039 per generated image. Costs may vary slightly based on resolution settings and the number of reference images used.

API Reference

Select endpoint

Authentication

All APIs require Bearer Token authentication.

Header
Authorization:
Bearer YOUR_API_KEY
Get API Key
POST
/v1/images/generations

Generate Image

Create an image generation task using text prompts or reference images. Supports text-to-image, image-to-image, and image editing modes.

Asynchronous processing mode, use the returned task ID to .

Generated image links are valid for 24 hours, please save them promptly.

Request Parameters

modelstringRequiredDefault: nano-banana-2-lite

Image generation model name.

ValueDescription
nano-banana-2-liteCost-effective option
gemini-3-pro-image-previewHigher stability for commercial use
Examplenano-banana-2-lite
promptstringRequired

Prompt describing the image to be generated or how to edit the input image.

Notes & Constraints
  • Limited to 2000 tokens
ExampleA cat playing in the grass
sizestringOptionalDefault: auto

Aspect ratio of the generated image.

ValueDescription
autoAuto detect
1:1Square (1:1)
2:3Portrait (2:3)
3:2Landscape (3:2)
3:4Portrait (3:4)
4:3Landscape (4:3)
4:5Portrait (4:5)
5:4Landscape (5:4)
9:16Vertical (9:16)
16:9Horizontal (16:9)
21:9Ultra-wide (21:9)
Example'16:9'
qualitystringOptionalDefault: 2K

Quality of the generated image.

ValueDescription
1KStandard quality
2KHigh quality (default)
4KUltra quality (Higher Cost)
Notes & Constraints
  • 4K quality incurs additional charges
Example2K
image_urlsarrayOptional

Reference image URL list for image-to-image and image editing functions.

Notes & Constraints
  • Max 10 images per request
  • Max size: 10MB per image
  • Formats: .jpeg, .jpg, .png, .webp
  • URLs must be directly accessible by the server
  • Maximum 5 real person images
Examplehttps://example.com/image1.png
callback_urlstringOptional

HTTPS callback address after task completion.

Notes & Constraints
  • Triggered on completion, failure, or cancellation
  • Sent after billing confirmation
  • HTTPS only, no internal IPs
  • Max length: 2048 chars
  • Timeout: 10s, Max 3 retries
Examplehttps://your-domain.com/webhooks/image-task-completed

Request Example

{
  "model": "nano-banana-2-lite",
  "prompt": "A cat playing on the grass",
  "size": "16:9",
  "quality": "2K"
}

Response Example

{
  "created": 1757165031,
  "id": "task-unified-1757165031-uyujaw3d",
  "model": "nano-banana-2-lite",
  "object": "image.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 45
  },
  "type": "image",
  "usage": {
    "billing_rule": "per_call",
    "credits_reserved": 1.6,
    "user_group": "default"
  }
}