Skip to main content
POST
/
v1
/
audio
/
speech
Text-to-Speech
curl --request POST \
  --url https://utoken-test.uuzu.com/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": "<string>",
  "response_format": "mp3",
  "speed": 1
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.utoken.wgame-hk.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use Bearer Token authentication Format: Authorization: Bearer sk-xxxxxx

Body

application/json
model
string
required
Example:

"tts-1"

input
string
required

Text to convert

Maximum string length: 4096
voice
enum<string>
required
Available options:
alloy,
echo,
fable,
onyx,
nova,
shimmer
response_format
enum<string>
default:mp3
Available options:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number
default:1
Required range: 0.25 <= x <= 4

Response

200 - audio/mpeg

Success - Audio generated

The response is of type file.