Beta ACE Music Tasks API
POSThttps://api.01ai.cloud/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

Integration workbench
Shell
Python
JavaScript
Java
Go
PHP
溫馨提示:對於流式請求,上面的代碼可能不完全適用。請參閱對接文檔以進行更改。
ACE 音樂
允许用通用余额
啟用「允許通用餘額」後,專屬餘額不足將自動使用通用餘額。

