upscale_image
Increase the resolution of an existing Flow project image by its media ID and save it to disk, with 2K output available at no cost and 4K on paid plans.
Instructions
Upscale an image that already exists in the open Flow project, by its media id, and save it to disk. 2K is free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | cover | |
| size | No | Exact size, "WIDTHxHEIGHT" format. | |
| target | No | Ask Flow to upscale the result: "2k" (free, about 2x the native size, ~10 s per image) or "4k" (paid plans). It is the only way to get real detail beyond native; a larger size alone just interpolates. | 2k |
| media_id | Yes | Media id, as returned by generate_image. | |
| out_file | Yes | Output path. The extension decides the format. | |
| background | No | Padding color for fit="contain", as a CSS color ("#0f172a", "black"). White by default. |