Generate songs
November 14, 2026 (December 1, 2026)
Table of contents
Each request makes two songs with ACE Music, with vocals or without. Pick ACE Music v1, ACE Music v1.1 Preview or the free ACE-Step v1.5 XL. Every song comes back with a public mp3 link and cover art. It also has a title, its style and lyrics, and a songId. Keep the songId. With it you can cover, remix, edit or mash up the song. You can also split it into stems, download it as WAV, MIDI or MusicXML, or read its score.
Ways to make songs
The fields you send decide which way, as on the ACE Music website.
| Way | Send | What ACE Music does |
|---|---|---|
| Idea | prompt, and optionally up to 3 references and up to 3 images | Writes the style, lyrics and title from your idea, then makes the songs |
| Your own texts | style and lyrics (or instrumental: true), with an optional title, mode and the options | Sings your lyrics in your style, or covers, remixes, edits or mashes up songs |
If you send any of mode, style, lyrics, title, instrumental, referenceAudio or any song option, the request uses your own texts. Never send prompt together with them. The API answers 400 and tells you what to remove. To get lyrics from ACE Music that you can edit first, call POST /music/lyrics and POST /music/style before this call.
Modes
mode is for the second way only. Most modes start from reference songs. A reference is a songId. It can be a song you made with this API, a song from GET /music, or your own audio uploaded with POST /files.
mode | references | Runs on | What it does |
|---|---|---|---|
generate (default) | none | any model | New songs from style (required) and your lyrics. No lyrics makes an instrumental. |
cover | 1 song | acemusic-v1.1 or ace-step-1.5-xl | The song in a new style, following its melody, chords and structure. |
remix | 1 song | ace-step-1.5-xl only, the default for this mode | coverStrength sets how much of the original stays. remixStrength sets how far the song moves away from it. |
edit | 1 song | ace-step-1.5-xl only, the default for this mode | Rewrites the part between start and end seconds, with new lyrics for that part. |
mashup | 2 or 3 songs | acemusic-v1.1 only | One new song from several. Without lyrics, ACE Music combines the songs’ own words. |
instrumental: true works only with mode generate. A cover, remix, edit or mashup keeps the words of the songs it starts from, so the other modes answer 400 if you send it.
ACE Music v1.1 Preview works from a song’s score, the sheet music ACE Music writes from its audio. When you cover or mash up an ACE Music v1 song that has no score yet, we get its score first, for free. We don’t do this for ACE-Step songs. If ACE Music answers ref_no_melody, call GET /music/score on the song first. That costs 1 credit. Then send the request again.
Model switching
Some requests need a song’s score, and only ACE Music v1.1 Preview can use one. A mashup always runs on it. So does a cover on acemusic-v1, and a prompt with 2 or 3 references on ace-step-1.5-xl. The ACE Music website does the same. ACE Music can also switch a request by itself to keep a song’s tune. One example is a prompt with a reference song on acemusic-v1. The job shows both models. model is the one you asked for, and modelUsed is the one that ran. Credits and text limits follow the model that ran, so a switched ACE-Step request costs 4 credits.
Cost
ACE Music takes the credits when it accepts a request. A request on acemusic-v1 or acemusic-v1.1 costs 4 credits for two songs. That is 2 credits a song. ace-step-1.5-xl costs nothing and runs even on an account with no credits left. If the account has too few credits, the API answers 412 with the cost. When ACE Music fails to make a song and gives its credits back, that song shows refunded: true. Pricing shows the cost in dollars on each plan.
Sync, async and webhooks
ACE-Step v1.5 XL takes about 15 to 95 seconds. ACE Music v1.1 Preview takes about 30 to 60 seconds, and about 25 to 170 seconds with mode cover or mashup. ACE Music v1 takes about 15 to 115 seconds.
The call answers with the result when it is ready. It waits up to 100 seconds. If the result isn’t ready by then, it answers 202 with a job to poll. With async on, the call answers at once with a job to poll. Poll GET /v1/acemusic/jobs/{jobid} about every 10 seconds.
A finished job comes back with HTTP 200 and its job record. When you poll instead of waiting, the first answer is HTTP 201, and the record shows status: processing. A job that fails while we wait, or fails at once at ACE Music, comes back with its job record. Its HTTP status is then the record’s code.
If a job has not finished 30 minutes after it started, we mark it failed.
Reading the job still returns HTTP 200, and its record shows status: failed and code: 504. ACE Music may still finish that job, and it has likely charged for it. So before you send the request again, read the job later or look in GET /music. You can read a jobid for 7 days.
Always check the job’s status. Only a completed job has the links. Read a running job with GET /jobs/jobid.
When the job completes or fails, we send the final job record as JSON to replyUrl, in one POST. This works with or without async. If you leave out replyUrl, we use the default replyUrl of your useapi.net account, set with POST account. It must be a public https URL too.
Each account runs at most maxJobs requests at a time. You set it with POST /accounts. It can be 1 to 4, and the default is 4, ACE Music’s own limit. GET /jobs shows what is running.
https://api.useapi.net/v1/acemusic/music
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Or send the same fields as multipart/form-data:
# Content-Type: multipart/form-data
API tokenis required. Setup useapi.net shows where to get it.
Request Body
- idea
- own-style-and-lyrics
- cover
- mashup
- model-and-length (acemusic-v1)
- remix (ace-step-1.5-xl)
- edit (ace-step-1.5-xl)
- idea-one-reference (ace-step-1.5-xl)
- idea-two-references (ace-step-1.5-xl)
-
{ "prompt": "A short cheerful ukulele tune about a sunny Saturday morning at the farmers market" } -
{ "style": "synthwave, retro drum machine, warm analog pads, male vocals", "lyrics": "[Verse]\nMorning light on the window pane\nCoffee steam and a quiet lane\n[Chorus]\nHold on, hold on, the day is new\nEvery road leads back to you", "title": "Neon Morning", "async": true, "replyUrl": "https://your-domain.com/webhook", "replyRef": "neon-morning-1" } -
{ "mode": "cover", "references": [ "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7" ], "style": "acoustic folk, fingerpicked guitar, soft female vocals" } -
{ "mode": "mashup", "references": [ "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7", "user:[email protected]:so_b6e14d0c9a7f4382be51f0a3" ], "style": "acoustic folk, fingerpicked guitar, soft female vocals" } -
{ "style": "synthwave, retro drum machine, warm analog pads, male vocals", "lyrics": "[Verse]\nMorning light on the window pane\nCoffee steam and a quiet lane\n[Chorus]\nHold on, hold on, the day is new\nEvery road leads back to you", "title": "Neon Morning", "model": "acemusic-v1", "duration": 120 } -
{ "mode": "remix", "references": [ "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7" ], "style": "acoustic folk, fingerpicked guitar, soft female vocals" } -
{ "mode": "edit", "references": [ "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7" ], "lyrics": "[Chorus]\nHold on, hold on, the night is long", "start": 30, "end": 45 } -
{ "prompt": "A short cheerful ukulele tune about a sunny Saturday morning at the farmers market", "references": [ "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7" ] } -
{ "prompt": "A short cheerful ukulele tune about a sunny Saturday morning at the farmers market", "references": [ "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7", "user:[email protected]:so_b6e14d0c9a7f4382be51f0a3" ] }
promptis optional. Your idea for the song, in your own words. ACE Music writes the style, lyrics and title from it. An idea needs it unless you send references or images. Never send it with style, lyrics or any other field of your own texts.
Maximum length:2000characters.imagesis optional. With prompt only: up to 3 image ids from POST /files (user:[email protected]:cx_...), pictures the songs are about.
At most3items.modeis optional. Send it with style or lyrics, never with prompt.
Supported values:generate(default),cover,remix,edit,mashup.styleis required with modegenerateand withoutprompt,referencesandimages. Genre, instruments, mood, tempo and vocals. A new song needs it.
Maximum length:1000characters.
ace-step-1.5-xltakes at most512characters.lyricsis optional. Your lyrics, with tags such as [verse] and [chorus]. A new song sent without lyrics is an instrumental.
Maximum length:5000characters.
ace-step-1.5-xltakes at most2000characters.titleis optional. The title of the songs.
Maximum length:80characters.instrumentalis optional. Send true for songs with no vocals. It works with mode generate only, and never together with lyrics.modelis optional. The model to run.modelUsedin the answer is the model that ran, which can differ frommodel.
Supported values:acemusic-v1(default),acemusic-v1.1,ace-step-1.5-xl.referencesis required with modecover,remix,editormashup. ThesongIds of songs to start from (user:[email protected]:so_...). Withprompt, up to 3 songs that guide the new ones. With a mode, as many as the mode takes. Send each id once. On ACE Music v1.1 Preview, an ACE Music v1 song with no score has its score read first, for free. A song made by ACE-Step v1.5 XL may need its score first: call GET /music/score.
At most3items.referenceAudiois optional. ThesongIdof a song whose sound guides the result. Only ACE-Step v1.5 XL takes it.durationis optional. Song length in seconds. Only a new song takes it. Leave it out and the model picks the length.
acemusic-v1takes30to600.
ace-step-1.5-xltakes10to240.bpmis optional. Tempo in beats per minute. Only a new song on ACE-Step v1.5 XL takes it.
Range:30to200.timeSignatureis optional. Only a new song on ACE-Step v1.5 XL takes it.
Supported values:2/4,3/4,4/4,6/8.keyis optional. Only a new song, a cover or a remix on ACE-Step v1.5 XL takes it.
Supported values:C major,C minor,C# major,C# minor,D major,D minor,Eb major,Eb minor,E major,E minor,F major,F minor,F# major,F# minor,G major,G minor,Ab major,Ab minor,A major,A minor,Bb major,Bb minor,B major,B minor.negativeis optional. Styles to avoid. Only a new song on ACE Music v1 or ACE-Step v1.5 XL takes it.
Maximum length:200characters.thinkingis optional. How much ACE-Step plans the song before making it. Low gives freer songs, high gives steadier ones. Only a new song on ACE-Step v1.5 XL takes it.
Range:0to100.coverStrengthis optional. How much of the original stays. Only a cover or a remix on ACE-Step v1.5 XL takes it.
Range:0to100.
Default:20onace-step-1.5-xl.remixStrengthis optional. How far it moves away from the original. Only a cover or a remix on ACE-Step v1.5 XL takes it.
Range:0to100.
Default:0onace-step-1.5-xl.audioInfluenceis optional. How closely the reference songs are followed: their chords, sections, tempo, key and sound. Only a cover or a mashup that runs on ACE Music v1.1 Preview takes it.
Range:0to100.
Default:60onacemusic-v1.1.styleInfluenceis optional. How strictly the style is followed: as written when high, freely when low. Every request that runs on ACE Music v1 or ACE Music v1.1 Preview takes it.
Range:0to100.
Default:80onacemusic-v1andacemusic-v1.1.startis required with modeedit. The second where the part to rewrite starts.
Range:0to600.endis required with modeedit. The second where the part to rewrite ends, at least 1 s after start.
Range:0to600.emailis optional. The ACE Music account to run on. Leave it out and the request runs on the account that holds its songs and images, or else on any healthy account that has room. All referenced songs and images of one request must be on the same account.asyncis optional. true answers 201 at once and runs the job in the background.
Default:false.replyUrlis optional. A public https URL. We POST the job record to it once, when the job completes or fails, in sync and async mode alike.
Maximum length:2048characters.replyRefis optional. Your own reference, echoed back in the job record.
Maximum length:1024characters.
Any other parameter returns 400 with Parameter <name> not supported.
The body we post to replyUrl has the same JSON shape as the GET /jobs/jobid response.
Responses
-
The songs were finished within the 100 seconds the request waits. The answer is the job record with its songs.
Sync mode, the job has finished
{ "jobid": "j1114201530412583907m-u12345-email:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7.so_b6e14d0c9a7f4382be51f0a3-bot:acemusic", "type": "music", "status": "completed", "email": "[email protected]", "created": "2026-11-14T20:15:30.412Z", "model": "ace-step-1.5-xl", "modelUsed": "ace-step-1.5-xl", "songs": [ { "songId": "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7", "taskId": "so_3f9c2a7d81e64b05a9d2c4e7", "status": "succeeded", "title": "Farmers Market Sunshine", "model": "ace-step-1.5-xl", "style": "Upbeat indie folk, bright cheerful acoustic ukulele strumming, light hand percussion, shaker, warm upright bass, sweet breezy female vocals, sunny acoustic production.", "lyrics": "[verse 1]\nWoven tote bag swinging by my side\nMorning breeze and the sky open wide\n…\n\n[chorus]\nOh it's Saturday morning down at the square\n…", "instrumental": false, "duration": 135.02, "audioUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3", "playUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3", "playUrlExpires": "2026-11-14T20:17:20.318Z", "coverUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7-cover.jpg?v=1794598529169", "pageUrl": "https://acemusic.ai/song/k4m8q2vz7xpd", "created": "2026-11-14T20:15:30.439Z", "finished": "2026-11-14T20:16:14.205Z", "kind": "original", "score": false }, { "songId": "user:[email protected]:so_b6e14d0c9a7f4382be51f0a3", "taskId": "so_b6e14d0c9a7f4382be51f0a3", "status": "succeeded", "title": "Farmers Market Sunshine", "model": "ace-step-1.5-xl", "style": "Upbeat indie folk, bright cheerful acoustic ukulele strumming, light hand percussion, shaker, warm upright bass, sweet breezy female vocals, sunny acoustic production.", "lyrics": "[verse 1]\nWoven tote bag swinging by my side\nMorning breeze and the sky open wide\n…\n\n[chorus]\nOh it's Saturday morning down at the square\n…", "instrumental": false, "duration": 135.02, "audioUrl": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3.mp3", "playUrl": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3.mp3", "playUrlExpires": "2026-11-14T20:17:20.318Z", "coverUrl": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3-cover.jpg?v=1794598526500", "pageUrl": "https://acemusic.ai/song/w7n3c5r9t2hb", "created": "2026-11-14T20:15:30.440Z", "finished": "2026-11-14T20:16:14.205Z", "kind": "original", "score": false } ], "completed": "2026-11-14T20:16:14.205Z", "job_state": "completed", "outputs": [ { "ok": true, "url": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3", "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7", "thumbnail_url": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7-cover.jpg?v=1794598529169" }, { "ok": true, "url": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3.mp3", "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_b6e14d0c9a7f4382be51f0a3", "thumbnail_url": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3-cover.jpg?v=1794598526500" } ] }Sync mode, a song from a prompt on
ace-step-1.5-xl{ "jobid": "j1116011847708536288m-u12345-email:[email protected]:so_000000000000000000000001.so_000000000000000000000002-bot:acemusic", "type": "music", "status": "completed", "email": "[email protected]", "created": "2026-11-16T01:18:47.708Z", "model": "ace-step-1.5-xl", "modelUsed": "ace-step-1.5-xl", "songs": [ { "songId": "user:[email protected]:so_000000000000000000000001", "taskId": "so_000000000000000000000001", "status": "succeeded", "title": "Saturday Market", "model": "ace-step-1.5-xl", "style": "Acoustic folk pop, bright and cheerful, bouncy mid-tempo groove. Rhythmic ukulele strumming, upright bass, light tambourine, handclaps, warm breezy female vocal, organic acoustic production.", "lyrics": "[verse 1]\nSunlight spilling on the cobblestone street\nWicker basket swinging by my feet\nSmell of dark roast coffee in the morning breeze\nGreen leaves rustling through the maple trees\n\n[chorus]\nOh, it's Saturday morning at the market square\nStrawberries sweet and lavender to spare\nGot a little bounce in my step today\nWatching every little worry float away\n\n[verse 2]\nYellow sunflowers nodding in a r…", "instrumental": false, "duration": 143.02, "audioUrl": "https://acemusic.ai/data/so_000000000000000000000001.mp3", "playUrl": "https://acemusic.ai/data/so_000000000000000000000001.mp3", "playUrlExpires": "2026-11-16T01:20:34.444Z", "coverUrl": "https://acemusic.ai/data/so_000000000000000000000001-cover.jpg?v=1794598529169", "pageUrl": "https://acemusic.ai/song/example00003", "created": "2026-11-16T01:18:47.733Z", "finished": "2026-11-16T01:19:29.099Z", "kind": "original", "score": false }, { "songId": "user:[email protected]:so_000000000000000000000002", "taskId": "so_000000000000000000000002", "status": "succeeded", "title": "Saturday Market", "model": "ace-step-1.5-xl", "style": "Acoustic folk pop, bright and cheerful, bouncy mid-tempo groove. Rhythmic ukulele strumming, upright bass, light tambourine, handclaps, warm breezy female vocal, organic acoustic production.", "lyrics": "[verse 1]\nSunlight spilling on the cobblestone street\nWicker basket swinging by my feet\nSmell of dark roast coffee in the morning breeze\nGreen leaves rustling through the maple trees\n\n[chorus]\nOh, it's Saturday morning at the market square\nStrawberries sweet and lavender to spare\nGot a little bounce in my step today\nWatching every little worry float away\n\n[verse 2]\nYellow sunflowers nodding in a r…", "instrumental": false, "duration": 143.02, "audioUrl": "https://acemusic.ai/data/so_000000000000000000000002.mp3", "playUrl": "https://acemusic.ai/data/so_000000000000000000000002.mp3", "playUrlExpires": "2026-11-16T01:20:34.451Z", "coverUrl": "https://acemusic.ai/data/so_000000000000000000000002-cover.jpg?v=1794598529169", "pageUrl": "https://acemusic.ai/song/example00004", "created": "2026-11-16T01:18:47.734Z", "finished": "2026-11-16T01:19:29.099Z", "kind": "original", "score": false } ], "completed": "2026-11-16T01:19:29.099Z", "job_state": "completed", "outputs": [ { "ok": true, "url": "https://acemusic.ai/data/so_000000000000000000000001.mp3", "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_000000000000000000000001", "thumbnail_url": "https://acemusic.ai/data/so_000000000000000000000001-cover.jpg?v=1794598529169" }, { "ok": true, "url": "https://acemusic.ai/data/so_000000000000000000000002.mp3", "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_000000000000000000000002", "thumbnail_url": "https://acemusic.ai/data/so_000000000000000000000002-cover.jpg?v=1794598529169" } ] } -
When
asyncis true, the job record comes back at once. The songs are still being made. A request ACE Music fails at once answers 400 or 422 instead, with the job record.async: true, the job is running{ "jobid": "j1114202212045711826m-u12345-email:[email protected]:so_8c1d4f7a2b9e4c06a3f5d7e1.so_e2a7b9c4d6f84a1b95c3e0d8-bot:acemusic", "type": "music", "status": "processing", "email": "[email protected]", "created": "2026-11-14T20:22:12.045Z", "model": "acemusic-v1", "modelUsed": "acemusic-v1", "songs": [ { "songId": "user:[email protected]:so_8c1d4f7a2b9e4c06a3f5d7e1", "taskId": "so_8c1d4f7a2b9e4c06a3f5d7e1", "status": "planning", "title": "Untitled", "model": "acemusic-v1", "style": null, "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": null, "created": "2026-11-14T20:22:12.068Z", "finished": null, "kind": "original", "score": false }, { "songId": "user:[email protected]:so_e2a7b9c4d6f84a1b95c3e0d8", "taskId": "so_e2a7b9c4d6f84a1b95c3e0d8", "status": "planning", "title": "Untitled", "model": "acemusic-v1", "style": null, "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": null, "created": "2026-11-14T20:22:12.069Z", "finished": null, "kind": "original", "score": false } ], "replyUrl": "https://your-domain.com/webhook", "replyRef": "lofi-1", "job_state": "in_progress", "outputs": [ { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_8c1d4f7a2b9e4c06a3f5d7e1", "thumbnail_url": null }, { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_e2a7b9c4d6f84a1b95c3e0d8", "thumbnail_url": null } ] }async: trueonace-step-1.5-xl, the job is running{ "jobid": "j1116012027280603761m-u12345-email:[email protected]:so_000000000000000000000001.so_000000000000000000000002-bot:acemusic", "type": "music", "status": "processing", "email": "[email protected]", "created": "2026-11-16T01:20:27.280Z", "model": "ace-step-1.5-xl", "modelUsed": "ace-step-1.5-xl", "songs": [ { "songId": "user:[email protected]:so_000000000000000000000001", "taskId": "so_000000000000000000000001", "status": "planning", "title": "Untitled", "model": "ace-step-1.5-xl", "style": null, "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": null, "created": "2026-11-16T01:20:27.305Z", "finished": null, "kind": "original", "score": false }, { "songId": "user:[email protected]:so_000000000000000000000002", "taskId": "so_000000000000000000000002", "status": "planning", "title": "Untitled", "model": "ace-step-1.5-xl", "style": null, "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": "https://acemusic.ai/song/example00003", "created": "2026-11-16T01:20:27.306Z", "finished": null, "kind": "original", "score": false } ], "job_state": "in_progress", "outputs": [ { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_000000000000000000000001", "thumbnail_url": null }, { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_000000000000000000000002", "thumbnail_url": null } ] } -
The songs were not finished after 100 seconds. The answer is the job record. Read it again with GET /jobs/
jobid.{ "jobid": "j1115202151066513162m-u12345-email:[email protected]:so_000000000000000000000001.so_000000000000000000000002-bot:acemusic", "type": "music", "status": "processing", "email": "[email protected]", "created": "2026-11-15T20:21:51.066Z", "model": "ace-step-1.5-xl", "modelUsed": "ace-step-1.5-xl", "songs": [ { "songId": "user:[email protected]:so_000000000000000000000001", "taskId": "so_000000000000000000000001", "status": "planning", "title": "Untitled", "model": "ace-step-1.5-xl", "style": null, "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": "https://acemusic.ai/song/example00003", "created": "2026-11-15T20:21:51.090Z", "finished": null, "kind": "original", "score": false }, { "songId": "user:[email protected]:so_000000000000000000000002", "taskId": "so_000000000000000000000002", "status": "planning", "title": "Untitled", "model": "ace-step-1.5-xl", "style": null, "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": "https://acemusic.ai/song/example00004", "created": "2026-11-15T20:21:51.091Z", "finished": null, "kind": "original", "score": false } ], "replyUrl": "https://your-domain.com/webhook", "replyRef": "handover-ref", "job_state": "in_progress", "outputs": [ { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_000000000000000000000001", "thumbnail_url": null }, { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_000000000000000000000002", "thumbnail_url": null } ] } -
The failed job
Most often the request itself is wrong, or no account is connected. The examples below show each case. Rarely the job fails with 400 because ACE Music could not read the melody of a referenced song (
ref_no_melody). This is usually an ACE-Step song with no score yet. The answer is then the job record, withcode400 and the reason inerror. Read the song’s score with GET /music/score, then send the request again. Whenrefundedis true, the credits came back.The request itself is wrong. Fix what the text names, then send it again.
ACE Music could not read the melody of a referenced song. This is usually an ACE-Step song with no score yet. Read its score with GET /music/score, then send the request again. The credits came back.
ACE Music refused the request. The text gives its reason.
No ACE Music account is connected. Add one with POST /accounts.
The body could not be read. It is not valid JSON, or a multipart upload was sent without its boundary.
Both prompt and lyrics sent
{ "error": "Send prompt or lyrics, not both: drop lyrics to have ACE Music write the song from your prompt, or drop prompt to sing your own lyrics (with style)", "code": 400 }The wrong number of references for a mashup
{ "error": "mode mashup takes 2 to 3 songs in references", "code": 400 }An option the mode does not take
{ "error": "Parameter bpm does not apply to mode generate on acemusic-v1", "code": 400 }A song on another account than email
{ "error": "Song user:[email protected]:so_5a0e3c8b1d7f4e92a6c4b8d0 is on account [email protected], not [email protected]: songs and images only work on the account that holds them", "code": 400 }No ACE Music account added yet
{ "error": "Please add at least one ACE Music account first: https://useapi.net/docs/api-acemusic-v1/post-acemusic-accounts", "code": 400 }Sync mode, ACE Music could not read the melody of a referenced song (
ref_no_melody){ "jobid": "j1114200257596846480m-u12345-email:[email protected]:so_9a4f1c7e3b2d4a8c96e0b5d2.so_0c6b8e2a4f1d4b7a83e9c5f1-bot:acemusic", "type": "music", "status": "failed", "email": "[email protected]", "created": "2026-11-14T20:02:57.596Z", "model": "ace-step-1.5-xl", "modelUsed": "acemusic-v1.1", "songs": [ { "songId": "user:[email protected]:so_9a4f1c7e3b2d4a8c96e0b5d2", "taskId": "so_9a4f1c7e3b2d4a8c96e0b5d2", "status": "failed", "title": "Untitled", "model": "acemusic-v1.1", "style": "upbeat pop mashup, bright synths", "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": null, "created": "2026-11-14T20:02:57.619Z", "finished": null, "kind": "mashup", "score": false, "error": { "code": "ref_no_melody", "message": "No melody could be found in the reference" }, "refunded": true }, { "songId": "user:[email protected]:so_0c6b8e2a4f1d4b7a83e9c5f1", "taskId": "so_0c6b8e2a4f1d4b7a83e9c5f1", "status": "failed", "title": "Untitled", "model": "acemusic-v1.1", "style": "upbeat pop mashup, bright synths", "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": null, "created": "2026-11-14T20:02:57.620Z", "finished": null, "kind": "mashup", "score": false, "error": { "code": "ref_no_melody", "message": "No melody could be found in the reference" }, "refunded": true } ], "completed": "2026-11-14T20:03:46.414Z", "code": 400, "error": "ACE Music could not read the melody of the referenced song (ref_no_melody): read its score first with GET /music/score, then try again. ACE Music refunded the credits", "job_state": "failed", "outputs": [ { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_9a4f1c7e3b2d4a8c96e0b5d2", "thumbnail_url": null }, { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_0c6b8e2a4f1d4b7a83e9c5f1", "thumbnail_url": null } ], "error_info": { "code": "input_rejected", "message": "ACE Music could not read the melody of the referenced song (ref_no_melody): read its score first with GET /music/score, then try again. ACE Music refunded the credits", "retry": { "mode": "never", "action": "replace_input" }, "vendor_code": "ref_no_melody" } }audioInfluencewith mode generate{ "error": "Parameter audioInfluence does not apply to mode generate on acemusic-v1", "code": 400 }{ "error": "Send prompt or lyrics, not both: drop lyrics to have ACE Music write the song from your prompt, or drop prompt to sing your own lyrics (with style)", "code": 400 }{ "error": "prompt is for a song ACE Music writes; style and lyrics are for your own style and lyrics. Drop prompt, or drop style and lyrics", "code": 400 }{ "error": "images go with prompt only: drop images, or drop style and send a prompt", "code": 400 }{ "error": "Parameter prompt is required (or references / images)", "code": 400 }{ "error": "mode generate takes no references (use cover, remix, edit or mashup)", "code": 400 }{ "error": "mode mashup takes 2 to 3 songs in references", "code": 400 }{ "error": "mode remix runs on ace-step-1.5-xl only (for acemusic-v1 use cover)", "code": 400 }{ "error": "Send lyrics or instrumental: true, not both", "code": 400 }{ "error": "Parameter instrumental applies to mode generate only: a cover keeps the words of the song it is made from", "code": 400 }{ "error": "Parameter style is required for mode generate", "code": 400 }{ "error": "Parameter style is longer than 512 characters for ace-step-1.5-xl", "code": 400 }{ "error": "Parameter lyrics is longer than 2000 characters for ace-step-1.5-xl", "code": 400 }{ "error": "Parameter bpm does not apply to mode generate on acemusic-v1", "code": 400 }{ "error": "Parameter duration (300) must be 10-240 s on ace-step-1.5-xl", "code": 400 }{ "error": "Parameter duration (20) must be 30-600 s on acemusic-v1", "code": 400 }{ "error": "mode edit needs start and end (seconds): the part of the song to rewrite", "code": 400 }{ "error": "Parameter end must be at least 1 s after start", "code": 400 }{ "error": "Song user:[email protected]:so_5a0e3c8b1d7f4e92a6c4b8d0 is on account [email protected], not [email protected]: songs and images only work on the account that holds them", "code": 400 }{ "error": "All references and images must be on the same ACE Music account", "code": 400 }{ "error": "ACE Music could not read the melody of the referenced song (ref_no_melody): read its score first with GET /music/score, then try again", "code": 400 }{ "error": "Generating the songs: No melody could be found in the reference", "code": 400 }{ "error": "Please add at least one ACE Music account first: https://useapi.net/docs/api-acemusic-v1/post-acemusic-accounts", "code": 400 }{ "error": "Invalid JSON: Unexpected token 'o', \"not json\" is not valid JSON", "code": 400 }The error text of each parameter check
Parameter prompt must be a stringParameter prompt length exceeds 2000 charactersParameter images must be an array of idsParameter images item "x" is not a valid image id (user:<id>-<email>-media:cx_…, from POST /files)Parameter mode (x) valid values: generate,cover,remix,edit,mashupParameter style must be a stringParameter style length exceeds 1000 charactersParameter lyrics must be a stringParameter lyrics length exceeds 5000 charactersParameter title must be a stringParameter title length exceeds 80 charactersParameter instrumental (x) valid values: 0,1,true,falseParameter model (x) valid values: acemusic-v1,acemusic-v1.1,ace-step-1.5-xlParameter references must be an array of idsParameter references item "x" is not a valid songId (user:<id>-<email>-song:so_…)Parameter referenceAudio must be a stringParameter referenceAudio is not a valid songId (user:<id>-<email>-song:so_…)Parameter duration (x) is not an integerParameter duration (601) is more than 600Parameter duration (9) is less than 10Parameter bpm (x) is not an integerParameter bpm (201) is more than 200Parameter bpm (29) is less than 30Parameter timeSignature (x) valid values: 2/4,3/4,4/4,6/8Parameter key (x) valid values: C major,C minor,C# major,C# minor,D major,D minor,Eb major,Eb minor,E major,E minor,F major,F minor,F# major,F# minor,G major,G minor,Ab major,Ab minor,A major,A minor,Bb major,Bb minor,B major,B minorParameter negative must be a stringParameter negative length exceeds 200 charactersParameter thinking (x) is not an integerParameter thinking (101) is more than 100Parameter thinking (-1) is less than 0Parameter coverStrength (x) is not an integerParameter coverStrength (101) is more than 100Parameter coverStrength (-1) is less than 0Parameter remixStrength (x) is not an integerParameter remixStrength (101) is more than 100Parameter remixStrength (-1) is less than 0Parameter audioInfluence (x) is not an integerParameter audioInfluence (101) is more than 100Parameter audioInfluence (-1) is less than 0Parameter styleInfluence (x) is not an integerParameter styleInfluence (101) is more than 100Parameter styleInfluence (-1) is less than 0Parameter start (x) is not a numberParameter start (601) is more than 600Parameter start (-1) is less than 0Parameter end (x) is not a numberParameter end (601) is more than 600Parameter end (-1) is less than 0Parameter email must be a stringParameter email is not a valid emailParameter async (x) valid values: 0,1,true,falseParameter replyUrl must be a stringParameter replyUrl is not a valid URLParameter replyRef must be a stringParameter replyRef length exceeds 1024 characters
-
The useapi.net API token is missing or wrong.
{ "error": "useapi.net ⁝ Unauthorized", "code": 401 } -
The useapi.net subscription is not active.
{ "error": "useapi.net ⁝ Your account has no subscription, please subscribe to our services before submitting requests", "code": 402 } -
A songId or image id belongs to another useapi.net user.
This needs a paid ACE Music plan (Creator or Artist). The account is on Free. The end of the error text is ACE Music’s own message.
{ "error": "Song user:[email protected]:so_8b1d5e0a47c92f63d1a8b5c0 is not yours", "code": 403 } -
The account is not connected (never added, or removed).
ACE Music no longer has what the request names. It was deleted.
{ "error": "Account [email protected] is not configured", "code": 404 } -
The account has too few ACE Music credits for this request.
costis the number of credits the request needs. It is missing when ACE Music does not say. If you didn’t pick the account, byemailor by the songs and images you referenced, we try your other accounts first. The Cost section of POST /music shows what each model and mode costs. Retry on another account, or add credits to the account.{ "error": "Generating the songs: Not enough credits — a generation costs 4.", "code": 412, "cost": 4 } -
The failed job
ACE Music could not make any of the songs, so the job failed. The answer is the job record, with
code422 and ACE Music’s reason inerror. A refunded song showsrefunded: true. Do not retry the same request.ACE Music could not make the songs. The error field says why. A song whose credits came back shows refunded: true.
{ "jobid": "j1114200257596846480m-u12345-email:[email protected]:so_000000000000000000000001.so_000000000000000000000002-bot:acemusic", "type": "music", "status": "failed", "email": "[email protected]", "created": "2026-11-14T20:02:57.596Z", "model": "ace-step-1.5-xl", "modelUsed": "acemusic-v1.1", "songs": [ { "songId": "user:[email protected]:so_000000000000000000000001", "taskId": "so_000000000000000000000001", "status": "interrupted", "title": "Untitled", "model": "acemusic-v1.1", "style": "upbeat pop mashup, bright synths", "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": "https://acemusic.ai/song/example00001", "created": "2026-11-14T20:02:57.619Z", "finished": null, "kind": "mashup", "score": false }, { "songId": "user:[email protected]:so_000000000000000000000002", "taskId": "so_000000000000000000000002", "status": "interrupted", "title": "Untitled", "model": "acemusic-v1.1", "style": "upbeat pop mashup, bright synths", "lyrics": null, "instrumental": false, "duration": null, "audioUrl": null, "playUrl": null, "playUrlExpires": null, "coverUrl": null, "pageUrl": "https://acemusic.ai/song/example00002", "created": "2026-11-14T20:02:57.620Z", "finished": null, "kind": "mashup", "score": false } ], "completed": "2026-11-14T20:03:46.414Z", "code": 422, "error": "The song was interrupted", "job_state": "failed", "outputs": [ { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_000000000000000000000001", "thumbnail_url": null }, { "ok": false, "url": null, "url_auth": "none", "mime": "audio/mpeg", "expires_at": null, "ref": "user:[email protected]:so_000000000000000000000002", "thumbnail_url": null } ], "error_info": { "code": "generation_failed", "message": "The song was interrupted", "retry": { "mode": "never" } } } -
ACE Music is still busy with other songs of this account.
Every usable account is already running its maxJobs requests.
The account this request needs is already running its maxJobs requests. It is the account you named, or the one that holds your referenced songs.
Wait the seconds in the
Retry-Afterheader, or 30 seconds if there isn’t one, then send the request again.{ "error": "Generating the songs: A few of your songs are still being made. Generate again once one is done.", "code": 429 }{ "error": "All 2 usable ACE Music accounts are running their maximum number of jobs (maxJobs), please retry shortly", "code": 429 }{ "error": "Account [email protected] is running 2 of 2 jobs (maxJobs). Wait for one to finish, or raise maxJobs with POST /accounts", "code": 429 } -
Something failed on our side.
{ "error": "Something went wrong on our side, please retry", "code": 500 }{ "error": "Generating the songs: ACE Music refused the call (HTTP 403). This is unexpected, please report it to support", "code": 500 } -
ACE Music may have accepted the request, and charged for it, but we didn’t get a usable answer. Check GET /music before you send it again. The songs may be there.
{ "error": "Generating the songs: ACE Music could not be reached: fetch failed. It may already have charged for this: check GET /music before retrying", "code": 502 }{ "error": "Generating the songs: ACE Music's answer could not be read (HTTP 200). It may already have charged for this: check GET /music before retrying", "code": 502 } -
ACE Music couldn’t take the request right now, or the account’s session is being renewed. This happens before any step that charges, so nothing was charged.
Wait the seconds in the
Retry-Afterheader, or 10 seconds if there isn’t one, then send the request again.{ "error": "ACE Music sign-in for [email protected] failed moments ago, please retry shortly", "code": 503 }{ "error": "ACE Music sign-in for [email protected] failed (ACE Music did not answer within 30 s), please retry shortly", "code": 503 }{ "error": "ACE Music session renewal for [email protected] failed (HTTP 503), please retry shortly", "code": 503 }{ "error": "ACE Music session renewal for [email protected] is in progress, please retry shortly", "code": 503 }{ "error": "ACE Music sign-in for [email protected] is in progress, please retry shortly", "code": 503 }{ "error": "ACE Music refused the session for [email protected] right after a fresh sign-in, please retry shortly", "code": 503 }{ "error": "Generating the songs: Too many people are making music right now — please try again in a few minutes", "code": 503 } -
ACE Music may have accepted the request, and charged for it, but we didn’t get a usable answer. Check GET /music before you send it again. The songs may be there.
{ "error": "Generating the songs: ACE Music did not answer within 30 s. It may already have charged for this: check GET /music before retrying", "code": 504 } -
596 Account Error
The failed job
ACE Music refused the account’s stored password. Add the account again with the current password (POST /accounts). If you named no account, it can also mean none of your accounts is healthy. If the password is refused while the request waits, the job fails, and you get its record with
code596. ACE Music may still finish the job. Once the account works again, you can read the job with GET /jobs/jobid.ACE Music refused the account’s stored email and password. Add the account again with the current password (POST /accounts).
ACE Music refused the stored email and password of the job’s account. Add the account again with the current password (POST /accounts), then read the job again.
No connected ACE Music account is healthy. Check GET /accounts, and add a paused account again with its current password.
{ "error": "Account [email protected]: ACE Music refused the stored email and password. Update the password with POST /accounts to resume using this account", "code": 596 }{ "error": "Account [email protected]: ACE Music refused the stored email and password. Update the password with POST /accounts to resume using this account", "code": 596 }{ "error": "No healthy ACE Music account configured. Check GET /accounts", "code": 596 }
Model
This is the job record. GET /jobs/jobid and the replyUrl webhook return the same shape. When a job fails in sync mode, the HTTP status is the record’s code and the body is the failed record.
The job record and the types it uses (Song, Split, DeletedSong, Output, ErrorInfo)
{ // TypeScript, fields marked ? may be absent
jobid: string // the job's id, `j...-u12345-email:[email protected]:so_...-bot:acemusic`. It names the account and the song or songs the job is about. Read the job with GET /jobs/{jobid}
type: "music" | "stems" // music: POST /music. stems: POST /music/stems
status: "processing" | "completed" | "failed" // processing: ACE Music is making the songs or the split (every job starts here). completed: done. A song job is completed when at least one of its two songs is ready. failed: no result. error says why, and code is the HTTP status
email: string // the ACE Music account the job runs on
created: string // ISO 8601
completed?: string // ISO 8601, when the job completed or failed
model?: string // music: the model you asked for
modelUsed?: string // music: the model that made the songs. It can differ from model. See Model switching on POST /music
songs?: (Song | DeletedSong)[] // music: the request's two songs, see Song below. A song you deleted after the job ended, with DELETE /music/{songId} or on acemusic.ai, is a DeletedSong
stems?: {
mode: "vocals" | "all" // the split you asked for
songId: string // the song that was split
songStatus?: "deleted" // the song was deleted, and its stems with it. The job failed with code 404
tracks: {
type: "vocal" | "instrumental" | "vocals" | "backing_vocals" | "drums" | "percussion" | "bass" | "guitar" | "keyboard" | "strings" | "brass" | "woodwinds" | "synth" | "fx" // the stem. Mode vocals gives vocal and instrumental, mode all one track for each other stem ACE Music found
url: string | null // signed mp3 link, valid 24 hours
duration?: number // seconds
}[] // one per stem
expires?: string // ISO 8601, when the track links stop working (read the job again for fresh ones)
} // on a stems job: the split
error?: string // status 'failed': why
code?: number // status failed: the HTTP status of the failure. 400: ACE Music could not read a referenced song's melody (read its score with GET /music/score, then run it again). 404: the account was removed, or a split's song was deleted. 422: ACE Music could not make the songs or the split. 504: not finished within 30 minutes (ACE Music may still finish it). 596: the account was signed out
replyUrl?: string // the replyUrl you sent: it receives this record when the job ends
replyRef?: string // the replyRef you sent, echoed back
job_state: "pending" | "in_progress" | "completed" | "failed" | "cancelled" | "expired" | "unknown" // where the job is, in the same words for every useapi.net API
outputs: Output[] // one entry per file the job made, see Output below
error_info?: ErrorInfo // only on a failed job: why, and whether to retry, see ErrorInfo below
}
Song:
{ // TypeScript, fields marked ? may be absent
songId: string // `user:[email protected]:so_...`, the song's id: use it as a reference, to split, download or delete
taskId: string // ACE Music's own id of the song (so_…)
status: "planning" | "scoring" | "queued" | "running" | "succeeded" | "failed" | "interrupted" // ACE Music's progress on the song
title: string | null // the song's title (ACE Music writes one for a prompt request)
model: string | null // acemusic-v1, acemusic-v1.1 or ace-step-1.5-xl. null for an uploaded file
style: string | null // the style the song was made with (ACE Music writes it for a prompt request)
lyrics: string | null // with tags such as [verse] and [chorus]
instrumental: boolean | null // true for a song with no vocals
duration: number | null // seconds
audioUrl: string | null // public mp3 link, `https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3`, once the song succeeded. It never changes, so store this one. null for an uploaded file. Get its audio with GET /music/download
playUrl?: string | null // a direct link to the song's audio for players, until playUrlExpires. For a made song it is the same mp3 as audioUrl and works about an hour. For an upload it is the uploaded audio and works 24 hours. Some browsers, such as Brave, block the redirect behind audioUrl, so store audioUrl and play playUrl. For about the first minute after a song is made, playUrl is the same link as audioUrl. You get it in job records, GET /music/{songId} and the POST /files answer for audio, not in GET /music. null while the song is not finished, or when we could not read the link
playUrlExpires?: string | null // ISO 8601, when playUrl stops working: read the job or the song again for a fresh one
coverUrl: string | null // cover art (jpg)
pageUrl: string | null // the song's page on acemusic.ai, when ACE Music made one
created: string | null // ISO 8601
finished: string | null // ISO 8601
kind: "original" | "cover" | "mashup" | "edit" | "upload" // how the song was made: original, cover, mashup, edit or upload. A remix shows as cover, and a file sent with POST /files as upload
score: boolean // true when ACE Music already has the song's score (GET /music/score)
error?: {
code?: string // ACE Music's code, e.g. `ref_no_melody`, `song_not_made`
message?: string // ACE Music's own words
reason?: string // ACE Music's reason, when it gives one
} // a failed song
refunded?: boolean // ACE Music gave the credits back for a failed song
stems?: {
vocals?: Split // mode vocals: vocal and instrumental
all?: Split // mode all: every stem ACE Music found
} // splits made with POST /music/stems. Their track links are signed (24 hours) on GET /music/{songId}, null elsewhere
upload?: {
seconds?: number // its length, counted against the account's upload minutes
bpm?: number // the tempo ACE Music read
transcription?: string // done once ACE Music has read its lyrics, style and melody
} // an uploaded audio file (POST /files)
}
Split:
{ // TypeScript, fields marked ? may be absent
status?: string // ACE Music's progress on the split
tracks: {
type?: "vocal" | "instrumental" | "vocals" | "backing_vocals" | "drums" | "percussion" | "bass" | "guitar" | "keyboard" | "strings" | "brass" | "woodwinds" | "synth" | "fx" // the stem
url: string | null // signed mp3 link (24 hours) on GET /music/{songId}, null elsewhere
duration?: number // seconds
}[] // one per stem
}
DeletedSong:
{ // TypeScript, fields marked ? may be absent
songId: string // the song's id, as it was
taskId: string // ACE Music's own id of the song (so_…)
status: "deleted" // deleted with DELETE /music/{songId} or on acemusic.ai
}
Output:
{ // TypeScript, fields marked ? may be absent
ok: boolean // true when this file is ready to use
url: string | null // the link to the file, always absolute
url_auth: "none" | "bearer" // none: open the link as it is. bearer: send your API token with it
mime: string // the file type, such as audio/mpeg
expires_at: string | null // ISO 8601, when the link stops working. null when it does not expire
ref: string | null // the id to use for this file in later calls
thumbnail_url?: string | null // a cover or preview image
text?: string // the text, when the output is text
}
ErrorInfo:
{ // TypeScript, fields marked ? may be absent
code: string // the kind of failure, in the same words for every useapi.net API, e.g. `timeout`, `generation_failed`, `input_rejected`, `not_found`, `account_unhealthy`
message: string // what went wrong, in the API's own words
retry: {
mode: "never" | "now" | "backoff" | "after" | "after_reset" | "other_account" // When to send the request again: - `never`: don't send it again as it is. `action` says what to change. - `now`: send it again right away. - `backoff`: send it again later, waiting longer each time. - `after`: send it again once the wait in `seconds` has passed. - `after_reset`: send it again once the account's credits or usage limit reset. - `other_account`: send it on another account.
seconds?: number // mode after: wait this long (or the Retry-After header)
max?: number // retry at most this many times
action?: string // what to change first, e.g. `fix_body`, `replace_input`, `add_credits`, `upgrade_plan`
} // whether and when to send it again
vendor_code?: string // the code the vendor answered with
}
Examples
-
curl -X POST "https://api.useapi.net/v1/acemusic/music" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"prompt":"A short cheerful ukulele tune about a sunny Saturday morning at the farmers market"}' -
const response = await fetch('https://api.useapi.net/v1/acemusic/music', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json' }, body: JSON.stringify({ "prompt": "A short cheerful ukulele tune about a sunny Saturday morning at the farmers market" }) }) console.log(response.status, await response.json()) -
import requests response = requests.post( 'https://api.useapi.net/v1/acemusic/music', headers={'Authorization': 'Bearer YOUR_API_TOKEN'}, json={ 'prompt': 'A short cheerful ukulele tune about a sunny Saturday morning at the farmers market' }, ) print(response.status_code, response.json())