download_image
Download an existing Flow image by media ID, optionally crop to exact dimensions or upscale, and save it to a chosen output file.
Instructions
Download an image that already exists in Flow by its media id, with optional cropping to an exact size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | cover | |
| size | No | Exact size, "WIDTHxHEIGHT" format. | |
| upscale | 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. | |
| 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. |