Upscale Image
upscale_imageUpscale images to 1K, 2K, or 4K size tiers using a Gemini image model. Re-renders the source at a higher resolution; use resize for exact pixel scaling.
Instructions
Upscale an image to a higher 1K/2K/4K size tier with a Gemini image model.
The source is re-rendered at a higher size tier with an instruction to reproduce it exactly. Fine details can differ from the source; for exact pixel scaling use transform_image(operation="resize").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Image model to use (default gemini-nano-banana-2.1). gemini-3-pro-image is the other 4K-capable option. | |
| image_path | Yes | Path to the image to upscale | |
| output_format | No | Output format (png, jpeg, webp) | png |
| upscale_factor | No | "x2" (double) or "x4" (quadruple). The output is the smallest of 1K/2K/4K that fits, capped at 4K. | x2 |
| output_filename | No | Custom output filename (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||