All models

acemusic-v1 API

ACE MusicAudio
Get your API key

ACE Music 1

v1 supports creating songs from inspiration or custom lyrics. For covers or dual-reference blending, choose acemusic-v1.1.

STANDARD APIs · QUICK SETUP

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
Get your API key

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.

Input and Output

Model ID
acemusic-v1
Generation Endpoint
POST /acemusic/audios
Input
An inspiration description, or a title, lyrics, and style
Result
Two candidate audio tracks and a playable audio_url
Task Query
POST /acemusic/tasks

First Generation

Obtain an API Key in the general-purpose application and put the Key in an environment variable. Save the returned task_id after sending a request.

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
}'

Submission Response JSON

The following excerpt shows key fields from the current API response. The task ID, usage, and generated content depend on the values returned by your request.

{
  "task_id": "ae17781e-b4cd-4ad9-869a-34b8cf96b057",
  "trace_id": "3102971e-7f6a-473c-8255-ba1e8eace89e",
  "status": "created"
}

Query and Play

Query the Original Task

Replace id with the task_id from your submission response.

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"}'

In-Progress Response JSON

The following illustrates the fields returned while processing.

{
  "id": "ae17781e-b4cd-4ad9-869a-34b8cf96b057",
  "type": "audios",
  "state": "running"
}

Completed Response JSON

The following is an excerpt of key fields from the current API response. The task identifier, usage, and generated content depend on the values returned by your request.

{
  "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"
      }
    ]
  }
}

Once complete, read the track URLs from response.data. The track id is used for subsequent reference operations, while the task task_id is used for queries.

Choose a Creation Method

Inspiration mode is suitable for getting a complete work first. Custom mode uses your own lyrics and style. v1 supports creating songs from inspiration or custom lyrics. Choose acemusic-v1.1 for covers or dual-reference fusion.

ACE Music v1.1 · ACE Music v1

Costs and Saving Results

Generation, reference uploads, and lyrics each have their own billing rules. Check current prices and your available balance before running. After success, save the desired tracks and task identifier; you can retrieve the results later by querying the original task.

Frequently Asked Questions

How do I obtain an API Key?

Log in to Applications and copy the API Key from the general application. Check the application balance, service permissions, Key validity period, and limits.

Why is there no audio after submission?

Asynchronous submission first returns a task_id. Query using the original task ID until state=succeeded, then read the audio tracks from response.data.

How do I write my own lyrics?

Set custom to true and provide title, lyric, and style. Lyrics can include section labels such as Verse and Chorus.

How do I use reference audio?

Import a reference using action=upload and retain the audio track ID after it succeeds. Covers and fusion use acemusic-v1.1; prepare inputs according to the parameters for the respective operation.

Where can I view pricing?

The current model pricing page provides billing units and package conversions. Basic generation is billed per complete two-track set; uploads and lyrics operations are billed separately. See the respective API guides for specific rules.