⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · Try Now
curl --request POST \
--url https://modelslab.com/api/v6/voice/voice_upload \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"name": "<string>",
"init_audio": "<string>",
"language": "english",
"base64": false,
"gender": "male",
"thumbnail": "<string>"
}
'{
"status": "success",
"message": "<string>",
"voice_id": "<string>"
}Upload an audio file and retrieve a voice_id for use with the Voice-cloning endpoint.
curl --request POST \
--url https://modelslab.com/api/v6/voice/voice_upload \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"name": "<string>",
"init_audio": "<string>",
"language": "english",
"base64": false,
"gender": "male",
"thumbnail": "<string>"
}
'{
"status": "success",
"message": "<string>",
"voice_id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
POST request to below endpoint and pass the required parameters as a request body.
--request POST 'https://modelslab.com/api/v6/voice/voice_upload' \
{
"key":"",
"name":"Jacob",
"init_audio":"https://pub-f3505056e06f40d6990886c8e14102b2.r2.dev/audio/jacob.wav",
"language":"english"
}
API key to authorize the request
Display name assigned to the voice being uploaded
URL of audio file to upload. MP3/WAV, 10-25 seconds for optimal results
Language of the voice
english, arabic, spanish, german, czech, brazilian portuguese, chinese, dutch, french, hindi, hungarian, italian, japanese, korean, polish, russian, turkish Whether audio file is provided as base64 string
Gender of the audio
male, female Thumbnail image URL for the audio
Was this page helpful?