Video Extender
POST /api/v1/video-extender/submit
videoUrl is required and prompt is required.
Required inputs
videoUrlstring- Source-video fileUrl returned by upload_files; maximum 20 seconds.
promptstring- Text description of how to continue the video.
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/video-extender/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"videoUrl":"https://vidmage.ai/assets/models/hailuo-ai-video-generator/skincare-ad.mp4","prompt":"Continue the forward camera movement as the road curves toward a glowing city skyline at dusk","duration":"5","resolution":"720p"}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Parameters and input rules4 fields
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
videoUrl | string | Yes | Not specified | Source-video fileUrl returned by upload_files; maximum 20 seconds. No additional field constraint listed. |
prompt | string | Yes | Not specified | Text description of how to continue the video. No additional field constraint listed. |
duration | string | No | "5" | Extension duration in seconds. Values: "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" · Default: "5" |
resolution | string | No | "720p" | Output resolution. Values: "480p", "720p", "1080p", "2k", "4k" · Default: "720p" |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/video-extender/query
Use the same Bearer API key. On completion, read the videoUrl result field.
curl -X POST "https://vidmage.ai/api/v1/video-extender/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "videoUrl": "https://..." } }