Generate Videos/Images
Generate Photo Dance
The resources (image, video) generated by our API are valid for 7 days. Please save the relevant resources as soon as possible to prevent expiration.
Generate photo dance
POST https://devapi.vidnoz.com/v2/task/dance
Request Headers
Parameter | Required | Type | Description |
---|---|---|---|
Content-Type | true | string | Data Tranmission Type: multipart/form-data |
Request Attributes
Parameter | Required | Type | Description |
---|---|---|---|
photo | false | file | Uploaded image file (Preferred field),two upload methods are supported,choose either |
photo_url | false | string | Image URL,two upload methods are supported,choose either |
video | false | file | Uploaded video file (Preferred field),two upload methods are supported,choose either |
video_url | false | string | Video URL,two upload methods are supported,choose either |
music_id | false | int | ID returned from photo dance music list,no background music if not provided |
Response Attributes
Parameter | Type | Description |
---|---|---|
code | int | 200 |
message | string | Task Remark |
task_id | string | Task ID |
Example
Request Attributes
curl --request POST \
--url https://devapi.vidnoz.com/v2/task/dance \
--header "accept: application/json" \
--header "Authorization: Bearer $API_KEY" \
--form 'photo_url="https://static-alter1.vidnoz.com/image_to_video_effects/Jesus_Hug.jpg"' \
--form 'video_url="https://static-alter1.vidnoz.com/web/videos/Jesus_Hug.mp4"' \
--form 'music_id="1"' \
Response Attributes
{
"code": 200,
"message": "ok",
"data": {
"task_id": "ZVBEU3pwS0M3TFVHVWxYR2FnbG9nUT09"
}
}