Create or remix images with optional references, broad aspect ratios, and higher-resolution output.

Provider: Google

Category: image generation

Endpoint: /v1/tasks

Status: Available

Cost: See live page pricing

Back to Models

Nano Banana 2

by GoogleImage

Create or remix images with optional references, broad aspect ratios, and higher-resolution output.

Pricing

Standard Usage

72 Credits/ image

Input

0 / 20000

More parameters

Generation settings

Choose the output image file format

Estimated cost72 Credits / image1K

Output

Ready for generation

Configure your parameters and click "Run" to see the output here.

--

Related image models

Choose an adjacent model by task, output tier, and reference-image needs.

About Nano Banana 2

Create or remix images with optional references, broad aspect ratios, and higher-resolution output.

The Playground and API use the same model ID: nano-banana-2. Generate with a prompt alone, or add images for editing and visual references without switching models.

Provider
Google
Task
Text-to-Image / Editing
References
0-14
Pricing
72 Credits / image

Model specifications

Explore reference limits, sizes, formats and quality settings for Nano Banana 2.

Reference images
0-14
Output resolution
1K2K4K
Aspect ratios
1:11:41:82:33:23:44:14:34:55:48:19:1616:921:9auto
Output formats
JPGPNG
Prompt length
Up to 20,000 characters
Pricing
1K: 72 Credits / image2K: 114 Credits / image4K: 172 Credits / image

Current standard prices are shown here. Check the live price above and task record for offer discounts and generation estimates.

How to use Nano Banana 2

References provide visual facts; the prompt assigns their roles and limits the edit.

Subject
Scene
Style
Up to 14
01

Describe the image or add references

Skip uploads for text-to-image, or add 1 to 14 images for editing and describe their roles.

What to change
What to preserve
02

Describe the result and choose settings

Describe the subject, composition, and lighting; for edits, specify what to change and preserve, then choose quality, layout, and format.

Playground
POST /v1/tasks
03

Validate before integration

Check the reference relationship in Playground, then create asynchronous tasks with the same model ID.

API Quickstart

Copy a minimal request below. See Docs for parameters, callbacks, task retrieval, and errors.

Endpoint
POST /v1/tasks
Model ID
nano-banana-2
cURL
curl -X POST "https://api.hiapi.ai/v1/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-2",
  "input": {
    "prompt": "A cinematic product campaign with sharp text",
    "aspect_ratio": "1:1",
    "output_format": "png",
    "resolution": "2K"
  }
}'

The create request immediately returns a taskId; image generation continues asynchronously.

Read the full API documentation
Need to compare models and billing tiers?View live pricing for all models

Frequently asked questions

What is Nano Banana 2 best for?

Create or remix images with optional references, broad aspect ratios, and higher-resolution output.

Does Nano Banana 2 accept reference images?

Yes, up to 14 optional references. Omit them for text-only generation.

Which output settings are supported?

The page exposes 1K, 2K, 4K and 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9, auto; use the Playground contract for the final available set.

How is Nano Banana 2 billed?

Billing is per successful generated image. Resolution or quality differences, when present, are reflected by the live page price.

How do I call the Nano Banana 2 API?

POST an asynchronous task to /v1/tasks with model set to nano-banana-2 and put generation fields inside input.