ACE MUSIC · SONG CREATION API

Turn a spark of inspiration
into your next song.

Describe the music you want to hear, or bring your own lyrics. ACE Music generates two candidates for you to preview and compare, then download your favorite.

Get an API TokenOpen the Creation Studio

From inspiration to reference-based creation

Create songs from an idea or lyrics, upload a reference, cover an existing work, or blend two references.

2 candidates

Each complete generation delivers a set of candidates to preview individually and download as MP3s.

4 API categories

Songs, lyrics, reference materials, and task queries use the same platform credentials.

Start with a sentence, or take time to refine your lyrics

Inspiration-based creation

Describe a theme, style, and mood to quickly explore directions for your song.

Custom creation

Enter a title, lyrics, and style to retain control over the content.

Lyrics assistant

Generate a lyrics draft first, then edit it until you're happy before submitting it for song generation.

From API Token to Your First Song

Sign in to the console, open “General Applications,” and create or copy an API Key. This is the API Token used in requests. You can also use credentials from an existing ACE Music application. Make sure the credentials have access to the relevant API and that your balance and quota meet the requirements. Credentials can be managed in API Credential Management. Replace YOUR_API_KEY below with your own key, then submit your first song.

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.1",
    "custom": false,
    "prompt": "一首关于故乡的温暖民谣",
    "async": true
  }'

Submission Response JSON

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

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

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

Processing 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 an existing API response. The task ID, usage, and generated content will 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"
      }
    ]
  }
}

Save the returned task_id, and use the task API to query the original task; when the task is succeeded, get the playback and download URLs for the two candidate tracks from response.data. Continue querying the original task after a network interruption or page refresh.

Read the song integration guide →

Find a Sound for Your Ideas

Song Drafts

Compare different interpretations and choose a direction for further work.

Soundtrack Ideas

Explore musical ideas for videos, stories, and game scenes using themes and moods.

Creative Applications

Integrate via API or Agent to connect lyric writing, generation, and listening in your own workflow.

Get Started in Three Steps

01 · Get an API Token

Create or copy an API Key under “General Applications” in the console, and confirm ACE Music API permissions and available quota.

02 · Submit a Creation Request

Choose inspiration, custom, cover, or fusion, submit a request, and save the task ID; explicitly select the upload operation before importing a new reference.

03 · Check and Listen

Query the original task, check its status and audio URLs, then listen to, compare, and download the candidates once complete.

Choose the Right Method for Your Current Stage

MethodYou ProvideBest For
Inspiration ModeA one-sentence creative descriptionQuickly exploring themes and styles
Custom ModeTitle, lyrics, and musical styleWhen you already have clear lyrics and content direction
Reference UploadA public HTTPS MP3 link (up to 32 MiB), or an MP3 URL returned by a platform file upload (up to 64 MiB).Importing one of your own reference tracks
CoverOne platform track, lyrics, and styleCreating a new interpretation of an existing work
Dual-Reference FusionTwo distinct, compatible platform tracks, lyrics, and styleCombining two references to explore new creative directions
Lyrics AssistantA theme and an optional styleRefining the text before creating music

Choose a Model Explicitly

ACE Music v1.1

Default creation model. Model ID: acemusic-v1.1.

ACE Music v1

Optional model for basic song generation. Model ID: acemusic-v1.

Judge by the Results

Musical style and interpretation are generated by the model; actual duration depends on the result.

Pay for Completed Creations

Generation, Covers, and Fusion

One fee is charged for each complete set of two candidates. No generation fee is charged for final failures or partial failures.

Reference Upload and Lyrics Assistant

Reference uploads are charged per successfully imported track; the lyrics assistant is charged per successful generation. They are billed separately, and song operations do not implicitly call the lyrics assistant.

Task Queries

Free

Valid credentials and task permissions are required; you can view your own results even with a zero balance.

See the ACE Music Pricing Page for current prices and available plans. Actual charges depend on the plan, discounts, and site pricing. After a client timeout, query the original task; do not automatically resend a chargeable request.

Frequently Asked Questions

Can I play a song as soon as the generation request is accepted?

Acceptance returns a task ID. Playback is available only after generation and audio delivery are complete. Check the original task; do not treat acceptance as completion.

Can I edit the lyrics before generating?

Yes. Use custom mode to submit a title, lyrics, and style; you can also edit drafts provided by the lyrics assistant first.

What happens if only one song is completed?

The successful playable candidate is retained, the final task is marked as partially failed, and no generation fee is charged for the group.

What outputs and follow-up processing are currently supported?

Song audio and MP3 downloads are supported. You can import reference audio, create a cover of an existing work, or blend two different references. Covers and blending use v1.1. Instrumental controls, continuation, stem separation, and timbre capabilities are not currently available.

Can I use it for commercial projects?

Please assess your use based on the applicable terms of service and project context, and ensure you have the necessary rights to your inputs and intended use.

Continue Exploring Music and Sound

Choose Your Integration Method

Want to create in an AI client? See the ACE Music MCP Integration Guide to use tools for lyrics, songs, and task queries.

Create with Melodies or Visuals

On accounts with access, use the Reference Assets API to import MIDI, images, or video, and reference your own assets in inspiration mode. Asset queries are free. Song generation and asset imports are billed separately.

Let Your Next Song Start Here

Create directly with Studio, or integrate ACE Music into your application.

Get StartedView API Documentation