Перейти к содержимому

Upscale a video

POST
/videos/upscale
curl --request POST \
--url https://example.com/videos/upscale \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form video=example \
--form 'prompt=Upscale this video, keep every detail sharp' \
--form upscale_factor=1.5 \
--form creativity=0

Video upscaling (FLUX Video Upscale). Multipart: a video file (mp4), optional prompt, upscale_factor (1.5–3.0, default 1.5) and creativity (0.0–1.0, default 0.0). Billed per megapixel-second of the output — the exact amount depends on the source, so the charge is settled from the actual upstream cost once the job completes. Returns a Video object; poll GET /videos/{id}.

Media typemultipart/form-data
Body_create_video_upscale
object
video
required
Video

Source mp4 to enlarge

string
prompt
Prompt
string
default: Upscale this video, keep every detail sharp
upscale_factor
Upscale Factor
number
default: 1.5
creativity
Creativity
number
0

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}