Beta ACE Music Audios API
POSThttps://api.01ai.cloud/acemusic/audios

Generate a song group from an idea or custom lyrics, with asynchronous tasks and completion callbacks.

Agent integrations

Request Headers

Idempotency-Keystring
Reuse the same key for the same creation request to retrieve its original task. A different payload with the same key is rejected.
authorizationstring
Bearer token

Request Body

namestring
Optional display name for an upload.
asyncboolean
Return a persistent task ID; query /acemusic/tasks for the result.
Please select
lyricstring
Lyrics for custom generation, cover or mashup.
modelstring
Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload.
Please select
stylestring
Musical style for custom generation, cover or mashup.
titlestring
Required for custom generation; optional for cover and mashup.
actionstring
generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks.
Please select
customboolean
Only used by generate: false for an idea, true for supplied lyrics.
Please select
promptstring
Creation idea. Required when custom is false.
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.
callback_urlstring
Optional HTTPS callback for the final result. Implies asynchronous execution.
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.

Response

Integration guide

Shell

Python

JavaScript

Java

Go

PHP

Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.

ACE Music
Allow Use General Balance

When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.