POST
/v1/audio/speechBase URL
https://api.linkinfra.aiAuthorization
Bearer TokenAuthorizationBearer <token>Authenticate requests with your API key in the request header:
Authorization: Bearer sk-your-api-keyNeed a key? Create one in the console
Request body
application/jsonmodelstringrequiredModel ID from the model catalog. Availability depends on your account group and configured channels.
inputstringrequiredText to convert into speech.
voicestringrequiredVoice name, such as alloy. Available voices depend on the model.
response_formatstringAudio format such as mp3, opus, aac, flac, wav, or pcm, subject to model support.
speednumberSpeech speed. Supported values depend on the upstream model.
Response
audio/mpeg200Successful responseaudiobinaryBinary audio data. Save it as a file in the requested format.