Create Task
POST
/ent/v2/extendQuery Creations
GET
/ent/v2/tasks/{id}/creationsOne-click Solutions
Authorizationstring*Replace {your api key} with your token
Token {your api key}imagesstringReference image for extending the video to a specified last frame
The model uses the image provided in this parameter as the last frame to extend the video.
Note 1: Supports a Base64-encoded image or an image URL (ensure it is accessible);
Note 2: Only 1 input image is supported;
Note 3: Supported image formats: png, jpeg, jpg, and webp;
Note 4: The image aspect ratio must be less than 1:4 or 4:1;
Note 5: The image size must not exceed 50 MB;
Note 6: Please note that the byte length after Base64 decoding must be less than 10M, and the encoding must include an appropriate content-type string
data:image/pngwm_urlstringWatermark content, specified here as a watermark image URL
If watermarking is enabled but no custom watermark URL is provided, the default watermark "AI-generated content" is used
This parameter has no effect if no watermark is added
meta_datastringMetadata identifier, a JSON-formatted string. This is a pass-through field; you can use a custom format or the example format shown below:
{
"Label": "your_label",
"ContentProducer": "your_content_producer",
"ContentPropagator": "your_contetn_propagator",
"ProduceID": "your_product_id",
"PropagateID": "your_propagate_id",
"ReservedCode1": "your_reserved_code1",
"ReservedCode2": "your_reserved_code2"
}
If this parameter is empty, the metadata identifier generated by Vidu is used by default
callback_urlstringCallback protocol
You need to explicitly set callback_url when creating a task. The request method is POST. When the status of a video generation task changes, Vidu sends a callback request containing the task's latest status to this address. The callback request body has the same structure as the response body of the Query Task API
The "status" returned in the callback includes the following states:
- processing: Task is being processed
- success: Task completed (if delivery fails, the callback is sent three times)
- failed: Task failed (if delivery fails, the callback is sent three times)
Vidu uses a callback signature algorithm for authentication. For details, see: Callback Signature Algorithm
video_urlstringAny video URL. Either this parameter or video_creation_id is required
resolutionstringVideo resolution. The default is 720p; available values: 360p, 540p, 720p, and 1080p
durationintegerExtension duration. The default is 5 s; available values are 1–7 s
watermarkbooleanWhether to add a watermark
- true: Add a watermark;
- false: Do not add a watermark;
Note: The watermark text is currently fixed as "AI-generated content". No watermark is added by default
video_creation_idstringVidu video ID. Either this parameter or video_url is required
wm_positionstringWatermark position. The default is bottom-left. The enum values are as follows:
- top_left: Top-left
- top_right: Top-right
- bottom_right: Bottom-right
- bottom_left: Bottom-left
- This parameter has no effect if no watermark is added
modelstring*Model name
Available values: viduq2-turbo, viduq2-pro
promptstringExtension prompt, used to control the content of the extended video
payloadstringPass-through parameter
No processing is performed; the data is only transmitted
Note: Up to 1048576 characters
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/extend' \
--header 'Authorization: Token {your api key}' \
--header 'Content-Type: application/json' \
--data '{
"images": "data:image/png",
"wm_url": "string",
"meta_data": "string",
"callback_url": "string",
"video_url": "your_video_url",
"resolution": "720p",
"duration": 7,
"watermark": true,
"video_creation_id": "string",
"wm_position": "string",
"model": "viduq2-turbo",
"prompt": "your_prompt",
"payload": "string"
}'{
"task_id": "your_task_id",
"state": "created",
"model": "viduq2-turbo",
"video_url": "your_video_url",
"prompt": "your_prompt",
"duration": 7,
"resolution": "720p",
"credits": 6,
"created_at": "2025-08-29T06:48:29.368745805Z",
"payload": "",
"watermark": false
}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 generated by Vidu
statestringProcessing status
Available values:
created: Created successfully
queueing: Task is queued
processing: Task is being processed
success: Task succeeded
failed: Task failed
promptstringPrompt used for this task
imagesstringImage parameter used in this request
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
payloadPass-through parameter provided in this request
watermarkbooleanWhether a watermark is used for this task
creditsintegerNumber of credits used for this request
created_atstringTask creation time
video_creation_idstringVidu video ID used in this request. Only one of this field and video_url is present
video_urlstringVideo URL used in this request. Only one of this field and video_creation_id is present
resolutionstringResolution of the output video for this task
durationintegerExtension duration for this task
wm_urlstringWatermark content used for this task
wm_positionstringWatermark position used for this task
meta_datastringMetadata identifier information used for this task
modelstringModel used in this request
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