Public API v1
Synthesize text in a cloned voice
Zero-shot voice cloning. Upload a reference clip via POST /v1/upload, then pass its refFileId plus the exact refText (transcript of that clip) to synthesize text in that voice. Pass engine ("v3" default, "v4" premium) to choose the cloning engine; billing carries that engine's multiplier. Tokens are deducted upfront from text. Returns a presigned audioUrl.
post/api/v1/clone
Request body
Example request
{
"text": "Xin chào, đây là giọng nói được nhân bản.",
"refFileId": "uploads/user-123/1716000000000_abc123.wav",
"refText": "Đây là nội dung chính xác của đoạn audio tham chiếu.",
"emotion": "natural",
"temperature": 1,
"engine": "v3"
}Response
The synthesized audio in the cloned voice, as a presigned URL.
Example response
{
"success": true,
"audioUrl": "https://s3.amazonaws.com/bucket/cloned/job.wav?X-Amz-Expires=3600&...",
"audioUrlExpiresIn": 3600,
"duration": 4.1,
"tokenCost": 60
}Changes
No recorded changes to this endpoint across all 1 revision of this API.