Skip to main content
Nano Banana 2: the 4K, high-throughput value route
  • Stable model ID: gemini-3.1-flash-image
  • LaoZhang API price: currently $0.055/call; confirm price and charges in the console
  • Resolution: 0.5K, 1K, 2K, and 4K
  • Full workflow: Generation, editing, text rendering, OpenAI SDK, and Gemini-native requests

API Console

Create an API key, review balance, and inspect call logs

🚀 Live Demo

YingTu AI - Try instantly, no code required
LaoZhang API provides per-call access through one global HTTPS endpoint without a fixed low gateway concurrency plan, making it suitable for high-frequency production integration. Final throughput still depends on Google upstream capacity, account state, and safety policy. For the $0.025 1K route, see Nano Banana 2 Lite; for cross-model selection, see the image generation API guide.

Prerequisites

1

Get API Key

Login to laozhang.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
  • Pay-per-use: Direct charge per request, best for strict budget control
Both modes have identical pricing at $0.055/image, only the billing method differs.
Pay-per-use billing note: Nano Banana 2 is billed based on successful calls returned by Google. If the prompt does not explicitly ask to generate or return image data, or if the text/reference image triggers Google’s official copyright, sensitive-person, or sensitive-content risk controls, the call may succeed without an image being returned. In that case, it is usually still charged as one successful call. Official 429/5xx errors, network timeouts, and parameter validation failures should be reviewed against console order status.
Token Settings
API calls will fail without proper billing configuration. Complete this setup first!

Model Overview

Nano Banana 2 is the market name for Google’s Gemini 3.1 Flash Image (gemini-3.1-flash-image). The current model ID is stable and targets speed, high throughput, 4K, and general production image work. Nano Banana 2 uses the same core request patterns as Nano Banana Pro. Replace the model name with gemini-3.1-flash-image and follow this page’s resolution and feature boundaries.

📋 Nano Banana Model Comparison

💡 How to Choose?
  • Ultimate quality & complex instructions: Choose Nano Banana Pro ($0.09/image)
  • 4K and high-throughput general work: Choose Nano Banana 2 ($0.055/image)
  • Low-cost, high-frequency 1K work: Choose Nano Banana 2 Lite ($0.025/image)
  • Legacy compatibility: Keep Nano Banana Standard ($0.025/image)

🚀 Quick Start: OpenAI Compatible Mode

Curl Example

Python SDK Example

🎨 Image Editing

Nano Banana 2 also supports image editing, with usage identical to Pro. Simply include reference images and editing instructions in your request, using model name gemini-3.1-flash-image.
For more image editing features (multi-image fusion, 4K output, Google native format, etc.), see the Nano Banana Pro Image Editing docs and replace the model name with gemini-3.1-flash-image.

📖 Complete Usage Guide

Nano Banana 2 API calls are identical to Nano Banana Pro, including OpenAI compatible mode and Google native format. Simply replace the model name from gemini-3-pro-image to gemini-3.1-flash-image - no other code changes needed.

Pro Text-to-Image Guide

4K resolution, Google native format, multiple aspect ratios, complete code examples

Pro Image Editing Guide

Style transfer, multi-image fusion, 4K HD editing, URL input method

Token Management

Create and manage your API tokens

Pricing

View detailed pricing and billing information

❓ FAQ

Both use the same core request structure. Nano Banana 2 prioritizes speed and high throughput, while Pro prioritizes complex professional assets.
Replace gemini-3-pro-image with gemini-3.1-flash-image, then verify resolution, Search grounding, reference-image, and response-parsing behavior against this page’s capability boundaries.
Yes, fully supported! Use this endpoint:
Supports 14 discrete aspect ratios and 0.5K/1K/2K/4K output. The core request shape is similar to Pro, but follow this page’s capability boundaries.
Yes! Full text-to-image and image editing features. See the Pro Image Editing docs for details.
LaoZhang API currently charges $0.055 per call; confirm pricing and charges in the console. Google Standard currently varies from $0.045 at 0.5K to $0.151 at 4K, so compare like-for-like resolutions.
Nano Banana 2 targets high-throughput workloads, and LaoZhang API does not publish a fixed low gateway concurrency plan. Google upstream can still enforce RPM/IPM, project quota, real-time capacity, and safety policy. Confirm capacity before sustained large-volume launch.
Create an API key in Token Management and authenticate with Authorization: Bearer YOUR_API_KEY. Never expose the key in browser code or a public repository.

📝 Changelog

Nano Banana 2 now uses the stable model ID
  • Uses gemini-3.1-flash-image instead of the retired preview ID
  • Pricing has been synced to the current page rate while keeping the same value positioning
  • Supports generation, editing, and 0.5K/1K/2K/4K output