Skip to content

ElevenLabs Sound Effects v2

Generates a sound effect from a description.

Model ID elevenlabs-sound-effects-v2
Task text-to-sound
Output audio
Family ElevenLabs
Status Active

Prices are live, so this page does not show them. GET /v1/models/elevenlabs-sound-effects-v2 returns the published price (price), and POST /v1/quotes returns the binding maximum for one request, with the processor that will run it. You are never charged more than the quoted maximum, and failed work is free. See Pricing and quotes.

Send these in input. Omitted parameters take their default; unknown parameters are refused with 422 parameter_unknown. The same schema is input_schema in GET /v1/models/elevenlabs-sound-effects-v2.

Name Type Default Allowed Required Description
prompt string 1 to 1000 characters Yes Describe the sound: what makes it, where, and how it changes.
duration number or “auto” 5 0.5 to 30, in steps of 0.1 No Length of the effect in seconds.
loop boolean false No Make the effect loop seamlessly.
prompt_influence number 0.3 0 to 1, in steps of 0.05 No Higher follows the description more literally, with less variation.
format string mp3_128 mp3_128, mp3_192 No MP3 at 192 kbps is larger and clearer.

Price the request first. A quote is free and starts nothing:

Quote
curl https://api.halationlab.ai/v1/quotes \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"model": "elevenlabs-sound-effects-v2",
"input": {
"prompt": "Footsteps on gravel, then a wooden door creaks open",
"duration": 5
}
}
JSON

Then start it, paying at most MAX_COST tokens. If the price is higher, nothing starts and the 402 max_cost_exceeded answer carries the quote:

Generate
MAX_COST=${MAX_COST:?Set MAX_COST to the most you will pay, in tokens}
curl https://api.halationlab.ai/v1/generations \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-H "Content-Type: application/json" \
-d @- <<JSON
{
"model": "elevenlabs-sound-effects-v2",
"input": {
"prompt": "Footsteps on gravel, then a wooden door creaks open",
"duration": 5
},
"max_cost": $MAX_COST
}
JSON