Model Version | Feature | Duration (seconds) | Resolution | Style | Generation Time (seconds) | Unit Price (ptc) |
---|---|---|---|---|---|---|
Vidu-1.5 | Head-to-tail frame video generation (headtailimg) | 4 | 360 | General | 30 | 0.25 |
4 | 720 | General | 90 | 0.625 | ||
4 | 1080 | General | 320 | 1.25 | ||
8 | 720 | General | 250 | 1.25 |
vidu-high-performance
and stable
must be provided. When the version is set to 1.5, these parameters are optional. These two parameters do not affect the generation quality and only need to be transmitted as required.{
"type": "headtailimg2video",
"model_version": "1.5",
"input": {
"prompts": [
{
"type": "text",
"content": "两个人拥抱"
},
{ // first image
"type": "image",
"content": "https://test-ss-images.s3.ap-southeast1.amazonaws.com/tmp/prompt-300k.jpeg"
},
{ // last image
"type": "image",
"content": "https://test-ss-images.s3.ap-southeast1.amazonaws.com/tmp/prompt-300k.jpeg"
}
]
},
"output_params": {
"sample_count": 1,
"resolution": "512",
"movement_amplitude": "auto",
"duration": 4
},
"moderation": false
}
curl --location --request POST 'https://api.302.ai/vidu/ent/v1/tasks' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "headtailimg2video",
"model_version": "1.5",
"input": {
"prompts": [
{
"type": "text",
"content": "两个人拥抱"
},
{ // first image
"type": "image",
"content": "https://test-ss-images.s3.ap-southeast1.amazonaws.com/tmp/prompt-300k.jpeg"
},
{ // last image
"type": "image",
"content": "https://test-ss-images.s3.ap-southeast1.amazonaws.com/tmp/prompt-300k.jpeg"
}
]
},
"output_params": {
"sample_count": 1,
"resolution": "512",
"movement_amplitude": "auto",
"duration": 4
},
"moderation": false
}'
{}