Generate Sound Effects
beatra.audio.generate_sfxGenerate sound effects, foley, or looping ambient beds from a text prompt (0.5 to 30 seconds). This billable call consumes Beatra credits and creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry.
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>",
"client_request_id": "<client_request_id>"
},
"name": "beatra.audio.generate_sfx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | When true, generate a seamlessly looping sound effect or ambient bed. | |
| model | No | Sound-effects model identifier, or 'auto' for automatic selection. | auto |
| format | No | Output audio container/encoding format. | mp3 |
| prompt | Yes | Text description of the sound effect or ambient audio to generate (1-2000 characters). | |
| model_options | No | Optional model-family-specific options (for example, `{"elevenlabs": {...}}`). Unrecognized keys emit an `option_ignored` warning. | |
| duration_seconds | No | Target duration in seconds (0.5-30.0). Omit to let the model choose duration automatically. | |
| prompt_influence | No | How strictly generation follows the prompt (0.0-1.0, default 0.3). | |
| client_request_id | Yes | Stable retry identity for this billable operation. Reuse only for the exact same generation arguments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| error | No | ||
| usage | No | ||
| status | No | ||
| billing | No | ||
| task_id | No | ||
| terminal | No | ||
| artifacts | No | ||
| resolved_model | No |