Sound effects
Generate sound effects and loopable ambient audio from text prompts.
Generate sound effects, Foley cues, and seamless loopable ambient audio from text prompts.
Primary agent path
Use the Universal Skill with the MCP tool beatra.audio.generate_sfx. The tool
is billable and returns an asynchronous task.
- If model constraints, output formats, or prices matter, call
beatra.models.listwithcapability: "sound_effects". Otherwise usemodel: "auto"or omitmodel(resolves toelevenlabs-sfx-v3). - Write a concrete acoustic prompt describing the sound, texture, and timing.
Omit
duration_secondswhen you want the model to pick a natural length, or pass an explicit duration between0.5and30.0seconds. - Create one opaque
client_request_idand submit the final arguments once. - Poll the returned task with
beatra.tasks.getuntil it is terminal.
AI guide
MCP integration guide for AI
For custom API integrations, copy this guide into Claude, Codex, or another coding assistant.
Tool arguments
prompt(required,1–2,000characters): text description of the sound effect, Foley action, UI cue, or ambient bed. Blank prompts or prompts over 2,000 characters are rejected before billing with422 invalid_request.model(optional, default"auto"):"auto"or"elevenlabs-sfx-v3".duration_seconds(optional,0.5–30.0seconds): target clip length. Omitduration_seconds(null) to let the model pick the optimal duration for the prompt. Explicit values below0.5or above30.0seconds are rejected before billing with422 invalid_request.loop(optional, boolean, defaultfalse): whentrue, generates a clip whose end transitions seamlessly back to its start — suited to game loops, room tone, and background ambience. To extend a loopable clip to an exact minute-scale duration afterward, pass the resulting artifact tobeatra.audio.processwithoperation: "loop"(see audio processing).prompt_influence(optional,0.0–1.0, default0.3): controls how tightly generation adheres to the prompt wording. Higher values follow the prompt more literally; lower values leave more acoustic room to the model.format(optional, default"mp3"):"mp3"(44.1 kHz),"wav"(24 kHz 16-bit mono PCM in a RIFFWAVEaudio/wavcontainer),"opus"(48 kHz), or"pcm"(raw 24 kHz 16-bit signed little-endian mono PCM,audio/pcm).model_options(optional, object): forward-compatible bag for model-specific extension options.
Models, controls, and cost
beatra.models.list with capability: "sound_effects" is the live source for
selectable models, parameter ranges, supported formats, and credit rates. Do
not hardcode prices in agent prompts.
Sound effects are prepaid by audio seconds (ceil(duration_seconds)) with
a minimum per-request floor:
elevenlabs-sfx-v3:13 creditsper second, minimum61 creditsper request.- When
duration_secondsis omitted, billing reserves 5 seconds (65 credits). - Explicit
0.5–4.0second clips reserve the61-credit minimum; a10-second clip reserves130 credits; a30-second clip reserves390 credits.
Result
When the task succeeds, output carries the generated audio artifact:
Task status and recovery
queued and running are not failures. Keep polling the same task_id; never
submit a replacement because work is still running. On a lost create response,
retry the identical arguments with the same client_request_id. If any input
changes, use a new ID. Failed tasks automatically refund the reserved credits.
Artifact URLs are CDN addresses — copy them to your own storage promptly.
REST API
Direct protocol integrations may use POST /v1/audio/sound-effects with a
stable Idempotency-Key header, optional callback_url,
callback_signing_key_id, and metadata, plus the shared task endpoints.
Follow the generated API reference. Skill + MCP is the
recommended integration; use REST for custom, non-agent applications.
Last updated