Skip to main content
🚀 Nano Banana Pro (Gemini 3) Now Available! This is Google’s most powerful image generation model.
  • 4K Quality: Supports 1K, 2K, 4K resolutions
  • Ultra Intelligent: Based on Gemini 3 architecture, precise understanding of complex prompts
  • Best Value: Only **0.09/image∗∗(62.50.09/image** (62.5% cheaper than official 0.09/image∗∗(62.50.24)

🎁 Free Trial

Register and get $0.5 credit toward Nano Banana Pro usage

🚀 Live Demo

AI Images - Try instantly, no code required

Prerequisites

1 Get API Key Login to YeLIn AI console to get your API key 2 Configure Billing Mode Edit token settings and select one of these billing modes (same price):
  • Pay-per-use Priority (Recommended): Use balance first, auto-switch when insufficient. Best for most users
  • Pay-per-use: Direct charge per request. Best for strict budget control
Both modes have identical pricing at $0.09/image, only the billing method differs.
请在 Console 查看对应界面截图。
API calls will fail without proper billing configuration. Complete this setup first!

Model Overview

Nano Banana Pro is LaoZhang API’s custom name for Google’s Gemini 3 Pro Image Preview (gemini-3-pro-image-preview) model. Designed for professional use cases requiring ultimate image quality and complex semantic understanding.

Core Advantages

  1. 🌟 Native 4K Resolution: Generate up to 4096×4096 ultra-high-definition images.
  2. 🧠 Gemini 3 Intelligence: Built-in logical reasoning, understands abstract descriptions like “a cat looking at an empty bowl with disappointment after missing breakfast”.
  3. 💪 Complex Composition: Precise control over object placement, quantity, and text rendering.
  4. 💰 Best Price: $0.09/image for premium image generation use cases.

🌟 Core Features

  • ⚡ Fast Response: ~10 seconds average, significantly faster than OpenAI series
  • 💰 Great Value: 0.09/image(62.50.09/image (62.5% cheaper than official 0.09/image(62.50.24)
  • 🔄 Dual Compatibility: Supports OpenAI SDK and Google native formats
  • 📐 Flexible Sizes: Google native format supports 10 aspect ratios
  • 🖼️ High Resolution: Supports 1K, 2K, 4K resolutions
  • 🧠 Thinking Mode: Built-in reasoning process, optimizes composition before generation (enabled by default)
  • 🌐 Search Grounding: Supports Google Search for fact verification and image generation
  • 🎨 Multi-Image Reference: Supports up to 14 reference images (6 objects + 5 characters, etc.)
  • 📦 Base64 Output: Returns base64 encoded image data directly, no secondary download needed

🔀 Two API Modes

Nano Banana Pro supports two endpoints, each with unique advantages: 💡 How to Choose?
  • For square (1:1) images only, use OpenAI Compatible Mode - simpler
  • For widescreen (16:9), portrait (9:16), or other specific ratios or high-res (2K/4K), use Google Native Format

📋 Model Comparison

Comparison with Other Image Models

💰 Price Advantage Details
  • Nano Banana Pro: 0.09/image(LaoZhangAPI)vs0.09/image (LaoZhang API) vs 0.09/image(LaoZhangAPI)vs0.24/image (official), 62.5% cheaper
  • Bonus: Get +10% bonus on large deposits
  • Exchange Rate: Paying in CNY is even more cost-effective
Nano Banana Pro offers exceptional value at LaoZhang API!

🚀 Quick Start

Prerequisites

1 Create Token Login to LaoZhang API Token Management and create a pay-per-use type token(截图请在 Console 查看) 2 Select Billing Type Important: Must select “Pay-per-use” type, not “Pay-as-you-go” 3 Save Token Copy the generated token in format sk-xxxxxx

Method 1: OpenAI Compatible Mode (1:1 Images)

Best for quick integration, generates 1024x1024 (1K) images by default.

Basic Example - Curl

Python SDK Example

Method 2: Google Native Format (Custom Aspect Ratio + 4K)

Best for 4K resolution or custom aspect ratio needs.

Supported Aspect Ratios

Supported Resolutions

💡 Resolution Selection Guide
  • 1K: Best for web display, social media, quick previews
  • 2K: Best for high-quality printing, professional display
  • 4K: Best for large prints, professional design, extreme detail

Complete Curl Example (Text-to-Image 4K)

Python Code Examples

💡 Progressive Examples Example 1 generates image → Example 2 transforms its style → Example 3 fuses both images. Clear progression! Example 1: Text-to-Image → Generate First Image
Example 2: Image-to-Image → Use First Image to Generate Second
Example 3: Multi-Image Mix → Use First and Second to Generate Third
Complete Demo Script (All Three Scenarios)

Bash Script Example

Expand to view complete Bash script (with aspect ratio config)

🚀 Gemini 3 Pro Advanced Features (Nano Banana Pro Exclusive)

🧠 Thinking Mode

Nano Banana Pro has built-in reasoning capability that automatically optimizes composition and logic before generating images to ensure higher quality output. This feature is enabled by default, no extra configuration needed. 💡 Thinking Mode Advantages
  • Automatically optimizes composition and layout
  • Understands complex multi-step instructions
  • Creates temporary “thinking images” during generation (backend only, no extra charge)
  • Final output is higher quality and more aligned with expectations

🌐 Google Search Grounding

The model can use Google Search as a tool to generate images using real-time data (weather, stock prices, news).
Note: When using search grounding, responseModalities must include "TEXT" (i.e., ["TEXT", "IMAGE"]). Pure image mode cannot return search results.

🎨 Multi-Image Reference (Reference Images)

Nano Banana Pro supports mixing up to 14 reference images:
  • Up to 6 high-fidelity object images (for inclusion in final image)
  • Up to 5 person images (for maintaining character consistency)
💡 Multi-Image Reference Best Practices
  • Object images: For product composition, scene building
  • Person images: Maintain character appearance consistency (for image series)
  • Combined use: Create complex visual narratives

💡 Best Practices

Prompt Optimization

Clear Description

Use specific, detailed descriptions including subject, style, color, lighting, etc.

Reference Style

Specify art styles: “oil painting style”, “watercolor”, “cyberpunk style”, etc.

Avoid Vagueness

Avoid overly abstract or vague terms

English First

English prompts typically work better, but Chinese is also supported

Aspect Ratio Selection Guide

❓ FAQ

How to test Nano Banana Pro API for free?
  1. Visit api.yelinai.com to register
  2. Automatically receive $0.5 free credit
  3. Create token and select “Pay-per-use”
  4. Call the gemini-3-pro-image-preview model
$0.5 can be applied toward multiple Nano Banana Pro requests. What is the Nano Banana Pro API price? Register to get $0.5 credit toward usage. How to test Nano Banana Pro API online? Method 1: API Playground visual testingMethod 2: Curl command
What’s the difference between Nano Banana Pro and Nano Banana? How to choose the API mode?
  • For 1:1 square images only, use OpenAI Compatible Mode - simpler
  • For specific aspect ratios (like 16:9 widescreen) or high-res (2K/4K), use Google Native Format
How to use 4K resolution? 4K is only supported by Nano Banana Pro, use Google native format and add imageSize parameter:
Important: Must use uppercase “K” (1K, 2K, 4K). Does it support Chinese prompts? Perfectly supported! Gemini 3 Pro has top-tier multilingual understanding. You can describe scenes in Chinese directly, no translation needed. How to get better generation results?
  1. Detailed description: Provide specific details (color, style, scene, etc.)
  2. English prompts: English typically works better
  3. Reference style: Specify art style (like “oil painting style”, “watercolor”)
  4. Multiple attempts: Try different prompts, pricing is affordable
How to use the returned Base64 data? Base64 data can be displayed directly in web pages:
Or decode and save as file (see code examples above)

Pro Image Editing

Learn how to edit and transform existing images with Nano Banana Pro

Nano Banana2 Image Generation

$0.055/image, better value Banana2 version

Standard Image Generation

More affordable Nano Banana Standard version

Token Management

Create and manage your API tokens

Pricing

View detailed pricing and billing information

📝 Changelog

2025-01: Nano Banana Pro standalone documentation launched 🚀 Nano Banana Pro Dedicated Page
  • Split from combined documentation into dedicated Pro version
  • Complete 4K resolution usage guide
  • Detailed advanced features (thinking mode, search grounding, multi-image reference)
  • Complete code examples and best practices
  • Comparison with Nano Banana Standard