Nano Banana API
Generate images from text prompts through GoEnhance with a straightforward REST endpoint, flexible aspect ratios, and asynchronous delivery. GoEnhance provides independent API access and is not Google or Google’s official Gemini API.
Create an API Key
Text-to-Image Generation for Developer Workflows
Generate from a Required Prompt
Send a required prompt to create a new image, then choose a supported output ratio for the destination where the asset will be used.

Async Delivery for Production Apps
Persist the returned img_uuid, poll task details, or receive processing, success, and failed updates at a public HTTPS callback URL.

Validate the prompt, ratio, authorization, and callback settings before submission.
Nano Banana API Parameters
Endpoint
Send POST requests to <code>https://api.goenhance.ai/api/v1/nano-banana</code>.
Authorization
Include your GoEnhance API credential in the <code>Authorization</code> header.
Prompt
Provide the required text prompt describing the image you want to generate.
Output Ratio
Choose <code>auto</code>, <code>1:1</code>, <code>16:9</code>, <code>9:16</code>, <code>4:3</code>, <code>3:4</code>, <code>2:3</code>, or <code>3:2</code>.
Callback URL
Optionally provide a publicly accessible HTTPS URL for task-status notifications.
Async Response
A successful submission returns an <code>img_uuid</code> that your application uses to retrieve the final result.
Plan every generation request around the documented per-image charge and asynchronous response.
Clear Pricing and Task Handling
2 Tokens per Image
Nano Banana API pricing is 2 tokens per generated image, equal to $0.04 per image in the GoEnhance documentation.
Task Identifier Response
Store the returned <code>img_uuid</code> with your application job so you can resolve the terminal image result.
Callback Retry Behavior
If your callback does not return HTTP 200, GoEnhance retries notification up to three times with a three-second timeout per attempt.
Integrate Nano Banana in Three Steps
1
1. Prepare the Prompt
Write a specific generation prompt, select a supported aspect ratio, and optionally configure a public HTTPS callback URL.
2
2. Submit and Persist
POST the JSON payload with authorization, then save the returned
img_uuid before responding to your user. 3
3. Resolve the Result
Poll task details or validate callback events until the job reaches success or failed, then store the output URL or surface the failure safely.
Add prompt-based image creation to products and internal creative systems.
Nano Banana API Use Cases
Campaign Creative
Generate original visual directions for ads, banners, and seasonal campaign concepts.
Product Backdrops
Create scene concepts and backgrounds for product-focused marketing workflows.
Editorial Illustration
Turn written themes into supporting imagery for articles, guides, and newsletters.
Content Localization
Generate region-specific visual concepts from localized prompts for international campaigns.
Creative Prototyping
Explore multiple art directions before committing to a production design.
Automated Asset Pipelines
Connect prompt generation and asynchronous task handling to repeatable content workflows.
Practical answers about pricing, integration, and Google API search intent.
