upscale_image
Upscale an existing generated image (from a prior generate_image call) to a higher resolution, via Flow's own Download panel -- the same "1K/2K/4K" picker shown when downloading an image in the Flow UI.
account must be whichever farm account's project owns media_id (generate_image
returns media_ids scoped to whichever account handled that job -- reuse the same
account here).
target_resolution: "2K" or "4K". Not every image supports upscaling (depends on
the source model/size) and 4K may be locked behind a paid plan tier on some farm
accounts -- both cases come back as a clean error rather than a crash, so just
report it if that happens instead of retrying.
This is slower than generation (drives a real browser, ~15-30s) -- returns a
job_id to poll with check_job if it's not done within ~35s.
Returns {"media_id": <new upscaled mediaId>, "download_path": "/v1/media/....jpg",
"resolution": ...} when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| media_id | Yes | ||
| target_resolution | No | 2K |