POST https://123api.co/v1/audio/speech
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."
}'| Field | Type | Description |
|---|---|---|
model | string | Example: tts-1 |
voice | string | Selected voice |
input | string | Text to synthesize |
format | string | Optional output format if supported |