Generate AI audio
generate_audioGenerate one music or speech/voice request and render it in the generation widget. This tool accepts one request: text for speech and sound effects, prompt for a song in Quick mode, music_style and title for one in Lyrics mode. DEFAULT speech model: elevenlabs-tts-v4 — use it unless the user explicitly asks for a different engine. To use a specific named engine instead, set model:'elevenlabs-tts-v2' and pass voice. Get voice ids from list_voices; use list_models(type:'audio') to inspect each model's params. When the catalog exposes suno-v6, use it for music. For sound effects use elevenlabs-sfx with text and duration in seconds. estimate_only:true preflights tokens without submitting. Submitted audio requests can send text to external audio model providers through aicut and consume tokens. On a transport timeout the submission outcome may be unknown: do not automatically resubmit. Reuse returned job IDs and retry only after the original outcome is known. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules).
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": {
"model": "<model>"
},
"name": "generate_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Sound effects: loop seamlessly. | |
| text | No | Speech: the exact words to speak. Sound effect: a description of the sound. | |
| model | Yes | Audio model ID from the model catalog (required). Use list_models(type:'audio') to discover. | |
| speed | No | Speech, `elevenlabs-tts-v2` only: speaking rate, 1 is normal. | |
| style | No | Speech, `elevenlabs-tts-v2` only: how far the speaker's own style is exaggerated. | |
| title | No | Song: the title (required in Lyrics mode). | |
| voice | No | For speech models: the voice id. | |
| lyrics | No | Song, Lyrics mode: words to sing; omit to have them written; '[Instrumental]' for no singing. | |
| prompt | No | Text prompt for the generated audio. | |
| duration | No | Duration in seconds. Follow the model catalog: Suno takes `duration_seconds` instead (Lyrics mode). Omit for models without a duration parameter. | |
| stability | No | Speech: how steady the delivery is (lower more expressive, higher flatter). | |
| custom_mode | No | Song: true = Lyrics mode (needs `title`; takes `lyrics`, `vocal_gender`, `duration_seconds`); omit = Quick (needs `prompt`). | |
| music_style | No | Song, required: genre, mood, instruments. | |
| vocal_gender | No | Song, Lyrics mode: singer voice (a preference). | |
| estimate_only | No | If true, return the cost in tokens for this generation without submitting any job. Use to preflight cost before generating. | |
| studio_run_id | No | The open studio run's `run_id`; null = outside it; covered only under its run ticket, else its own priced ask. | |
| idempotency_key | No | Retry key (IDEMPOTENCY). | |
| duration_seconds | No | Song, Lyrics mode: whole seconds. | |
| prompt_influence | No | Sound effects: how literally to follow the text (the model's `min`/`max`). | |
| similarity_boost | No | Speech, `elevenlabs-tts-v2` and `-v4` only: how closely the delivery sticks to the voice. |