Generate a sound effect
generate_sound_effectA sound effect from a description, as an MP3 of 0.5 to 30 seconds; loop true makes one that loops without a seam (ambience, engines, hums). Costs credits: elevenlabs-sfx 1 per 2 seconds; without seconds the model picks the length, the job is held at 30 s and charged for what came back. Look in the free library first: search_assets with type audio. Waits about 45 s, then returns job_id for get_job.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_sound_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | ||
| prompt | Yes | The sound, up to 450 characters: "heavy wooden door creaking open, then slamming shut". | |
| seconds | No | ||
| max_credits | No | ||
| wait_seconds | No | ||
| idempotency_key | No | ||
| prompt_influence | No | How closely it keeps to the words (0.3 default). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| error | No | ||
| output | No | ||
| status | No | ||
| credits | No |