Beta ACE Music Assets API
POSThttps://api.yxai-tech.top/acemusic/assets

导入 MIDI、图片或视频参考素材,使用素材 ID 创作歌曲,或免费读取本人的素材详情和历史。各类型分批开放。

Agent 集成入口

请求头

authorizationstring
Bearer token

请求体

idstring
The platform asset ID from a successful import owned by this caller.
urlstring
A publicly downloadable HTTPS source URL. Local files can first be uploaded to the platform file service.
namestring
Optional asset display name.
pageinteger
typestring
Reference type. Imports accept standard MIDI, PNG/JPEG/WebP images, or MP4 video up to 60 seconds. Each type is enabled independently.
请选择
asyncboolean
Return a persistent task ID; query /acemusic/tasks for the result.
请选择
actionstring必填参数
Import a source or read owned asset metadata.
page_sizeinteger
callback_urlstring
Optional HTTPS callback for the final result. Implies asynchronous execution.

响应

集成指南

Shell

Python

JavaScript

Java

Go

PHP

温馨提示:对于流式请求,上面的代码可能不完全适用。请参阅对接文档以进行更改。

ACE Music
允许用通用余额

启用「允许通用余额」后,专属余额不足将自动使用通用余额。