Skip to main content
POST
/
v1
/
tts
Text To Speech
curl --request POST \
  --url https://os.gan.ai/v1/tts \
  --header 'Content-Type: application/json' \
  --header 'ganos-api-key: <api-key>' \
  --data '{
  "voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "text": "<string>"
}'
This response does not have an example.

Authorizations

ganos-api-key
string
header
required

Use the API key generated from our website to programmatically interact with our endpoints. This key authorizes your requests, allowing you to access and utilize our services securely.

Body

application/json
voice_id
string<uuid>
required

Unique id of the voice. This can be fetched from the Get Voices endpoint.

text
string
required

Enter the text you want to convert to speech. The input must be between 40 and 500 (both inclusive) characters in length to ensure accurate and effective speech synthesis.

Response

Successful Response

The response is of type file.

I