POST /api/v1/generate/upload
Content-Type: multipart/form-data
Upload a short voice reference clip to obtain a voice_id that can be reused across TTS requests without re-uploading the audio file each time.
Supported models: higgs2p5, chatterbox, qwen3-tts (Base mode only)
Authentication
Send your API key in theAuthorization header as a Bearer token.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
model | string | Required | The TTS model to associate the voice with: higgs2p5, chatterbox, or qwen3-tts. |
voice_reference_file | file | Required | Voice reference audio file (WAV or MP3 recommended). |
Response
voice_id as the voice_id parameter in subsequent Generate Audio or Stream Audio requests.