Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data

Multipart form data for creating a voice clone from a direct audio upload. Maximum file size: 5MB for Telnyx, 20MB for Minimax.

audio_file
file
required

Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A. For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum size: 5MB.

name
string
required

Name for the voice clone.

Maximum string length: 255
language
string
required

ISO 639-1 language code from the Qwen language set.

Pattern: ^([Aa]uto|[a-z]{2,3}(-[A-Za-z0-9]{2,8})*)$
gender
enum<string>
required

Gender of the voice clone.

Available options:
male,
female,
neutral
provider
enum<string>
required

Voice synthesis provider. Must be telnyx.

Available options:
telnyx,
Telnyx
ref_text
string

Optional transcript of the audio file. Providing this improves clone quality.

label
string

Optional custom label describing the voice style.

model_id
enum<string> | null

TTS model identifier. Nullable/omittable — defaults to Qwen3TTS.

Available options:
Qwen3TTS,
null

Response

Voice clone created successfully from the uploaded audio.

Response envelope for a single voice clone.

data
object

A voice clone object.