upscale_video
Upscale an existing generated video (from a prior generate_video call) to a higher resolution -- the same "270p/720p/1080p/4K" choice Flow offers when downloading.
Counts against the weekly free video limit (3 a week without a subscription), like
any other video operation, and spends the account's own Flow credits.
account: the Google account whose project owns media_id. Do not guess it and do not
ask the user: the generate_video result you already have carries it in the
`account_used` field -- pass that value verbatim. A media_id only exists inside the
project of the account that produced it, so any other account returns a clean error.
target_resolution: "1080p" or "4K". 4K may be locked behind a paid plan tier on some
accounts -- comes back as a clean error rather than a crash, just report it.
Slower than generation: it is kicked off and then polled like a normal video
generation -- returns a job_id to poll with check_job if it is not done within ~40s.
Returns {"media_id": <new upscaled mediaId>, "download_path": "/v1/media/....mp4",
"resolution": ...} when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| media_id | Yes | ||
| target_resolution | No | 1080p |