Quick Answer

  • Use POST /v1/images/generations with the Nano Banana 2 model id documented by ToAPIs.
  • Supports prompt generation and reference_images for ad, e-commerce, social, and batch creative assets.
  • The workflow is async: submit the task, receive a task id, then poll the image task status endpoint.
  • Official comparison pricing is roughly $0.067 / $0.101 / $0.151 per image for 1K / 2K / 4K; ToAPIs currently shows $0.030 / $0.040 / $0.060 per image on the landing comparison, with final billing based on account pricing.
  • At the ToAPIs 1K listed rate of $0.030 per image, a $10 top-up is roughly 333 additional 1K images; at the 4K listed rate of $0.060 per image, it is roughly 166 4K images.

Key Parameters

  • model | string | required | nano_banana_2 | - | Use the Nano Banana 2 model id shown in ToAPIs docs or pricing.
  • prompt | string | required | - | - | Primary image generation prompt.
  • size | string | optional | 1:1 | 1:1 | 16:9 | 9:16 | 4:3 | 3:4 | Output aspect ratio; available values follow docs and model capability.
  • resolution | string | optional | 1K | 1K | 2K | 4K | Output resolution tier, affecting per-image price and generation cost.
  • reference_images | string[] | optional | - | URL array | Reference image URL array for guided generation and style/subject control.
  • response_format | string | optional | url | url | b64_json | Response format; URL is recommended for most workflows.

Common Errors

  • 400 invalid_request_error: trigger=Missing model/prompt or invalid resolution, aspect ratio, or reference image fields.; fix=Validate model, prompt, size, resolution, and reference_images against ToAPIs docs.; retry=Retry only after correcting the payload.
  • 401 authentication_error: trigger=Missing Authorization header or invalid API key.; fix=Verify bearer token format and key scope.; retry=Retry after fixing authentication.
  • 429 rate_limit_exceeded: trigger=Request rate, concurrency, or current credits hit limits.; fix=Apply exponential backoff, reduce concurrency, and check account credits.; retry=Use 1s/2s/4s backoff with jitter; queue requests if it persists.
Google logo

Nano Banana 2

Commercial use

Generate high-quality images with the latest Nano Banana model, now available through ToAPIs.

Model Type:
Pricing: 0.5K $0.03 / image; 1K $0.03 / image; 2K $0.04 / image; 4K $0.06 / image
1

Describe your image

Reference images

Describe the image you want to generate.135 / 1200

Advanced options

Example params
2

Your generated result

Example result

Generation takes some time. Please wait.You can leave this page. [ Task Logs ] lets you check the generated content directly.

Request preview

{
  "model": "nano_banana_2",
  "prompt": "Generate a playful product hero image for a banana-flavored drink, bright studio backdrop, clean packaging detail, commercial lighting.",
  "size": "1:1",
  "n": 4,
  "resolution": "1K"
}

2M+

Images generated

8s

Avg. response time

99.9%

Uptime

API

Ready for production

Generated examples

Explore what Nano Banana 2 can create

Create with this model
Nano Banana 2 generated hero image

Generated in 8.2s with Nano Banana 2

Nano Banana 2 generated product visual

Nano Banana 2 #2

Nano Banana 2 generated creative image

Nano Banana 2 #3

Transparent pricing

ToAPIs vs Official Nano Banana 2 Pricing

Same image model capability, lower generation cost, free credits on signup.

Top up credits

0.5K

ToAPIs

$0.03

image

Official Price

-

image

1K

ToAPIs

$0.03

image

Save 55%VS

Official Price

$0.067

image

2K

ToAPIs

$0.04

image

Save 60%VS

Official Price

$0.101

image

4K

ToAPIs

$0.06

image

Save 60%VS

Official Price

$0.151

image

Prices are shown for model-page comparison and may change. Final billing follows the current account pricing.

Why ToAPIs

Why use ToAPIs for Nano Banana 2?

Keep Nano Banana 2 quality while lowering image generation costs and using one API key across more models.

Lower per-image pricing

Generate 1K, 2K, and 4K images at a lower listed cost than official pricing.

Reference image workflow

Use reference images for style, subject, or composition control.

Unified API access

Use one ToAPIs account and API key across image, video, and language models.

Start generating in three steps

Test in the page, then move the same model into your production workflow.

  1. 1

    Try a prompt

    Validate image quality, reference guidance, and style fit in the page.

  2. 2

    Create an API key

    Sign up, open Dashboard, and create a token for Nano Banana 2 requests.

  3. 3

    Ship your workflow

    Call the image endpoint, poll async task status, and top up credits as usage grows.

Built for image generation teams

Campaign visuals

Create ad concepts, hero images, and social variations from structured prompts.

E-commerce teams

Generate product-style visuals and merchandising assets with reference guidance.

Developer pipelines

Add async image generation to agents, CMS tools, and batch creative systems.

FAQ

Nano Banana 2 pricing FAQ

Can I try Nano Banana 2 for free?

Yes. New ToAPIs users receive 10 credits and can test Nano Banana 2 before topping up.

Can I use reference images?

Yes. The page supports reference-guided generation where the model configuration allows it.

Can I use the API after testing?

Yes. Create an API key in the dashboard and integrate Nano Banana 2 into your image generation workflow.

Nano Banana 2 API

Generate your first Nano Banana 2 image on ToAPIs

Start with free credits, compare the output, then get an API key when you are ready to scale.

New here? Sign up and get 10 free credits to try Nano Banana 2 now!

Explore image generation with zero risk, then move into API access when you are ready.

Sign up to get free credits