🎉 New Models Available: grok-4 now live!
→ Explore New Features
model
(string): The model to be used for text-to-speech conversion.input
(string): The input text to be converted to speech.voice
(string): The voice to be used for the speech synthesis.{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}
{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}
curl --location --request POST 'https://api.cometapi.com/v1/audio/speech' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}'