POST
/
v1
/
sound-generation
from elevenlabs import ElevenLabs

client = ElevenLabs(
    api_key="YOUR_API_KEY",
)
client.text_to_sound_effects.convert(
    text="Spacious braam suitable for high-impact movie trailer moments",
)
This response does not have an example.

Pricing

The API is charged at 100 credits per automatic generation, or 20 credits per second when duration is specified.

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.