
Google · Image
Nano Banana 2
Prompt-accurate generation with strong reference-image reasoning.
FastReferencesDetail
google/nano-banana-2/text-to-imageStarting at$0.07 / imageSaved models stay in this browser.
Try it now
$0.07 / imagePlayground
97 / 1000
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/predictionswith an 8–200 characterIdempotency-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
- ProviderGoogle
- InputsPrompt, Aspect ratio
- OutputImage
- Price$0.07 / image
Keep exploring



