Skip to Content

TTS Text-to-Speech

Endpoint

POST https://123api.co/v1/audio/speech

Request Example

curl --request POST \ --url https://123api.co/v1/audio/speech \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "tts-1", "voice": "alloy", "input": "Welcome to 123API." }'

Common Parameters

FieldTypeDescription
modelstringExample: tts-1
voicestringSelected voice
inputstringText to synthesize
formatstringOptional output format if supported

Notes