POST
/
v1
/
audio
/
speech
curl --request POST \
  --url https://api.shuttleai.com/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "input": "<string>",
  "voice": "<string>"
}'
{
  "chars": 123,
  "data": {
    "url": "<string>"
  },
  "expiresIn": 123,
  "model": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
input
string
required
voice
string

The voice to use for the generation > Voices can be found here

Response

200 - application/json
Model response
chars
integer
data
object
expiresIn
integer
model
string