{
"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 ' \
--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
}'
{
"id": "string",
"type": "string",
"state": "string",
"model": "string",
"style": "string",
"moderation": true,
"input": {
"creation_id": "string",
"prompts": [
{
"type": "string",
"content": "string",
"negative": true
}
],
"seed": 0,
"enhance": true,
"multi_image_boost": true
},
"output_params": {
"sample_count": 0,
"duration": 0,
"aspect_ratio": "string",
"resolution": "string",
"movement_amplitude": "string"
},
"err_code": "string",
"creations_count": 0,
"model_version": "string",
"created_at": "string"
}