Vidu Q Video Models
Authorizationstring*Replace {your api key} with your API key
Token {your api key}modelstring*Model name
imagesarray*The start frame imageThe model will use the image provided in this parameter as the start frame to generate the video.Note 1: Accepts Base64-encoded image or image URL (make sure it is accessible).Note 2: Only accepts 1 image.Note 3: Supported formats: png, jpeg, jpg, webp.Note 4: The aspect ratio of the image must be less than 1:4 or 4:1.Note 5: The image size is limited to 50MB.Note 6: The byte length after Base64 decode must be less than 10MB, and the encoding must include an appropriate content type string, for base64,{base64_encode}normal
Authorizationstring*Replace {your api key} with your API key
Token {your api key}idstring*Task id
The id is returned upon the successful creation of a task by the Start Generating API
Authorizationstring*Replace {your api key} with your API key
Token {your api key}modelstring*Model name
imagesarray*An image to be used as the start frame of the generated video. The model will use the image provided via this parameter as the first frame to generate the video.Note 1: Accepts Base64-encoded image or image URL (ensure it is accessible).Note 2: Only 1 image is accepted.Note 3: Supported image formats: png, jpeg, jpg, webp.Note 4: The aspect ratio of the image must be less than 1:4 or 4:1.Note 5: The image size must not exceed 50MB.Note 6: Note that the byte length after base64 decode must be less than 10MB, and the encoding must contain an appropriate content type string. For base64,{base64_encode}normal
Authorizationstring*Replace {your api key} with your API key
Token {your api key}idstring*Task ID, returned by the Create Task API upon successful creation
Authorizationstring*Replace {your api key} with your token
Token {your api key}modelstring*Model name
imagesarray*Start frame image
The model will use the image passed in this parameter as the start frame to generate the video.Note 1: Supports passing a Base64-encoded image or an image URL (ensure it is accessible);Note 2: Only 1 image is supported;Note 3: Supported image formats: png, jpeg, jpg, webp;Note 4: The aspect ratio of the image 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 decode must be less than 10M, and the encoding must include an appropriate content type string, for base64,{base64_encode}normal
Authorizationstring*Replace {your api key} with your token
Token {your api key}idstring*Task ID, returned by the Create Task API upon successful creation
data:image/pngpromptstringText prompt
A textual description for video generation, with a maximum length of 20000 characters.
Note: If the is_rec parameter for recommended prompts is used, the model will ignore the prompt entered in this parameter.
audiobooleanWhether to use direct audio-video generation capability. Default: true. Enumerated values:
is_recbooleanWhether to use the recommended prompt.
true: System will automatically recommend a prompt and use its content to generate the video. false: The video will be generated based on user input prompt.durationintegerVideo duration.
viduq3-turbo: default is 5, available: 1 - 16
seedintegerRandom seed
When not provided or set to 0, a random number will be used instead.
Manually set values will use the specified seed.
resolutionstringResolution. The default value depends on the model and video duration:
payloadstringTransparent transmission parameters
No processing, only data transmission.
Note: Maximum of 1048576 characters
off_peakbooleanOff-peak mode. Default: false. Accepted values:
true: Generate the video in off-peak modefalse: Generate the video immediatelycallback_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 Creation API.
The "status" in the callback response includes the following states:
data:image/pngpromptstringText prompt
A textual description for video generation.
Note 1: Maximum length of 20000 characters.
Note 2: If the is_rec recommended prompt parameter is used, the model will ignore the prompt entered for this parameter.
audiobooleanWhether to use direct audio-video generation capability. Default: true. Enumerated values:
is_recbooleanWhether to use the recommended prompt.
true: System will automatically recommend a prompt and use its content to generate the video. false: The video will be generated based on user input prompt.durationintegerVideo duration.
seedintegerRandom seed
resolutionstringResolution (based on model & duration):
payloadstringtransparent transmission parameters
No processing, only data transmission, with a maximum length of 1048576 characters
off_peakbooleanoff peak mode, Defaults to false, accepted value: true false
true: off peak generate mode;false: normal generate mode;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:
data:image/pngpromptstringText prompt
A text description of the video to be generated.
Note 1: The length must not exceed 20000 characters
Note 2: If the is_rec recommended prompt parameter is used, the model will ignore the prompt entered in this parameter
audiobooleanWhether to use the direct audio-video generation capability. Default is true. Enumerated values:
is_recbooleanWhether to use the recommended prompt.
true: System will automatically recommend a prompt and use its content to generate the video. false: The video will be generated based on user input prompt.durationintegerVideo duration
Default is 5 for viduq3-pro-fast, available: 1 - 16
seedintegerRandom seed
When not passed or passed as 0 by default, a random number will be used instead
When set manually, the set seed will be used
resolutionstringResolution parameter. The default value depends on the model and video duration:
payloadstringTransparent transmission parameter
No processing, only data transmission
Note: Maximum 1048576 characters
off_peakbooleanOff peak mode. Default is false. Accepted values:
callback_urlstringCallback protocol
You need to actively set the callback_url when creating a task. The request method is POST. When the status of the video generation task changes, Vidu will send a callback request containing the latest status of the task to this address. The structure of the callback request content is the same as the return body of the Query Task API
The "status" returned by the callback includes the following states:
application/jsonResponse fields
idstringTask ID
statestringIt will be returned to a specific processing state:
created created task successfullyqueueing task in queueprocessing processingapplication/jsonResponse fields
idstringTask ID
statestringProcessing state
Accepted values:created created successfullyqueueing task in queueprocessing processingsuccess generation successfulfailed task failed
err_codestringapplication/jsonResponse fields
idstringTask ID
statestringProcessing state
Accepted values:created Task created successfullyqueueing Task in queueprocessing Task is being processedsuccess Task succeededfailed Task failed
err_codestringapplication/jsonResponse fields
task_idstringTask ID generated by Vidu
statestringIt will be returned to a specific processing state:
created created task successfullyqueueing task in queueprocessing processingapplication/jsonResponse fields
task_idstringTask ID
statestringIt will be returned to a specific processing state:
created created task successfullyqueueing task in queueprocessing processingapplication/jsonResponse fields
task_idstringTask ID generated by Vidu
statestringProcessing state
Accepted values:
created Task created successfully
queueing Task in queue
processing Task is being processed
success Task succeeded
failed Task failed
modelstringThe model name used for this call
promptstringThe prompt parameter used for this call
successfailed task failederr_codestringError code. See the error code table for details.
creditsintegerThe number of credits consumed by this task.
Unit: credits.
payloadstringThe payload parameter used for this call
off_peakbooleanWhether to use off_peak mode for this call
creationsarrayGenerated results
idstringCreation id, used to identify different creations
urlstringThe URL of the generated results, valid for 24 hours
cover_urlstringThe cover URL of the generated results, valid for 24 hours
watermarked_urlstringError code, see the error code table for details
creditsintegerThe number of credits consumed by this task
payloadstringThe payload (pass-through) parameter passed in for this task call
off_peakbooleanWhether off peak mode is used for this task call
creationsarrayGeneration results
idstringGeneration ID, used to identify different creations
urlstringCreation URL, valid for 24 hours
cover_urlstringCreation cover, valid for 24 hours
watermarked_urlstringError code, see the error code table for details
creditsintegerThe number of credits consumed by this task, unit: credits
payloadstringThe transparent transmission parameter passed in when this task was called
off_peakbooleanWhether off peak mode is used in this task call
creationsarrayGenerated results
idstringCreation ID, used to identify different creations
urlstringCreation URL, valid for 24 hours
cover_urlstringCreation cover, valid for 24 hours
watermarked_urlstringsuccessfailed task failedmodelstringThe model name used for this call
promptstringThe text prompt used for this call
imagesstringThe images used for this call
durationintegerThe video duration parameter used for this call
seedintegerThe random seed parameter used for this call
resolutionstringThe resolution parameter used for this call
payloadstringThe payload parameter used for this call
off_peakbooleanWhether off-peak mode is used for this call
creditsintegerThe credits used for this call
created_atstringTask creation time
successfailed task failedmodelstringThe model parameter used for this call
promptstringThe text prompt used for this call
imagesstringThe images used for this call
durationintegerThe video duration parameter used for this call
seedintegerThe random seed parameter used for this call
resolutionstringThe resolution parameter used for this call
payloadstringThe payload parameter used for this call
off_peakbooleanThe off_peak parameter used for this call
creditsintegerThe credits used for this call
created_atstringTask creation time
imagesstringThe image parameter used for this call
durationintegerThe video duration parameter used for this call
seedintegerThe random seed parameter used for this call
resolutionstringThe resolution parameter used for this call
payloadstringThe transparent transmission parameter passed in for this call
off_peakbooleanWhether off peak mode is used for this call
creditsintegerThe credits consumed by this call
created_atstringTask creation time
The URL of the watermarked generated results, valid for 24 hours
Watermarked creation URL, valid for 24 hours
Watermarked creation URL, valid for 24 hours
curl --request POST \
--url 'https://api.vidu.com/ent/v2/img2video' \
--header 'Authorization: Token {your api key}' \
--header 'Content-Type: application/json' \
--data '{
"model": "viduq3-turbo",
"images": "data:image/png",
"prompt": "The astronaut waved and the camera moved up.",
"audio": true,
"is_rec": true,
"duration": 5,
"seed": 0,
"resolution": "1080p",
"payload": "string",
"off_peak": true,
"callback_url": "string"
}'{
"task_id": "your_task_id_here",
"state": "created",
"model": "viduq3-turbo",
"images": ["https://prod-ss-images.s3.cn-northwest-1.amazonaws.com.cn/vidu-maas/template/image2video.png"],
"prompt": "The astronaut waved and the camera moved up.",
"duration": 5,
"seed": random_number,
"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}'{
"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"
}
]
}curl --request POST \
--url 'https://api.vidu.com/ent/v2/img2video' \
--header 'Authorization: Token {your api key}' \
--header 'Content-Type: application/json' \
--data '{
"model": "viduq3-pro",
"images": "data:image/png",
"prompt": "The astronaut waved and the camera moved up.",
"audio": true,
"is_rec": true,
"duration": 5,
"seed": 0,
"resolution": "1080p",
"payload": "string",
"off_peak": true,
"callback_url": "string"
}'{
"task_id": "your_task_id_here",
"state": "created",
"model": "viduq3-pro",
"images": ["https://prod-ss-images.s3.cn-northwest-1.amazonaws.com.cn/vidu-maas/template/image2video.png"],
"prompt": "The astronaut waved and the camera moved up.",
"duration": 5,
"seed": random_number,
"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}'{
"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"
}
]
}curl --request POST \
--url 'https://api.vidu.com/ent/v2/img2video' \
--header 'Authorization: Token {your api key}' \
--header 'Content-Type: application/json' \
--data '{
"model": "viduq3-pro-fast",
"images": "data:image/png",
"prompt": "The astronaut waved and the camera moved up.",
"audio": true,
"is_rec": true,
"duration": 5,
"seed": 0,
"resolution": "1080p",
"payload": "string",
"off_peak": true,
"callback_url": "string"
}'{
"task_id": "your_task_id_here",
"state": "created",
"model": "viduq3-pro-fast",
"images": ["https://prod-ss-images.s3.cn-northwest-1.amazonaws.com.cn/vidu-maas/template/image2video.png"],
"prompt": "The astronaut waved and the camera moved up.",
"duration": 5,
"seed": random_number,
"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}'{
"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"
}
]
}