ExploreModels
Pricing
Explore

Nano Banana 2.1 Edit

All image to image models

Nano Banana 2.1 Edit by Google transforms reference images using text instructions, with output resolutions up to 4K and optional video or PDF context.

Inference$ Commercial useFrom 2 credits per run

About Nano Banana 2.1 Edit

Nano Banana 2.1 Edit by Google transforms reference images using text instructions, with output resolutions up to 4K and optional video or PDF context.

image editingimage to imagephotorealismtypographytext rendering

Pricing

A run with the default settings costs 2 credits. The exact cost updates in the playground as you change settings, and you're only charged when you press Run. Failed runs are refunded automatically.

Inputs

prompttextarearequired

The prompt for image editing.

num_imagesintegerdefault: 1

The number of images to generate.

seedinteger

The seed for the random number generator.

aspect_ratioselectdefault: "auto"

The aspect ratio of the generated image. Supports extreme ratios: 4:1, 1:4, 8:1, 1:8.

Options: auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 4:1, 1:4, 8:1, 1:8

output_formatselectdefault: "png"

The format of the generated image.

Options: jpeg, png, webp

safety_toleranceselectdefault: "4"

The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict.

Options: 1, 2, 3, 4, 5, 6

sync_modebooleandefault: false

If `True`, the media will be returned as a data URI and the output data won't be available in the request history.

image_urlsfile-list

The URLs of the images to use for image-to-image generation or image editing. Optional when `video_url` or `pdf_url` is provided.

system_prompttextareadefault: ""

Optional system instruction that steers the model's persona and output style across the request. Leave blank to omit; when provided, it is sent as the system instruction to Gemini (or as a system message on OpenAI-compatible providers).

resolutionselectdefault: "1K"

The resolution of the image to generate.

Options: 1K

video_urlfile

Optional video to use as input context. Accepts an http(s)/data URL to a video file (downloaded and sent inline, max 15MB) or a YouTube URL (passed through to the model without downloading).

pdf_urlfile

Optional PDF document to use as input context. Accepts an http(s)/data URL (downloaded and sent inline, max 15MB).

limit_generationsbooleandefault: true

Experimental parameter to limit the number of generations from each round of prompting to 1. Set to `True` to to disregard any instructions in the prompt regarding the number of images to generate and ignore any intermediate images generated by the model. This may affect generation quality.

enable_web_searchbooleandefault: false

Enable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image.

thinking_levelselectdefault: "medium"

How much the model reasons before generating. Higher levels can improve complex compositions and use more thinking tokens.

Options: minimal, medium, high

More from Nano Banana 2.1

Nano Banana Pro
Nano Banana Pro

Nano Banana Pro is Google's new state-of-the-art image generation and editing model

realismtypography
image-to-image
Nano Banana 2
Nano Banana 2

Nano Banana 2 is Google's new state-of-the-art image generation and editing model

image-to-image
GPT Image 2.5 Sunburst Edit
GPT Image 2.5 Sunburst Edit

Editing built for the tightest control, edits scoped precisely to the instruction, with subject and composition preserved across many rounds of revision.

stylizedtransform
image-to-image
GPT Image 2.6 Sunburst Edit✦ new
GPT Image 2.6 Sunburst Edit

Editing built for the tightest control, edits scoped precisely to the instruction, with subject and composition preserved across many rounds of revision.

stylizedtransform
image-to-image
GPT Image 2 API
GPT Image 2 API

GPT Image 2, OpenAI's latest image model, is capable of making fine-grained, detailed edits to images.

gpt-image-2openai
image-to-image
Birefnet Background Removal V2
Birefnet Background Removal V2

bilateral reference framework (BiRefNet) for high-resolution dichotomous image segmentation (DIS)

background removalsegmentation
image-to-image
Nano Banana
Nano Banana

Google's famous original image generation and editing model

image-editing
image-to-image
GPT Image 2.5 Flare Edit
GPT Image 2.5 Flare Edit

Precise image editing that changes only what's asked, keeping subject, composition, and background intact, with reference subjects staying recognizable across styles and successive edits.

stylizedtransform
image-to-image
GPT Image 2.6 Flare Edit✦ new
GPT Image 2.6 Flare Edit

Precise image editing that changes only what's asked, keeping subject, composition, and background intact, with reference subjects staying recognizable across styles and successive edits.

stylizedtransform
image-to-image
Seedream 5.0 Pro Image Editing
Seedream 5.0 Pro Image Editing

Seedream 5.0 Pro is grounded, region-precise image editing model that changes one element while keeping the rest of the frame intact with layer separation, sketch completion, and up to 10 reference images.

realismtypography
image-to-image
SeedVR2
SeedVR2

Use SeedVR2 to upscale your images

upscale
image-to-image
FLUX.1 Kontext [pro]
FLUX.1 Kontext [pro]

FLUX.1 Kontext [pro] handles both text and reference images as inputs, seamlessly enabling targeted, local edits and complex transformations of entire scenes.

image-to-image