Voice Clone
POST /api/v1/voice-clone/submit
audioUrl is required and textContent is required.
Required inputs
audioUrlstring- URL of the reference voice sample.
textContentstring- Text to synthesize (max 1000 chars).
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/voice-clone/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"audioUrl":"https://vidmage.ai/templates/voices/alice.mp3","textContent":"Welcome to VidMage."}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Parameters and input rules2 fields
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
audioUrl | string | Yes | Not specified | URL of the reference voice sample. No additional field constraint listed. |
textContent | string | Yes | Not specified | Text to synthesize (max 1000 chars). Maximum length: 1000 |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/voice-clone/query
Use the same Bearer API key. On completion, read the audioUrl result field.
curl -X POST "https://vidmage.ai/api/v1/voice-clone/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "audioUrl": "https://..." } }