Nano Banana API:
Generate AI Images
Based on the Google Gemini 2.5 Flash/3 Pro Image model, it achieves high-quality image generation and editing through a simple REST API. Supports various scenarios such as text-to-image, multi-image editing, virtual dressing, product background changing, and more. ```
What is Nano Banana?
Nano Banana is a unified API wrapper based on the Google Gemini image generation model. It simplifies and optimizes the Gemini 2.5 Flash Image and Gemini 3 Pro Image models, providing a more user-friendly interface and lower prices.
Ace Data Cloud offers lower prices than the official (about 1/3 of the official price), while providing higher concurrency support, dedicated customer service, and 7×24 hours of stability assurance. No need to deal with the complex configurations of Google Cloud; it's ready to use.
Core Capabilities of Nano Banana API
Text-to-Image and Multi-Image Editing, covering the complete workflow of image creation
High-Quality Text-to-Image
Input detailed text descriptions (subject, atmosphere, lighting, lens), and generate professional-grade high-quality images. Suitable for brand visuals, product posters, cover images, and more.
Multi-Image Joint Editing
Upload multiple images (e.g., portrait + clothing), and the AI will intelligently merge them. Supports advanced editing operations such as virtual try-ons, product placements, and scene compositions.
Virtual Dressing
Provide portrait photos and clothing PNGs, automatically completing the dressing effect. Very suitable for e-commerce clothing displays and rapid expansion of live stream images.
Product Scene Replacement
Place white-background product images into real scenes (wooden table, grass, bathroom, office desk), making detail pages richer and more lively.
Attribute Replacement
Change materials, colors, and styles. Change bags to leather, drinks to different flavors, shoes to different colors—making visual SKU testing easier.
Asynchronous Webhook
Set the callback_url, and results will be automatically pushed after the task is completed. No polling required, suitable for batch production scenarios.
Showcase of AI Generated Works
The following images were all generated by the Nano Banana API—what you see is what you get
Morning Light Coffee Cup
nano-banana · 3:2 · Text-to-Image
Cyber City Skyline
nano-banana · 16:9 · Text-to-Image
Luxury Product Photography
nano-banana-pro · 1:1 · Text-to-Image
Golden Retriever Puppy in the Sun
nano-banana · 3:4 · Text-to-Image
💡 All images were generated through a single API call, without any post-processing
curl -X POST https://api.acedata.cloud/nano-banana/images \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "generate",
"prompt": "White porcelain coffee cup, morning light windowsill, 85mm lens, shallow depth of field, soft highlights, healing, clean",
"model": "nano-banana",
"aspect_ratio": "3:2"
}'
{
"success": true,
"task_id": "c1075552-a527-4a70-8d98-ef783f4087c1",
"trace_id": "3352b744-d17e-4d01-b1ef-a8c8e2ca3d2e",
"data": [{
"image_url": "https://cdn.acedata.cloud/d635720766.png"
}]
}
Quick Start—Get Started in 3 Minutes
A simple REST API using Bearer Token authentication. One request can generate your first AI image.
Get API Key
Register on Ace Data Cloud and obtain your Bearer Token from the console
Send POST Request
Send a request to /nano-banana/images with the prompt and parameters
Get Image URL
Receive a permanently accessible image URL—ready for production use
Applicable Scenarios
From e-commerce content to brand creativity—Nano Banana can cover these scenarios
E-commerce Clothing
Influencers take a single styling photo, and then use different clothing PNGs to batch generate "outfit images," quickly expanding store materials
Product Detail Pages
A single white-background product image can be synthesized into multiple scene images like wooden tables/grass/bathrooms, making detail pages richer and more persuasive
Brand Visuals
Quickly generate brand KVs, event posters, and cover images. Switch styles/holiday themes for the same main visual with one click
AI Agent Integration
Integrate with Claude, ChatGPT through MCP Server or Dify plugin to achieve natural language image generation
Advanced Features
Nano Banana is not just a simple text-to-image tool; it can also accomplish these advanced tasks
2D to 3D Figurines
Convert anime characters/portraits into commercial figurine models, displayed with packaging boxes
Product Exploded View
Show the internal structure of products, with metal parts and electronic components decomposed and suspended, showcasing technical aesthetics
Old Photo Restoration
Repair scratched and damaged black-and-white old photos, enhancing clarity and naturally coloring them
Multi-Element Images
Naturally merge models, products, backgrounds, and other materials into a high-quality image
3 Steps to Get Started Quickly
From registration to generating your first AI image, it takes less than 3 minutes
Register and Get API Key
Create a free account on Ace Data Cloud. Generate your Bearer Token from the API management console.
Initiate Your First API Call
Send a POST request with a text prompt to /nano-banana/images. You can use SDK, cURL, or any HTTP client.
Integration and Expansion
Embed the API into your application. Use Webhook for asynchronous processing, confidently expanding to production environments.
Why Choose Ace Data Cloud?
Compare with Google official and see our advantages
| Feature | Ace Data Cloud | Google Official |
|---|---|---|
| Price | As low as $0.0133 / call | $0.039 Interactive / $0.02 Batch |
| Activation Threshold | ✓ Ready to use | ✗ Requires Google Cloud configuration |
| Concurrency Support | ✓ High concurrency guarantee | ✗ Default quota is low |
| Webhook Callback | ✓ | Partial support |
| Task Polling | ✓ Free | — |
| MCP Server | ✓ | ✗ |
| Dify Plugin | ✓ | ✗ |
| Dedicated Customer Service | ✓ | ✗ |
| 7×24 Monitoring | ✓ | Partial support |
Which Model is Right for You?
Choose the right model based on your quality and speed needs
nano-banana
FastBased on Gemini 2.5 Flash Image. Faster generation speed, lower cost, suitable for batch content production and prototype validation.
- ✓ Faster response time
- ✓ As low as $0.0133 / call
- ✓ 7 aspect ratios
- ✓ Suitable for high-frequency scenarios
nano-banana-2
BalancedBased on Gemini 3.1 Flash Image. Pro-level quality + Flash speed, a cost-effective choice.
- ✓ Pro-level image quality
- ✓ Flash-level response speed
- ✓ As low as $0.0267 / call
- ✓ Suitable for most scenarios
nano-banana-pro
High QualityBased on Gemini 3 Pro Image. Highest quality output, supports 2K/4K resolution. Suitable for flagship products and high-demand scenarios.
- ✓ Highest image quality
- ✓ As low as $0.0333 / call
- ✓ Supports 1K/2K/4K resolution
