Authorization: Bearer ********************
{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}
curl --location --request POST 'https://api.ecovai.cn/v1/audio/speech' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: multipart/form-data' \
--data-raw '{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}'
{
"text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}