Bring this model into your workflow
Submit requests to the public API at api.acedata.cloud using the documented parameters, then use the results in your application.
- API host
api.acedata.cloud- model
acemusic-v1
Input parameters and result formats vary by service. Use the public API for this model and follow its guide for generation, task retrieval and editing operations.
输入与输出
- 模型 ID
- acemusic-v1
- 生成接口
- POST /acemusic/audios
- 输入
- 灵感描述,或标题、歌词与风格
- 结果
- 两首候选音轨和可播放的 audio_url
- 任务查询
- POST /acemusic/tasks
第一次生成
在通用应用取得 API Key,将 Key 放入环境变量。发送一次请求后保存返回的 task_id。
export ACEDATACLOUD_API_KEY="YOUR_API_KEY"
curl --request POST "https://api.acedata.cloud/acemusic/audios" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"action": "generate",
"model": "acemusic-v1",
"custom": false,
"prompt": "A warm acoustic song about coming home.",
"async": true
}'提交响应 JSON
以下为现有接口响应的关键字段节选。任务标识、用量和生成内容以本次请求返回值为准。
{
"task_id": "ae17781e-b4cd-4ad9-869a-34b8cf96b057",
"trace_id": "3102971e-7f6a-473c-8255-ba1e8eace89e",
"status": "created"
}查询和播放
查询原任务
把 id 替换为你的提交响应中的 task_id。
curl --request POST "https://api.acedata.cloud/acemusic/tasks" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data '{"action": "retrieve", "id": "ae17781e-b4cd-4ad9-869a-34b8cf96b057"}'处理中响应 JSON
以下为处理中字段示意。
{
"id": "ae17781e-b4cd-4ad9-869a-34b8cf96b057",
"type": "audios",
"state": "running"
}完成响应 JSON
以下为现有接口响应的关键字段节选。任务标识、用量和生成内容以本次请求返回值为准。
{
"id": "ae17781e-b4cd-4ad9-869a-34b8cf96b057",
"type": "audios",
"state": "succeeded",
"response": {
"success": true,
"status": "succeeded",
"data": [
{
"id": "3966103b-b0e3-4799-aa6d-b90dfc3e30ee",
"title": "末班车的温热",
"state": "succeeded",
"duration": 182,
"audio_url": "https://cdn.acedata2.cloud/acemusic/ae17781e-b4cd-4ad9-869a-34b8cf96b057-3966103b-b0e3-4799-aa6d-b90dfc3e30ee.mp3"
},
{
"id": "51b08e57-a990-4aaf-9418-fe3750a833f1",
"title": "末班车的温热",
"state": "succeeded",
"duration": 174,
"audio_url": "https://cdn.acedata2.cloud/acemusic/ae17781e-b4cd-4ad9-869a-34b8cf96b057-51b08e57-a990-4aaf-9418-fe3750a833f1.mp3"
}
]
}
}完成后从 response.data 读取音轨地址。音轨 id 用于后续参考操作,任务 task_id 用于查询。
选择创作方式
灵感模式适合先得到完整作品。自定义模式使用自己的歌词和风格。v1 支持从灵感或自定义歌词创作歌曲。需要翻唱或双参考融合时,选择 acemusic-v1.1。
费用与结果保存
生成、参考上传和歌词使用各自的计费规则。运行前查看当前价格和可用余额。成功后保存所需音轨和任务标识,后续通过原任务查询恢复结果。
常见问题
如何获得 API Key?
登录 Applications,在通用应用中复制 API Key。检查应用余额、服务权限、Key 的有效期和限额。
提交后为什么还没有音频?
异步提交先返回 task_id。使用原任务 ID 查询,直到 state=succeeded,再从 response.data 读取音轨。
如何写自己的歌词?
把 custom 设为 true,并提供 title、lyric 和 style。歌词可以包含 Verse、Chorus 等段落标签。
如何使用参考音频?
通过 action=upload 导入参考,成功后保留音轨 ID。翻唱和融合使用 acemusic-v1.1,并按相应操作的参数准备输入。
费用在哪里查看?
当前模型价格页给出计量单位与套餐换算。基础生成以完整双曲组计费,上传和歌词操作分别计费,具体规则见各接口指南。
继续接入
Use it in your favorite tools
Choose a development approach or application suited to this model and follow its setup guide.
Connect acemusic-v1 to Python SDK
Python SDK Integration Guide
SDK installation, authentication and examplesConnect acemusic-v1 to TypeScript SDK
TypeScript SDK Integration Guide
SDK installation, authentication and examplesClaude Desktop · ACE Music MCP
Service MCP setup · model options depend on the current tool listClaude Code · ACE Music MCP
Service MCP setup · model options depend on the current tool listCodex CLI · ACE Music MCP
Service MCP setup · model options depend on the current tool listCursor · ACE Music MCP
Service MCP setup · model options depend on the current tool listGemini CLI · ACE Music MCP
Service MCP setup · model options depend on the current tool listOpenCode · ACE Music MCP
Service MCP setup · model options depend on the current tool listVS Code · ACE Music MCP
Service MCP setup · model options depend on the current tool listACE Music Song generation API
API parameters and request examplesQuickstart
This is only a basic call example. See the full docs for more parameters and advanced usage.
View Docs