Producer MCP
通过 MCP 在 AI Agent 中生成歌曲、歌词、翻唱、扩展和处理音乐素材。
从简短描述开始生成完整音乐。
歌词、翻唱和分轨使用各自操作的输入。
从任务结果中取得可播放的 audio_url。
取得 Key,复制请求,并在下方查看对应的响应 JSON。
export ACEDATACLOUD_API_KEY="YOUR_API_KEY"
curl --request POST "https://api.acedata.cloud/producer/audios" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"action": "generate",
"model": "FUZZ-2.0",
"custom": false,
"prompt": "A warm acoustic song about coming home.",
"async": true
}'以下为现有接口响应的关键字段节选。任务标识、用量和生成内容以本次请求返回值为准。
{
"task_id": "1a6ac2ad-10f2-4e2b-b500-66ec27fe82ad"
}使用提交返回的任务 ID 查询进度,并读取终态结果。
curl --request POST "https://api.acedata.cloud/producer/tasks" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data '{"action": "retrieve", "id": "1a6ac2ad-10f2-4e2b-b500-66ec27fe82ad"}'以下为处理中任务的字段示意。完成前继续查询同一 ID。
{
"id": "1a6ac2ad-10f2-4e2b-b500-66ec27fe82ad",
"type": "audios",
"finished_at": null
}以下为现有接口响应的关键字段节选。任务标识、用量和生成内容以本次请求返回值为准。
{
"id": "1a6ac2ad-10f2-4e2b-b500-66ec27fe82ad",
"type": "audios",
"started_at": 1767119745.584,
"finished_at": 1767119785.589,
"elapsed": 40.005,
"response": {
"task_id": "1a6ac2ad-10f2-4e2b-b500-66ec27fe82ad",
"data": [
{
"id": "1dd08826-478e-43a6-868f-aff5ababac2c",
"title": "Woke up with the sun in my eyes",
"state": "succeeded",
"video_url": null,
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3"
}
]
}
}自定义歌词、翻唱和分轨分别使用对应操作的输入。
读取 response 中返回的视频或音轨地址。失败时读取错误信息并结束本次查询流程。
请求参数、可用型号和费用以当前接口及价格页面为准。遇到认证、余额或限额错误时,检查该 Key 的应用、有效期与使用限制。排查请求时保留 trace_id。
从完整指南继续查看参数、结果字段和错误处理。