Skip to main content
Glama

生成音频

generate_audio

Generate 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

TableJSON Schema
NameRequiredDescriptionDefault
modelYes模型 id
paramsYes请求参数对象(不含 model),如 {prompt, aspect_ratio, ...},见 describe_model
inline_imageNo图像成功时是否内联回传图片(默认 true,仅 generate_image 生效;大图自动降级为纯 URL)
wait_secondsNo最长等待秒数,默认 60,设 0 立即返回 task_id
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It explains synchronous/asynchronous behavior and the need to consult describe_model. However, it does not disclose auth requirements, rate limits, or what the returned URL/task_id contain. The inline_image parameter description is irrelevant for audio and may confuse.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact but includes an irrelevant detail about inline_image only applying to generate_image, which is noise for this tool. The structure is mostly front-loaded but could be streamlined.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the main workflow (submit, wait, fallback) and dependency on describe_model. Lacks details on return format (URL or task_id contents) and potential limitations like credit costs. Without output schema, more detail would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds value: it explains the params object structure (e.g., {prompt, aspect_ratio}) and refers to describe_model for details, clarifies wait_seconds=0 behavior, and explains inline_image only applicable to generate_image. This goes beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it submits audio tasks (TTS, music, voice recognition, voice cloning) and mentions a dedicated endpoint for Suno. It distinguishes from sibling tools that handle other media types.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance includes using describe_model first, default 60s wait, short tasks returning URL directly, long tasks returning task_id with get_task, and setting wait_seconds=0 for immediate task_id. It does not explicitly state when not to use, but context implies audio-only tasks.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cookaihq/aihub-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server