Create Task
POST
/ent/v2/upscale-new Query Creations
GET
/ent/v2/tasks/{id}/creationsOne-click Solutions
Authorizationstring*Replace {your api key} with your token
Bearer <YOUR_API_KEY>video_urlstringThe 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_idstringUnique 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_resolutionstringarget 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.
payloadstringtransparent transmission parametersNo processing, only data transmission,with a maximum length of 1048576 characters
callback_urlstringCallback 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).Vidu uses a callback signature algorithm for verification, check out the details here: Callback Signature
Authorizationstring*Replace {your api key} with your token
Token {your api key}idstring*The ID of the task, taken from the path.
{your_id}idstring*Task ID, returned upon successful creation by the Create Task API
curl --request POST \
--url 'https://api.vidu.cn/ent/v2/upscale-new ' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"video_url": "your_video_url",
"video_creation_id": "string",
"upscale_resolution": "1080p",
"payload": "string",
"callback_url": "string"
}'{
"task_id": "your_task_id_here",
"state": "created",
"video_url": "vidu1.0",
"video_creation_id": "your_video_url_here",
"upscale_resolution": "1080p",
"payload":"",
"credits":credits_number,
"created_at": "2025-01-01T15:41:31.968916Z"
}curl --request GET \
--url 'https://api.vidu.com/ent/v2/tasks/{your_id}/creations' \
--header 'Authorization: Token {your api key}' \
--header 'Content-Type: application/json'{
"id":"your_task_id",
"state": "success",
"err_code": "",
"credits": 4,
"payload": "",
"creations": [
{
"id": "your_creations_id",
"url": "your_generated_results_url",
"cover_url": "your_generated_results_cover_url",
"watermarked_url": "your_generated_results_watermarked_url"
}
]
}application/jsonResponse fields
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
application/jsonResponse fields
idstringTask ID
statestringProcessing status
Available values:
created Created successfully
queueing Task is queued
processing Task is processing
success Task succeeded
failed Task failed
err_codestringError code, see the error code table for details
creditsintegerNumber of credits consumed by this task, unit: credits
video_creation_idstringThe video creation id submitted for upscaling
upscale_resolutionstringThe resolution used for upscaling
payloadstringThe payload parameter used for this call
creditsintegerThe credits used for this call
created_atstringTask creation time
payloadThe pass-through parameter passed in this task call
bgmbooleanWhether BGM was used in this task call
off_peakbooleanWhether off-peak mode was used in this task call
creationsarrayGeneration results
idstringGeneration result ID, used to identify different generation results
urlstringGeneration result URL, valid for 24 hours
cover_urlstringGeneration result cover, valid for 24 hours
watermarked_urlstringWatermarked generation result URL, valid for 24 hours