生成音频
generate_audioGenerate audio for text-to-speech, music, speech recognition, or voice cloning. Returns URL for short tasks or task ID for longer ones to retrieve later.
Instructions
提交音频任务:TTS/音乐/语音识别/语音克隆(Suno 自动走专用端点)。 先用 describe_model 确认该 model 的参数。默认等待 60s:短任务直接返回结果 URL;长任务超时返回 task_id,用 get_task 继续查询。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | 模型 id | |
| params | Yes | 请求参数对象(不含 model),如 {prompt, aspect_ratio, ...},见 describe_model | |
| inline_image | No | 图像成功时是否内联回传图片(默认 true,仅 generate_image 生效;大图自动降级为纯 URL) | |
| wait_seconds | No | 最长等待秒数,默认 60,设 0 立即返回 task_id |