Beta ACE Music Tasks API
POSThttps://api.yxai-tech.top/acemusic/tasks
免费查询已授权的个人任务及历史,支持批量查询和分页。
请求头
authorizationstring
Bearer token
请求体
idstring
idsarray
pageinteger
typestring
Optional history type filter.
请选择
limitinteger
Alternative history page size; use page/page_size or limit/offset consistently.
actionstring必填参数
offsetinteger
page_sizeinteger
created_at_maxnumber
Inclusive creation-time upper bound, Unix seconds.
created_at_minnumber
Inclusive creation-time lower bound, Unix seconds.
响应
成功200
Request accepted or result available. Inspect the task state before treating generation as complete.
响应体
idstring
typestring
Operation that created the original task. Asset imports can be retrieved by their original task ID.
statestring
statusstring
elapsednumber
requestobject
The caller-owned public creation parameters.
namestring
Optional display name for an upload.
typestring
Reference asset type. It must match the imported asset.
asyncboolean
lyricstring
modelstring
stylestring
titlestring
actionstring
customboolean
promptstring
asset_idstring
The platform asset ID from a successful import owned by this caller.
audio_idstring
Public platform track ID owned by the caller. Required for cover; optional on upload to associate the import with an existing reference track.
audio_urlstring
HTTPS URL of an MP3 source file for upload. Use audio_id or mashup_audio_ids for already imported or generated tracks.
asset_typestring
Reference asset type. It must match the imported asset.
audio_influencenumber
Audio reference strength for cover and mashup. Defaults to 60.
mashup_audio_idsarray
Exactly two distinct caller-owned public track IDs. The selected references must be compatible with each other.
数组
string
responseobject
dataoneOf
Tracks, generated lyrics, or the public object delivered by a successful asset import.
oneOf 1
数组
anyOf 1
idstring
lyricstring
modelstring
statestring
stylestring
titlestring
durationnumber
audio_urlstring
image_urlstring
created_atstring
anyOf 2
textstring
titlestring
oneOf 2
idstring
The platform asset ID from a successful import owned by this caller.
namestring
typestring
Reference asset type. It must match the imported asset.
statusstring
expires_atnumber
Unix time in seconds when known.
duration_secondsnumber
Verified input video duration in seconds when available.
errorobject
codestring
messagestring
statusstring
successboolean
task_idstring
trace_idstring
trace_idstring
created_atnumber
started_atnumber
finished_atnumber
成功200
Request accepted or result available. Inspect the task state before treating generation as complete.
响应体
countinteger
itemsarray
数组
idstring
typestring
Operation that created the original task. Asset imports can be retrieved by their original task ID.
statestring
statusstring
elapsednumber
requestobject
The caller-owned public creation parameters.
namestring
Optional display name for an upload.
typestring
Reference asset type. It must match the imported asset.
asyncboolean
lyricstring
modelstring
stylestring
titlestring
actionstring
customboolean
promptstring
asset_idstring
The platform asset ID from a successful import owned by this caller.
audio_idstring
Public platform track ID owned by the caller. Required for cover; optional on upload to associate the import with an existing reference track.
audio_urlstring
HTTPS URL of an MP3 source file for upload. Use audio_id or mashup_audio_ids for already imported or generated tracks.
asset_typestring
Reference asset type. It must match the imported asset.
audio_influencenumber
Audio reference strength for cover and mashup. Defaults to 60.
mashup_audio_idsarray
Exactly two distinct caller-owned public track IDs. The selected references must be compatible with each other.
数组
string
responseobject
dataoneOf
Tracks, generated lyrics, or the public object delivered by a successful asset import.
oneOf 1
数组
anyOf 1
idstring
lyricstring
modelstring
statestring
stylestring
titlestring
durationnumber
audio_urlstring
image_urlstring
created_atstring
anyOf 2
textstring
titlestring
oneOf 2
idstring
The platform asset ID from a successful import owned by this caller.
namestring
typestring
Reference asset type. It must match the imported asset.
statusstring
expires_atnumber
Unix time in seconds when known.
duration_secondsnumber
Verified input video duration in seconds when available.
errorobject
codestring
messagestring
statusstring
successboolean
task_idstring
trace_idstring
trace_idstring
created_atnumber
started_atnumber
finished_atnumber
成功200
Request accepted or result available. Inspect the task state before treating generation as complete.
响应体
object
失败400
Invalid request or unsupported model.
响应体
errorobject
codestring
messagestring
successboolean
task_idstring
trace_idstring
失败401
Invalid credentials.
响应体
errorobject
codestring
messagestring
successboolean
task_idstring
trace_idstring
失败402
Insufficient balance for a paid operation.
响应体
errorobject
codestring
messagestring
successboolean
task_idstring
trace_idstring
失败403
Access denied or content rejected.
响应体
errorobject
codestring
messagestring
successboolean
task_idstring
trace_idstring
失败404
Task not found for this caller.
响应体
errorobject
codestring
messagestring
successboolean
task_idstring
trace_idstring
失败409
Idempotency key reused with a different request.
响应体
errorobject
codestring
messagestring
successboolean
task_idstring
trace_idstring
失败429
Rate limit exceeded.
响应体
errorobject
codestring
messagestring
successboolean
task_idstring
trace_idstring
失败500
Service failure.
响应体
errorobject
codestring
messagestring
successboolean
task_idstring
trace_idstring

集成指南
Shell
Python
JavaScript
Java
Go
PHP
温馨提示:对于流式请求,上面的代码可能不完全适用。请参阅对接文档以进行更改。
ACE Music
允许用通用余额
启用「允许通用余额」后,专属余额不足将自动使用通用余额。

