Giảm 50% mô hình Vidu Q3 & Q3 Pro · Chỉ trên WaveSpeedAI | 20/5 – 2/6

Nano Banana Edit

google /

Nano-Banana is an advanced image generation and editing model that produces photorealistic or stylized visuals and performs precise inpainting, outpainting, and background replacement. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

image-to-image
Input

Kéo & thả hoặc nhấp để tải lên

preview
If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API. Due to variability in Google’s underlying compute resources, inference times can fluctuate significantly. As a result, synchronous requests may hit timeouts.
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Idle

Replace the stick in the girl's hand with a flame.

$0.038per run·~26 / $1

Next:

ExamplesView all

Change the background to the moon, and the boy is holding a round ball in his hand.

Change the background to the moon, and the boy is holding a round ball in his hand.

Replace the stick in the girl's hand with a flame.

Replace the stick in the girl's hand with a flame.

Create a professional e-commerce fashion photo. Select the blue floral dress from the first image and have the woman in the second image wear it. Generate a realistic full-body photo of the woman wearing the dress, with a yellow-tinted background scattered with bananas, and adjust the lighting and shadows to match the background.

Create a professional e-commerce fashion photo. Select the blue floral dress from the first image and have the woman in the second image wear it. Generate a realistic full-body photo of the woman wearing the dress, with a yellow-tinted background scattered with bananas, and adjust the lighting and shadows to match the background.

A natural spa-inspired skincare ad featuring Skin Formula Vitamin C Serum bottle placed on smooth stacked stones, soft mist in the background, sunlight streaming through tropical leaves, peaceful wellness aesthetic.

A natural spa-inspired skincare ad featuring Skin Formula Vitamin C Serum bottle placed on smooth stacked stones, soft mist in the background, sunlight streaming through tropical leaves, peaceful wellness aesthetic.

Dress the puppy in an astronaut's suit

Dress the puppy in an astronaut's suit

Related Models

README

Google Nano-Banana Edit

Nano-Banana Edit 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.

Try the New Version of Nano Banana!

🌟 Why it stands out

  • Natural Language Editing Modify images using simple text instructions — no masking, layering, or manual tools required.
  • Context-Aware Understanding Accurately interprets scene structure, spatial relationships, and object semantics for realistic results.
  • Style and Tone Preservation Keeps lighting, shadows, and texture consistent with the original image while applying changes seamlessly.
  • High Precision Control Excels at fine-grained edits such as color adjustments, object replacement, or composition shifts with minimal distortion.
  • Creative Versatility Suitable for concept art, photography, advertising design, and everyday content creation.

⚙️ How to use

  • Input: existing image + text prompt

  • Output: edited image (JPEG/PNG/WEBP)

  • Size: 1:1, 4:3, 16:9, 21:9, and so on.

  • Supports style transfer, relighting, background replacement, and object modification

  • Works with natural prompts like:

  • “Replace the cloudy sky with a clear sunset.”

  • “Add soft studio lighting and a modern background.”

  • “Turn the model’s outfit into a formal business suit.”

💰 Pricing

  • $0.038 per image

  • Commercial use allowed

💡 Best Use Cases

  • Marketing & Branding — Update campaign visuals without reshooting.
  • Product Photography — Adjust materials, lighting, or layout instantly.
  • Social Media & Content Creation — Generate multiple variations with minimal effort.
  • Artistic Design — Experiment with colors, styles, and compositions effortlessly.

📝 Notes

Please ensure your prompts comply with Google’s Safety Guidelines. If an error occurs, review your prompt for restricted content, adjust it, and try again.

Accessibility:This website uses AI models provided by third parties.

Nano Banana Edit API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/google/nano-banana/edit with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Nano Banana Edit below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/google/nano-banana/edit" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "aspect_ratio": "1:1",
    "output_format": "png",
    "enable_sync_mode": false,
    "enable_base64_output": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("google/nano-banana/edit", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "aspect_ratio": "1:1",
        "output_format": "png",
        "enable_sync_mode": false,
        "enable_base64_output": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "google/nano-banana/edit",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "aspect_ratio": "1:1",
    "output_format": "png",
    "enable_sync_mode": false,
    "enable_base64_output": false
}
)

print(output["outputs"][0])  # → URL of the generated output

Nano Banana Edit API — Frequently asked questions

What is the Nano Banana Edit API?

Nano Banana Edit is a Google model for image editing, exposed as a REST API on WaveSpeedAI. Nano-Banana is an advanced image generation and editing model that produces photorealistic or stylized visuals and performs precise inpainting, outpainting, and background replacement. 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 Edit API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/google/google-nano-banana-edit.

How much does Nano Banana Edit cost per run?

Nano Banana Edit starts at $0.038 per run. 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 Edit accept?

Key inputs: `prompt`, `images`, `aspect_ratio`, `enable_base64_output`, `enable_sync_mode`, `output_format`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/google/google-nano-banana-edit.

How long does Nano Banana Edit take to generate?

Average end-to-end generation time on WaveSpeedAI is around 28 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.

Can I use Nano Banana Edit outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Google). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.