All models

nano-banana

GoogleImage
Get your API key
nano-banana

Quickly create and edit visuals with text and reference images

nano-banana is the image generation and editing model for Google Gemini 2.5 Flash Image, designed to transform creative descriptions, product photos, and style references into visual assets. Its focus is on natural-language editing, multi-image blending, and subject consistency: you can create from text or progressively change scenes, adjust lighting, and replace objects around existing images, making it suitable for e-commerce and brand content that requires ongoing iteration.

GoogleModel brand
ImageModel type
Generation · EditingCreation method
STANDARD APIs · QUICK SETUP

Bring this model into your workflow

Submit requests to the public API at api.acedata.cloud using the documented parameters, then use the results in your application.

API host
api.acedata.cloud
model
nano-banana
Get your API key

Input parameters and result formats vary by service. Use the public API for this model and follow its guide for generation, task retrieval and editing operations.

Specifications and API features

Model equivalent
Google Gemini 2.5 Flash Image
Creation method
Text-to-image generation; text-guided editing with reference images
Editing control
Use natural language to specify changes to backgrounds, lighting, objects, and styles
Dedicated endpoint
POST /nano-banana/images;generate、edit
Dedicated endpoint aspect ratios
1:1、3:2、2:3、16:9、9:16、4:3、3:4
Dedicated endpoint quantity
count request range 1–4, default 1
Result delivery
The dedicated endpoint returns image_url; the OpenAI-style endpoint can return either URL or Base64 responses

Creation and editing capabilities correspond to Gemini 2.5 Flash Image; aspect ratios, quantities, and result fields differ according to the selected platform endpoint.

Core capabilities

Organize reference assets into new images

Submit product photos together with style references, and explain the role of each image, such as preserving the product shape, borrowing background tones, or adjusting the scene layout. nano-banana can generate blended images around these cues, making it suitable for exploring new compositions based on existing brand assets rather than starting from a blank description every time.

Make incremental changes with specific instructions

When editing, you can directly describe “change the background to a wooden table,” “make the lighting soft morning light,” or “replace an object in the image.” A more practical approach is to also specify which elements should be preserved and focus each edit on a clear objective, making it easier to compare before-and-after differences while reducing the cost of repeatedly reworking the entire image.

Create variations around the same subject

When a set of assets needs to repeatedly feature the same product or character, continue using the same reference image and keep the appearance, color scheme, and style descriptions fixed. The model helps maintain subject recognizability, allowing scenes, lighting, and composition to become the primary variables, which is suitable for visual exploration of serial posters, brand character stories, and storyboard concepts.

Applicable Scenarios

Product Scene Replacement and Advertising Concepts

Provide a clear product image, describe the target environment, camera angle, and lighting, and generate desktop, home, or outdoor scene assets. Then try different backgrounds and whitespace layouts around the same product to deliver a set of advertising candidate images for designers to review; product marks, packaging text, and key structures should be checked item by item before publication.

Brand Characters and Storyboard Drafts

Using character reference images as a foundation, describe the actions, environment, and mood of each scene to create visual drafts for a continuous story. Writing character appearance requirements separately from scene changes allows the objective of each image to be controlled more clearly. The deliverables are suitable for discussing shots and narrative direction, rather than directly replacing precise character design artwork.

Short-Copy Posters and Covers

First prepare an accurate title and a small amount of supporting text, then specify the hierarchy, background, and whitespace placement to generate event posters, menu concepts, or social covers. Simple layouts make it easier to check the relationship between text and visuals; after selecting a composition, gradually adjust colors and element positions, and use design tools to finalize text when strict typography is required.

How to Choose This Model

Consider the Base Model First for Everyday Iteration

If tasks mainly involve product scene replacement, character variations, and creative drafts, nano-banana's fast generation and natural-language editing positioning are a good fit. It corresponds to Gemini 2.5 Flash Image, while nano-banana-2 corresponds to Gemini 3.1 Flash Image; they are not different spellings of the same model. When mature templates already exist, the base model can be used first to validate the visual direction.

Do Not Mix Version Specifications for Detailed Deliverables

nano-banana-pro corresponds to Gemini 3 Pro Image and is another version option. For refined brand visuals, use the same set of assets and prompts to compare candidate results, then decide which model to use based on text, structure, and detail requirements. Do not directly apply the resolution or tool capabilities of Pro or nano-banana-2 to nano-banana; parameter combinations should also be checked again when switching.

Getting Started

First decide whether to generate or edit

Choose generate for text-based creation; choose edit to modify existing assets, use image_urls to provide reference images, and separately specify what to preserve and what to change.

Select the full ID and aspect ratio

Specify model=nano-banana, action, and prompt for /nano-banana/images; start with aspect_ratio=1:1, resolution=1K, and count=1, setting aspect ratio and resolution separately.

Save the result before the next round of edits

Get the image from data[].image_url; for asynchronous requests, query with task_id or receive a callback. When continuing edits, pass the selected image again and narrow the scope of changes for each round.

Suggestion for trying it: Change the background of a product photo

Input and goal

Keep the white sneakers, laces, and side logo from the original image, changing only the background to a bright indoor wooden floor, with light entering from a window on the right, and do not add text.

Review and next step

Check the shoe shape, laces, and logo item by item; in the next round, correct only the background or lighting to avoid changing both the product and the scene at once.

Usage limitations

  • Subject consistency is a creative aid and does not guarantee precise preservation of packaging structure, facial details, or trademark shapes every time. Reference images should be clear and have a defined purpose; avoid making conflicting requests across multiple assets at the same time. For image series, especially check whether the subject's appearance changes across different scenes.
  • Text in images is suitable for short headings and simple hierarchy. Do not rely on a single generation for long passages, dense small text, or strict typography requirements. After providing accurate copy, still check for typos, missing characters, spacing, and line breaks. For product information or event rules, proofreading is recommended during the final layout stage.
  • When editing iteratively, submit the previous image as the asset for the next round and restate the elements that need to be preserved; do not assume requests automatically remember history. Aspect ratio and resolution are also not the same concept; choosing landscape or portrait expresses only composition requirements and cannot determine the final output pixels.

Frequently Asked Questions

Is nano-banana Nano Banana 2?

No. nano-banana corresponds to Gemini 2.5 Flash Image; nano-banana-2 corresponds to Gemini 3.1 Flash Image. Nano Banana is the public nickname for the former. When integrating, use the full invocation ID to avoid mixing parameters and creative capabilities of different versions due to similar names.

How should text-to-image generation and editing be called?

When using /nano-banana/images, set action=generate and submit prompt for text-to-image generation; for editing, set action=edit, provide assets through image_urls, and describe the intended changes. It is recommended to explicitly specify model=nano-banana and describe the subject, scene, and elements that need to be preserved.

Can a product image and a style image be combined into one?

Multiple reference images can be used to guide blended creation. The key is to clearly state the purpose of each image, such as using the product image for its shape and the style image for its color palette and atmosphere. Choose assets with consistent goals whenever possible, specify the main subject in the prompt, and carefully check after generation whether product details have been affected by style changes.

Can an existing OpenAI image API integration be used?

You can use /openai/images/generations or /openai/images/edits, and explicitly set model=nano-banana. Submit prompt for generation; for editing, additionally submit the image URL or URL array for image. Asset fields and result fields differ between endpoints, so do not mix image_urls and image during integration.

How should generated results be handled by an application?

Image URLs from the dedicated endpoint are located in data[].image_url and can be used for subsequent display or download; the OpenAI-style endpoint returns URLs or Base64 data through data. The API also provides task-processing parameters such as async and callback_url. Applications should distinguish image results from task_id to avoid treating successful task submission as completed image generation.