Photo Dance
POST /api/v1/photo-dance/submit
imageUrl is required and videoUrl is required.
Required inputs
imageUrlstring- URL of the person photo.
videoUrlstring- Reference-video fileUrl returned by upload_files; maximum 30 seconds.
Edit the sample inputs for your own task before submitting.
# Set VIDMAGE_IDEMPOTENCY_KEY to a unique value for this task; preserve it for transport retries.
curl -X POST "https://vidmage.ai/api/v1/photo-dance/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"imageUrl":"https://vidmage.ai/assets/images/samples/blue-eyed-woman-sunlight.webp","videoUrl":"https://vidmage.ai/assets/models/hailuo-ai-video-generator/skincare-ad.mp4"}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Parameters and input rules2 fields
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
imageUrl | string | Yes | Not specified | URL of the person photo. No additional field constraint listed. |
videoUrl | string | Yes | Not specified | Reference-video fileUrl returned by upload_files; maximum 30 seconds. No additional field constraint listed. |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/photo-dance/query
Use the same Bearer API key. On completion, read the videoUrl result field.
curl -X POST "https://vidmage.ai/api/v1/photo-dance/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "videoUrl": "https://..." } }
