Overview
Endpoint and authentication
Base URL:
Send
Authorization: Bearer YOUR_API_KEY with each request. Send Content-Type: application/json when creating a task.
Request examples
Generate audio
Voice over a video
Dub a video and request both subtitle sets
include_video: false or omit it to receive the dubbed audio and any requested subtitles.
Separate audio tracks
Parameters
Required when
request_type is callback. Use a public HTTPS URL that receives completion events. See Webhooks.Response format
Savedata.taskId from the submit response. Poll with that ID or use request_type: "callback" with your callback_url. Continue polling while data.state is processing. Read the result on success, or read failCode and failMsg on failed.
extraResults is omitted when there are no additional results. A successful webhook carries the same result fields. Platform timing fields such as createTime, completeTime, and costTime are in milliseconds. Use final_duration for billable seconds.
Billing
Divide
final_duration by 60 and multiply by the applicable rate. For example, eight billable seconds of dubbing cost $0.08 with audio output or $0.12 with audio and video output. Audio separation sums usage across returned tracks before rounding to a whole second. The request total is rounded up to the nearest $0.001 after any applicable account discount. See API Pricing for current rates.
MCP integration
The schema declares audio, video, and SRT fields inmcp.attachments. Its mcp.result uses audio_artifacts_v1. On success, get_generation returns the primary media in download_urls and includes available final_duration and extraResults. The subtitle groups contain SRT and JSONL download links. Each audio track label uses result_index to point into download_urls. See MCP model contracts.