Vidu API
Dashboard
Docs
Sign in

Upscale-pro

POST https://api.vidu.com/ent/v2/upscale-new

Request Header

FieldValueDescription
Content-Typeapplication/jsonData Exchange Format
AuthorizationToken {your api key}Replace {} with your API key

Request Body

FieldTypeRequiredDescription
video_urlStringOptionalThe URL of the video to be upscaled.
Requirements:
- URL must be accessible
- Supported container formats: MP4, FLV, HLS, MXF, MOV, TS, WEBM, MKV
- Supported video codecs: H.264, H.264 intra, H.265, AV1, H.266, MV-HEVC, MPEG2, VP8, VP9
- Maximum video duration: 300 seconds
- Frame rate must be below 60 FPS
video_creation_idStringOptionalUnique ID of the video generation task on Vidu.
- Must be retrieve creation_id from the GetGenaration API, request URL {/ent/v2/tasks/{id}/creations}
- Note: If both video_creation_id and video_url are provided, the system will prioritize video_creation_id and ignore video_url.
upscale_resolutionStringOptionalTarget resolution for upscaling.
- Default is 1080p. Accept values: 1080p, 2K, 4K, 8K.
- The resolution must be higher than the original video resolution, otherwise the task will fail.
payloadStringOptionaltransparent transmission parameters
No processing, only data transmission,with a maximum length of 1048576 characters
callback_urlStringOptionalCallback
When creating a task, you need to actively set the callback_url with a POST request. When the video generation task changes its status, Vidu will send a callback request to this URL, containing the latest status of the task. The structure of the callback request content will be the same as the return body of the GET Generation API.
The “status” in the callback response includes the following states:
- processing: Task is being processed.
- success: Task is completed (if sending fails, it will retry the callback three times).
- failed: Task failed (if sending fails, it will retry the callback three times).
curl -X POST -H "Authorization: Token {your_api_key}" -H "Content-Type: application/json" -d '
{
"video_url": "your_video_url",
"upscale_resolution": "1080p"
}' https://api.vidu.com/ent/v2/upscale-new

Response Body

FieldTypeDescription
task_idStringTask ID
stateStringIt will be returned to a specific processing state:
- created created task successfully
- queueing task in queue
- processing processing
- success generation successful
- failedtask failed
video_urlStringThe video URL submitted for upscaling
video_creation_idStringThe video creation id submitted for upscaling
upscale_resolutionStringThe resolution used for upscaling
payloadStringThe payload parameter used for this call
created_atStringTask creation time
{
"task_id": "your_task_id_here",
"state": "created",
"video_url": "your_video_url",
"video_creation_id": "your_creation_id_here",
"upscale_resolution":"1080p",
"payload":"",
"created_at": "2025-01-01T15:41:31.968916Z"
}