Pricing
Compare models →Each run produces one edited image, and the price depends on the output resolution. Web search and image search are optional add-ons, each adding a fixed amount per run.
| Resolution | Price per run | With web search | With image search | With web search and image search |
|---|---|---|---|---|
| 0.5k | ||||
| 1k (default) | ||||
| 2k | ||||
| 4k |
- A run with default settings (1k, no web search, no image search) costs
$0.07$0.063. - Turning on web search adds
$0.014$0.0126 per run at 1k, and turning on image search adds$0.014$0.0126 per run at 1k.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
imagesRequired | array | List of URLs of input images for editing. The maximum number of images is 14.Items: 0–14JSON schema{
"items": {
"type": "string"
}
} |
aspect_ratio | string | The aspect ratio of the generated image. If not specified, it is determined automatically from the input image.xxx-empty1:13:22:33:44:34:55:49:1616:921:91:44:11:88:1JSON schema{
"x-placeholder": "Select aspect ratio",
"x-clearable": true
} |
resolution | string | The resolution of the output image.0.5k1k2k4k"1k" |
enable_web_search | boolean | If enabled, the model will use web search to enhance the generation with real-time information.Default: false |
enable_image_search | boolean | If enabled, the model will use image search to enhance the generation with real-time information.Default: false |
output_format | string | The format of the output image.pngjpeg"png" |
README
Google Nano Banana 2 Edit
Nano Banana 2 Edit (Gemini 3.1 Flash Image) is Google’s advanced AI-powered image editing and generation model, designed to make visual transformation as intuitive as describing it in words.
Built on Google’s cutting-edge computer vision and generative research, it combines precision, flexibility, and semantic awareness for professional-grade editing.
Why Choose This?
- Natural language editing
Modify images using simple text instructions — the model understands context and relationships.
- Multi-image reference
Upload up to 14 reference images for complex edits and compositions.
- Multi-resolution support
Output in 1K, 2K, or 4K resolution based on your needs.
- Flexible aspect ratios
Multiple options including 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:4, 4:1, 1:8, and 8:1.
- Prompt Enhancer
Built-in tool to automatically improve your edit descriptions.
- Format choice
Export in PNG or JPEG format.
Parameters
| Parameter | Required | Description |
|---|---|---|
| images | Yes | Reference images to edit (max: 14, click "+ Add Item" to add more) |
| prompt | Yes | Text description of the desired edit |
| aspect_ratio | No | Aspect ratio: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:4, 4:1, 1:8, 8:1 |
| resolution | No | Output resolution: 0.5k, 1k (default), 2k, 4k |
| enable_web_search | No | Enable web search to enhance generation with real-time info (default: false) |
| enable_image_search | No | Enable image search to enhance generation with real-time info (default: false) |
| output_format | No | Output format: png (default), jpeg |
How to Use
- Upload reference images — add the images you want to edit (up to 14 images).
- Write your prompt — describe the edit clearly (e.g., "Change the man to a woman").
- Choose aspect ratio (optional) — select a preset or leave empty for default.
- Select resolution — choose 1K, 2K, or 4K based on your needs.
- Choose output format — PNG for transparency support, JPEG for smaller file size.
- Use Prompt Enhancer (optional) — click to automatically refine your description.
- Run — submit and download your edited image.
Pricing
Each run produces one edited image, and the price depends on the output resolution. Web search and image search are optional add-ons, each adding a fixed amount per run.
| Resolution | Price per run | With web search | With image search | With web search and image search |
|---|---|---|---|---|
| 0.5k | ||||
| 1k (default) | ||||
| 2k | ||||
| 4k |
- A run with default settings (1k, no web search, no image search) costs
$0.07$0.063.
- Turning on web search adds
$0.014$0.0126 per run at 1k, and turning on image search adds$0.014$0.0126 per run at 1k.
Best Use Cases
- Character Modification — Change attributes like gender, age, clothing, or appearance.
- Object Replacement — Swap elements within images while preserving context.
- Style Transfer — Apply different visual styles to existing images.
- Text Editing — Modify on-image text while maintaining design consistency.
- Scene Adjustment — Change backgrounds, lighting, or environmental elements.
Pro Tips
- Use clear, specific edit instructions for best results (e.g., "Change the man to a woman" rather than "modify the person").
- Start with fewer reference images (1–3) for simpler edits.
- More reference images can help with complex compositions but may affect stability.
- 2K outputs are charged at 1.5× the standard rate; 4K at 2× the standard rate.
- Try the Prompt Enhancer to automatically improve your descriptions.
Notes
- Both images and prompt are required fields.
- Maximum reference images: 14 (recommended: fewer images for better stability).
- If aspect_ratio is not selected, the model uses a default ratio.
- 2K resolution costs 1.5× and 4K resolution costs 2× the standard rate.
- Ensure your prompts comply with Google's Safety Guidelines.
Related Models
- Nano Banana 2 Text-to-Image — Generate images from text prompts.
- Nano Banana Pro Edit — Pro tier editing with enhanced quality.
- Nano Banana Pro Text-to-Image — Pro tier image generation.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Nano Banana 2 Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/google/nano-banana-2/edit for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "Enhance the uploaded images with realistic, high-end editorial retouching while preserving the original composition and identity of the subjects. Improve lighting balance, increase sharpness and texture clarity, clean up minor distractions in the background, and apply natural color grading. For the product image, make the mug look premium with subtle reflections and a cleaner background. For the portrait, smooth skin slightly, brighten the eyes, reduce harsh shadows, and give the scene a warm cinematic tone. Keep the edits photorealistic and suitable for 4K output.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/24/95ab42d2baf5.jpeg",
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/24/416924cbd3a2.jpeg"
],
"aspect_ratio": "1:1",
"resolution": "1k",
"enable_web_search": false,
"enable_image_search": false,
"output_format": "png"
}Nano Banana 2 Edit API — Frequently asked questions
What is the Nano Banana 2 Edit API?
Nano Banana 2 Edit is a Google model for image editing, exposed as a REST API on OpenSIAI. Google Nano Banana 2 Edit (Gemini 3.1 Flash Image) enables advanced image editing with 4K-capable output, fast iteration, and precise instruction following. Supports text translation, localization within images, and maintains subject consistency during edits. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Nano Banana 2 Edit API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/google/nano-banana-2/edit.
How much does Nano Banana 2 Edit cost per run or per second?
Nano Banana 2 Edit starts at $0.063 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Nano Banana 2 Edit accept?
Key inputs: prompt, images, aspect_ratio, resolution, enable_image_search, enable_web_search. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/google/nano-banana-2/edit.
How long does Nano Banana 2 Edit take to generate?
Reported generation time on OpenSIAI is around 44 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Nano Banana 2 Edit outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Google). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
