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.04 / $0.05 / $0.088 per image for 1K / 2K / 4K; ToAPIs currently shows $0.025 / $0.030 / $0.040 per image on the landing comparison, with final billing based on account pricing.
  • At the ToAPIs 1K listed rate of $0.025 per image, a $10 top-up is roughly 400 additional 1K images; at the 4K listed rate of $0.040 per image, it is roughly 250 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.
Back to ToAPIs

Nano Banana 2

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

Text-to-image generation
Reference-guided edits
Photorealistic & artistic
1K, 2K, and 4K output
View API Docs

New users get 10 free credits. No credit card required.

Nano Banana 2 generated example
Generated in 8.2s with Nano Banana 2

2M+

Images generated

8s

Avg. response time

99.9%

Uptime

Creators

Trusted by developers

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

Explore the power of AI image generation with zero risk.

Sign up to get free credits
1

Describe your image

Describe the image you want to generate.127 / 1200

Quick Prompts

Advanced Options

Final price is confirmed at submission

Reference images

Request preview

{
  "model": "nano_banana_2",
  "prompt": "A premium product poster with soft studio lighting, a clean background, sharp subject detail, and commercial advertising style.",
  "n": 1,
  "resolution": "1K"
}
2

Your generated image

Example output
Example output

Happy with the result? Keep producing

Top up $10 to generate about 400 more 1K Nano Banana 2 images. Pay as you go, no subscription.

Top up $10

ToAPIs vs Official Nano Banana 2 Pricing

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

Save vs official

1K

38%

ToAPIs Price

$0.025

5 credits / image

Official Price

$0.04

/ image

2K

40%

ToAPIs Price

$0.03

6 credits / image

Official Price

$0.05

/ image

4K

55%

ToAPIs Price

$0.04

8 credits / image

Official Price

$0.088

/ image

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

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.

Free credits first

New users get 10 credits to test prompts before topping up.

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

    Use the Playground above to validate quality, text rendering, and style fit.

  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

Ads and social creatives

Produce campaign concepts, thumbnails, posters, and localized image variants.

Product visuals

Generate product-style shots, merchandising scenes, and reference-guided variations.

Developer pipelines

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

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.

Is the official comparison fixed?

This model page uses a fixed comparison table for clarity. Final ToAPIs billing follows current account pricing.

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.