ACE Music
Create songs from an idea or custom lyrics, then play and download two candidates.
This is only a basic call example. See the full docs for more parameters and advanced usage.
View DocsTurn a spark of inspiration
into your next song.
Describe the music you want to hear, or bring lyrics you've written yourself. ACE Music generates two candidates for you to preview, compare, and download your favorite.
Get an API TokenOpen the Creation StudioFrom inspiration to reference-based creation
Create songs from inspiration or lyrics, upload a reference, cover an existing work, or blend two references.
2 candidates
A complete generation delivers a set of candidates to preview individually and download as MP3s.
3 API categories
Songs, lyrics, and task queries use the same platform credentials.
Start with a sentence, or take time to refine your lyrics
Inspiration-based creation
Describe the theme, style, and mood to quickly explore directions for a 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 to your satisfaction before submitting it for song generation.
From API Token to Your First Song
Sign in to the console, open “General Application”, 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 APIs 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 the API response. The task identifier, 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"
}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 fields in a response for a task in progress.
{
"id": "ae17781e-b4cd-4ad9-869a-34b8cf96b057",
"type": "audios",
"state": "running"
}Completed Response JSON
The following is an excerpt of key fields from the 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"
}
]
}
}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.
Find the Sound for Your Ideas
Song Drafts
Compare different renditions and choose a direction for further creation.
Soundtrack Ideas
Explore music 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 into 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 choose 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
| Method | You Provide | Best For |
|---|---|---|
| Inspiration Mode | A one-sentence creative description | Quickly exploring themes and styles |
| Custom Mode | Title, lyrics, and music style | Working with a clear direction for lyrics and content |
| Reference Upload | A 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 |
| Cover | One platform track, lyrics, and style | Creating a new rendition of an existing work |
| Dual-Reference Fusion | Two different, compatible platform tracks, lyrics, and style | Combining two references to explore new creative directions |
| Lyrics Assistant | A theme and an optional style | Refining 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
Music style and rendition 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
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 rather than automatically resubmitting a billable 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 is complete and the audio is delivered. 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, cover an existing work, or blend two different references. Covers and blends use v1.1. Instrumental controls, continuation, stem separation, and timbre capabilities are not currently available.
Can I use it for commercial projects?
Please assess based on the applicable terms of service and your project context, and ensure you have the necessary rights to the input content and its intended use.
Explore More Music and Sound
Choose Your Integration Method
Songs and Reference Audio
Get a Token to generate, upload, create covers, and blend.
Lyrics Generation
Generate editable drafts from a theme and style.
Tasks and History
Check progress, handle statuses, and retrieve audio results.
Want to create in an AI client? See the ACE Music MCP Integration Guide to use tools for lyrics, songs, and task queries.
Let Your Next Song Start Here
Create directly with Studio, or integrate ACE Music into your application.
Get StartedView API DocumentationGenerate a song group from an idea or custom lyrics, with asynchronous tasks and completion callbacks.
Generate editable lyrics and a title from a topic and style; billed separately.
Query authorized personal tasks and history for free, with batch retrieval and pagination.
Import reference assets for song generation or read your own asset details and history for free. Availability varies by asset type.
Packages
We offer various credit packages. The more you purchase, the higher the discount you receive.
up to46% OFF
