POST
/
v1
/
voice-generation
/
generate-voice
curl --request POST \
  --url https://api.elevenlabs.io/v1/voice-generation/generate-voice \
  --header 'Content-Type: application/json' \
  --data '{
  "gender": "female",
  "accent": "<string>",
  "age": "young",
  "accent_strength": 123,
  "text": "<string>"
}'
This response does not have an example.

Headers

xi-api-key
string

Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Body

application/json

Response

200
audio/mpeg

Successful Response

The response is of type file.