Nano Banana 2 API
Generate images from text with Nano Banana 2 through GoEnhance's independent API. Choose a supported ratio and 0.5K–4K output size, then poll or receive callbacks for the result. GoEnhance is not Google, and this endpoint is not Google's official Gemini API.
Create an API Key
Flexible text-to-image generation
Prompt and output controls
Send model as nano-banana-2 with a 1–2000 character prompt. Choose a documented aspect ratio, output size, and optional reasoning depth.

Asynchronous task delivery
A successful submission returns img_uuid. Poll GET /api/v1/jobs/detail or provide a public HTTPS callback URL for status updates.

Validate the exact model ID and documented fields before submitting a generation task.
Nano Banana 2 API parameters
Model
Required. Set <code>model</code> exactly to <code>nano-banana-2</code>.
Prompt
Required text description from 1 to 2000 characters.
Aspect ratio
Optional <code>ratio</code>. Supported values are auto, 1:1, 16:9, 9:16, 4:3, 3:4, 2:3, 3:2, 4:5, 5:4, 21:9, 1:4, 4:1, 1:8, and 8:1.
Image size
Optional <code>image_size</code> defaults to <code>1k</code>; available values are <code>0.5k</code>, <code>1k</code>, <code>2k</code>, and <code>4k</code>.
Generation controls
Optional controls include <code>web_search</code> and case-sensitive <code>thinking_level</code> values <code>High</code> or <code>Minimal</code>.
Authorization and callback
Send the <code>Authorization</code> header. An optional <code>custom_callback_url</code> must be a publicly accessible HTTPS URL.
Pricing is per generated image and varies by requested output size.
Nano Banana 2 API pricing and task behavior
0.5K and 1K pricing
0.5K costs 3 tokens ($0.060) per image. 1K costs 3.3 tokens ($0.066) per image.
2K and 4K pricing
2K costs 5 tokens ($0.100) per image. 4K costs 7.5 tokens ($0.150) per image.
Asynchronous result
Submission returns <code>img_uuid</code>, not the final image. Poll the task-detail endpoint or handle callback events to obtain the terminal result.
Integrate Nano Banana 2 in three steps
1
1. Submit a generation request
POST JSON to
https://api.goenhance.ai/api/v1/images/generations with authorization, model, prompt, and any optional ratio, size, grounding, reasoning, or callback fields. 2
2. Persist img_uuid
Read
data.img_uuid from a successful response and associate it with your application request. 3
3. Poll or receive callbacks
Poll
GET /api/v1/jobs/detail or process callback events. GoEnhance documents up to three callback retries when your endpoint does not return HTTP 200, with a three-second timeout per attempt.Build controlled image-generation workflows while your application manages prompts, review, storage, and delivery.
Nano Banana 2 API use cases
Editorial illustration
Turn structured article briefs into candidate visuals for a human review queue.
Product storytelling
Generate scene concepts from product descriptions for later brand and compliance review.
Campaign variations
Create prompt and aspect-ratio variants while tracking each asynchronous task independently.
Localization workflows
Produce region-specific visual concepts from localized prompts without changing your task-handling architecture.
Concept development
Explore characters, props, environments, and art directions before committing to production assets.
Automated creative pipelines
Connect callbacks to moderation, approval, storage, or downstream asset-processing services.
Practical answers about pricing, parameters, asynchronous delivery, and Google API intent.
