Skip to main content
Model logo

Nano Banana 2 API

  • Text to Image
  • Image to Image
Tap to uploadPNG, JPG, WEBP, GIF · Max 10MB
Output

Your generated image will appear here

Updated

What is the Nano Banana 2 API?

The Nano Banana 2 API is live on UnificAlly as google/nano-banana-2, from $0.034 per image. Nano Banana 2 is the resolution-tiered Gemini image model in the Nano Banana family, launched by Google on February 26, 2026 (stable release May 28, 2026). One resolution parameter picks 1K, 2K, or 4K and maps to three rate-card lines, so you know exactly what each output costs based on the size you asked for. It supports five aspect ratios (1:1, 16:9, 9:16, 4:3, and 3:4) plus auto, which matches the shape of the first input image. Google documents up to 10 object references and 4 character references per call. Compared to Nano Banana Pro, this variant skips the reasoning step, so it returns faster and costs less per image.

Nano Banana 2 API specs

Model IDgoogle/nano-banana-2
EndpointPOST https://api.unifically.com/v1/tasks
Request typesText-to-image, image generation with reference images
Resolution1K (default), 2K, 4K
Aspect ratio1:1 (default), 16:9, 9:16, 4:3, 3:4, auto
Reference inputsImage URLs in image_urls
Rate at 1K$0.034
Rate at 2K$0.051
Rate at 4K$0.076

Billing is per image, set by the resolution you request, with no subscription. The Nano Banana 2 pricing guide covers the full rate table.

How to use the Nano Banana 2 API

  1. Create an API key on the API keys page.
  2. Send a POST request to https://api.unifically.com/v1/tasks with the model ID and an input object.
  3. Read the task_id from the response, then check /v1/tasks/{task_id} until the task is finished, or pass a callback URL and wait for the result.
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "google/nano-banana-2",
    "input": {
      "prompt": "A photorealistic portrait in golden hour lighting",
      "aspect_ratio": "3:4",
      "resolution": "4K"
    }
  }'

The response returns the task ID straight away:

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}

The finished task carries the image URL.

curl https://api.unifically.com/v1/tasks/{task_id} \
  -H "Authorization: Bearer YOUR_API_KEY"

Nano Banana 2 API parameters

ParameterTypeDefaultWhat it does
promptstringrequiredText description of the image
aspect_ratiostring1:11:1, 16:9, 9:16, 4:3, 3:4, or auto. auto matches the shape of the first input image, or gives a square image when there is none
image_urlsarraynoneReference image URLs
resolutionstring1K1K, 2K, or 4K
nsfw_checkbooleanfalseChecks the prompt and input images for NSFW content before generating. Off unless set to true

The Nano Banana 2 API documentation has the full reference.

What's new in Nano Banana 2

Explicit resolution selection (1K, 2K, 4K)

Pick the size you actually need and pay per resolution. Useful when a campaign master goes to print at 4K and the social cuts only need 1K.

Five aspect ratios plus auto

Standard 1:1, 16:9, and 4:3, plus vertical 9:16 and 3:4. Set auto to match the shape of the first input image. Covers the common social and web formats without a separate crop step.

Object and character references

Google documents up to 10 object images and 4 character images per call. Useful for catalog series and brand systems where the same six to eight references repeat across a campaign.

What Nano Banana 2 is best for

  • Campaign packs across resolutions

    One prompt, three resolution sizes (1K, 2K, 4K). Locks the look across web, mobile, and print.

  • Ecommerce catalog grids

    Reference-guided product stills at the resolution each surface needs. PDP at 4K, listing thumbnails at 1K.

  • Pitch deck hero art

    4K output covers projector and conference-room display sizes without an upscale step.

  • Multi-channel social

    Generate the master at 4K, downscale for each social spec.

  • Quality-vs-cost A/B testing

    Same prompt at 1K and 4K shows whether the resolution upgrade actually matters for your use case.

  • High-volume iteration

    No reasoning step means lower latency per call. Useful when a creative team is sweeping dozens of prompt variants before locking a direction.

Nano Banana 2 use cases

Build a campaign master at 4K and downscale the same prompt to 1K for social tiles, all in one batch. Run an ecommerce catalog refresh by passing each SKU shot as a reference and prompting for a styled scene at 2K for the listing and 4K for the PDP hero. A/B test resolution against budget by generating the same prompt at 1K and 4K and comparing whether the upgrade actually shows on your typical surface.

FAQs

People also ask about Nano Banana 2

Nano Banana 2 is the Gemini-based image model in the Nano Banana family with explicit resolution selection. One resolution parameter picks 1K, 2K, or 4K, and pricing follows the size you generate.

Open the API keys page after creating an account, generate a key, and send it in the Authorization: Bearer header. For the Nano Banana 2 API the endpoint is https://api.unifically.com/v1/tasks and the model ID is google/nano-banana-2, billed per image by the resolution you request.

Name google/nano-banana-2 as the model and give input a prompt along with aspect_ratio and resolution (the example asks for 4K at 3:4). Reference images go in image_urls. A task_id comes back first; poll /v1/tasks/{task_id} or wait on a callback URL for the finished image.

Nano Banana 2 stays on the Gemini image lineage and skips the reasoning step, so it is faster per call and cheaper per image. Pro swaps to Gemini 3 Pro Image with a reasoning pass and photoreal output. Both render legible text, and Google's model card scores Nano Banana 2 at 1107 on text editing against 1076 for Pro, though small text can blur at 1K. Pick Nano Banana 2 when you want predictable cost across resolution sizes. Pick Pro when the asset has to go out without retouching.

Use Nano Banana 2 for ecommerce catalog runs, multi-channel social packs, fast iteration, and any job where you are A/B testing prompts and resolutions. Use Pro for marketing posters with body copy, photoreal product hero shots, and complex multi-subject scenes.

Five ratios: 1:1, 16:9, 9:16, 4:3, and 3:4, plus auto, which matches the shape of the first input image. The default is 1:1.

Supply them as URLs in image_urls. Google documents up to 10 object images and 4 character images for this model.

There is no free tier. New UnificAlly accounts get a $0.50 signup balance — 14 Nano Banana 2 images at the default 1K rate ($0.034 each), or 25 on Nano Banana 2 Lite. After that, billing is pay-per-use with no subscription, and your balance never expires.

Nano Banana 2 guides and comparisons

Review pricing, limits, and tested outputs before running this model.