POST
/
elevenlabs
/
tts
curl --request POST \
  --url https://api.openmind.org/api/core/elevenlabs/tts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "text": "<string>",
  "voice_id": "<string>",
  "model_id": "<string>",
  "output_format": "<string>"
}'
{
  "response": "aSDinaTvuI8gbWludGxpZnk="
}

This endpoint generates speech from text using the Text to Speech (TTS) model developed by ElevenLabs.

Authorizations

x-api-key
string
header
required

Body

application/json
text
string
required

The text to convert to speech.

voice_id
string

The voice ID to use for the speech.

model_id
string

The model ID to use for the speech.

output_format
string

The output format of the audio data.

Response

200
application/json
Successful response
response
string

The base64 encoded audio data.