Upscale a video
POST
/videos/upscale
const url = 'https://example.com/videos/upscale';const form = new FormData();form.append('video', 'example');form.append('prompt', 'Upscale this video, keep every detail sharp');form.append('upscale_factor', '1.5');form.append('creativity', '0');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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=0Video 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}.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
Body_create_video_upscale
object
video
required
Video
Source mp4 to enlarge
string
prompt
Prompt
string
upscale_factor
Upscale Factor
number
creativity
Creativity
number
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}