Back to models
Colorful editorial still life with yellow fruit and cobalt glass
Google · Image

Nano Banana 2

Prompt-accurate generation with strong reference-image reasoning.

FastReferencesDetail
google/nano-banana-2/text-to-image
Starting at$0.07 / imageSaved models stay in this browser.
Try it now

Playground

$0.07 / image
Nano Banana 2Image  •  Text to image
97 / 1000
Aspect ratio
Estimated cost ~0.070 credits$0.0700 USD
Your result will appear hereConfigure a model, then generate it.
Current API contract

Use an organization API key.

Create a key in the studio, then send it as a Bearer token. API usage and credits remain scoped to that key’s organization.

Keys are shown once and API requests are rate limited per key.
const response = await fetch("/api/predictions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer omk_your_api_key",
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID()
  },
  body: JSON.stringify({
    model: "google/nano-banana-2/text-to-image",
    input: {
        "prompt": "Surreal floating architecture above a calm reflective sea, soft dusk light, cinematic composition",
        "aspect_ratio": "1:1"
    }
  })
});

const { data, error } = await response.json();
Submit
POST /api/predictions with an 8–200 character Idempotency-Key.
Poll
GET /api/predictions/{id} until the returned status is terminal.
Response
Success returns { data: prediction }; failures return { error: message }.
Model overview

Text to image

Prompt-accurate generation with strong reference-image reasoning.

FastReferencesDetail
Keep exploring

Related models