OpenAI's latest text-to-speech (TTS) model
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"model":"tts-1",
"input":"The quick brown fox jumped over the lazy dog.",
"voice":"alloy",
"response_format":"mp3",
"speed":1
}
Request Code Samples
curl --location --request POST 'https://api.maxapi.ai/v1/audio/speech' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model":"tts-1",
"input":"The quick brown fox jumped over the lazy dog.",
"voice":"alloy",
"response_format":"mp3",
"speed":1
}'
Responses
application/json Modified at 2024-07-19 16:18:37