ExploreModels
Pricing
Explore

Smart Resize

All image to image models
Image to Image

Smart image resize to arbitrary dimensions, powered by Nano Banana Pro with vision-LLM-guided prompting for composition-aware recomposition. Crop, cropping, resize ads.

Inference$ Commercial useFrom 6 credits per run

About Smart Resize

Smart image resize to arbitrary dimensions, powered by Nano Banana Pro with vision-LLM-guided prompting for composition-aware recomposition. Crop, cropping, resize ads.

realismtypographyvisualads

Pricing

A run with the default settings costs 6 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

image_urlfilerequired

The URL of the source image to resize.

target_sizesstring-listrequired

The list of target dimensions to generate, each written as ``<width>x<height>`` (e.g. ``"1920x1080"``). One output image is produced per target size (multiplied by ``num_images_per_size``). The endpoint internally picks the smallest nano-banana-pro preset that fully covers each target so the final image is a pixel-perfect match with no upscaling.

prompttextareadefault: ""

Optional extra instruction that is forwarded to nano-banana-pro alongside the auto-generated resize prompt. Leave empty to let the model preserve the original image content as closely as possible.

num_images_per_sizeintegerdefault: 1

The number of nano-banana-pro variants to produce for each target size. The response images list will contain ``len(target_sizes) * num_images_per_size`` images in total.

resolutionselectdefault: "1K"

Hint for the minimum resolution tier to use internally. The smart-resize algorithm may pick a higher tier automatically when the requested target size is too large for this tier. This field does not affect the final output dimensions — those come from ``target_sizes``.

Options: 1K

output_formatselectdefault: "png"

The output image format.

Options: jpeg, png, webp

safety_toleranceselectdefault: "4"

The safety tolerance level applied to the inner nano-banana-pro /edit calls. Higher numbers loosen safety filtering.

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

seedinteger

Optional random seed forwarded to the inner nano-banana-pro /edit calls for reproducibility. The same seed is used for every target size when set.

sync_modebooleandefault: false

When True, the response contains data URIs in place of CDN URLs so the client can decode the images without an extra HTTP request. Adds latency for large outputs.

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
Nano Banana 2.1 Edit
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 image
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