Nano Banana 2 Edit API
Integrate reference-guided image editing through GoEnhance. Send one to nine source images with a prompt, choose an output size and ratio, then resolve the result by polling or HTTPS callback. GoEnhance provides independent API access and is not Google’s official Gemini API.
Create an API Key
Reference-Guided Editing for Developer Workflows
Prompt Plus Up to Nine Images
Provide a 1–2000 character prompt and one to nine accessible image URLs in image_list. Select a supported ratio and 0.5K, 1K, 2K, or 4K output size.

Async Results for Production Apps
A successful submission returns an img_uuid. Persist it, poll /api/v1/jobs/detail, or receive task-status events at a public HTTPS callback URL.

Validate the live request contract before submitting an edit.
Nano Banana 2 Edit API Parameters
Endpoint
Send POST requests to <code>https://api.goenhance.ai/api/v1/nano-banana-2/edit</code>.
Authorization
Include your GoEnhance API credential in the <code>Authorization</code> header.
Prompt
Provide a required edit instruction between 1 and 2000 characters.
Image List
Supply a required array of 1–9 image objects with accessible URLs.
Ratio
Choose <code>auto</code> or a documented ratio from <code>1:1</code> through wide formats such as <code>21:9</code>, <code>4:1</code>, and <code>8:1</code>.
Output Controls
Select <code>0.5k</code>, <code>1k</code>, <code>2k</code>, or <code>4k</code>; optionally set <code>web_search</code>, <code>thinking_level</code>, and a public HTTPS callback URL.
Pricing is per generated image and varies by requested output size.
Nano Banana 2 Edit API Pricing
0.5K and 1K
<code>0.5k</code> costs 3 tokens ($0.060) per image; <code>1k</code> costs 3.3 tokens ($0.066) per image.
2K and 4K
<code>2k</code> costs 5 tokens ($0.100) per image; <code>4k</code> costs 7.5 tokens ($0.150) per image.
Asynchronous Response
Submission returns an <code>img_uuid</code>, not the final image. Retrieve the terminal result by polling or callback.
Integrate Nano Banana 2 Edit in Three Steps
1
1. Prepare the Edit
Host one to nine source images at accessible URLs, write a precise prompt, choose the ratio and image size, and optionally configure a callback.
2
2. Submit and Store the ID
POST the JSON payload with authorization, validate the response, and persist the returned
img_uuid with your application job. 3
3. Resolve the Result
Poll the task-detail endpoint or validate callback events until the task succeeds or fails, then store the output or surface the failure safely.
Build image-editing features around explicit source assets and prompts.
Nano Banana 2 Edit API Use Cases
Product Scene Updates
Place supplied product imagery into a new setting while retaining source context.
Campaign Variations
Generate prompt-directed creative variations for seasonal and channel-specific campaigns.
Multi-Reference Composition
Use several source images when an edit depends on multiple visual references.
E-commerce Production
Automate background, styling, or presentation edits across catalog workflows.
Localized Creative
Adapt scene direction and visual context for regional campaigns from approved assets.
Creative Prototyping
Test new art directions from existing references before committing to production.
Answers about pricing, inputs, async delivery, and Google API intent.
