Models

Loading...

ElevenLabs Sound Effects API

Generate sound effects from text descriptions using ElevenLabs

Endpoint

POST https://api.hedra.com/v3/models/elevenlabs-sound-effects

Example request

curl -X POST "https://api.hedra.com/v3/models/elevenlabs-sound-effects" \
  -H "Authorization: Key $HEDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": {"prompt": "a cinematic shot of a city at dusk"}}'

Parameters

textstringrequired

Generation prompt.

duration_msintegerrequired

Length of the generated sound, in milliseconds. Billed as whole seconds, rounded up. From 500 to 30000.

prompt_influencenumber

How literally the model reads the description; higher values track it more closely and lower values leave the model more latitude. From 0 to 1.

loopboolean

Generate a sound that loops seamlessly end to end.