AI music API for ACE-Step 1.5

Send a recipe to the REST API with an API key and get songs back: the same models, settings, prices and refunds as the workbench. The body takes our recipe card or acestep-api fields, so code written for a self-hosted server moves over with few changes.

Workbench

54/512
Genre
Instruments
Mood
Vocal
166/4096[verse] 2 lines[chorus] 2 lines
Parameter rack
Model
Suno V5Not offered here
MiniMax Music 2.5Not offered here
Lyria 3 ProNot offered here
1:00

0:10 to 4:00

Type it, tap it, or leave auto for the planner.

Takes

Several takes per job, played in sync, come with the top plan. For an A/B now, re-run a take with one change. See plans

131 credits

Your takes

No takes yet

Sign up to generate. Your takes and their recipe cards are kept in your account.

How to call the AI music API

  1. 01

    Create an API key

    Open Settings → API keys and create a key. Send it as "Authorization: Bearer sk_…"; it spends this account's credits.

  2. 02

    POST a recipe

    POST /api/v1/songs with a recipe. The answer is 202 with the takes and their ids; credits are taken when the job starts.

  3. 03

    Poll and download

    GET /api/v1/songs/:id until the status is done, then fetch audio_url. A failed take is refunded automatically.

Endpoints

Every endpoint takes the same API key. JSON in, JSON out, snake_case fields.

MethodPathWhat it does
POST/api/v1/songsStart a job of 1 take, or up to 4 on the top plan
GET/api/v1/songsYour latest takes, newest first
GET/api/v1/songs/{id}One take: status, recipe, seed and audio_url
GET/api/song/audio/{id}?download=1The MP3 of a finished take
POST/mcpThe MCP server, for Claude, ChatGPT, Cursor and other clients

Example: one song, then poll

Set your key in ACE_KEY. The recipe below is the same JSON a recipe card copies.

curl -X POST https://ace-step.xyz/api/v1/songs \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "recipe": {
      "model": "ace15",
      "caption": "upbeat indie pop, jangly guitar, handclaps",
      "instrumental": true,
      "seconds": 60,
      "bpm": 124,
      "key": "G major",
      "meter": "4",
      "seed": 1234,
      "thinking": true,
      "steps": "standard"
    },
    "takes": 1
  }'
curl https://ace-step.xyz/api/v1/songs/TAKE_ID \
  -H "Authorization: Bearer sk_..."

# when "state" is "done":
curl -L "https://ace-step.xyz/api/song/audio/TAKE_ID?download=1" \
  -H "Authorization: Bearer sk_..." -o take.mp3

Recipes carry "schema": "ace-step.xyz/recipe@1". You may also send acestep-api fields (prompt, lyrics, duration, bpm, key_scale, time_signature, seed) as the whole body. "takes" runs from 1 to 4.

Rules of the API

The API follows the workbench rules exactly.

  • Keys are per account

    A key spends its account's credits. Delete a key in Settings and it stops working at once.

  • Lyrics must be yours

    When the recipe has lyrics, send "own_words": true to confirm they are yours to use. Captions that name an artist are refused.

  • Poll, do not hammer

    Songs usually take 1 to 5 minutes. Poll a few seconds apart, not in a tight loop; too many requests get a 429.

  • MCP uses the same key

    Clients that cannot sign in with OAuth can send the API key to the MCP server instead.

  • Several takes need the top plan

    "takes" above 1 answers 403 pro_required unless the account is on the top plan. A re-run with one change is always 1 take.

  • Errors in plain words

    Errors carry a message and a code: 401 bad key, 402 insufficient_credits, 403 pro_required, 422 for a refused caption, 429 for too many requests.

The models and what a take costs

All three are open-weight models by ACE Studio & StepFun. A failed take is refunded.

ModelLengthCreditsLicence
ACE-Step 1.510–240 s131 credits a takeMIT
ACE-Step 1.5 Long241–600 s251 credits a takeMIT
ACE-Step v1 Draft10–240 s81 credits a takeApache-2.0

Not offered here: Suno V5, MiniMax Music 2.5, Lyria 3 Pro. They show in the model picker as labels only.

Questions and answers

Is there a free AI music API?

The ACE-Step code includes a self-hosted API server you can run free on your own GPU. This hosted API uses credits: 131 per ACE-Step 1.5 take, and the 131 sign-up credits work here too.

Is this the official ACE-Step API?

No. It is our own hosted API, independent and not affiliated with ACE Studio or StepFun. It accepts acestep-api field names so existing code is easy to point here.

Which plans can use the API?

Every account, including the free credits. Jobs of several takes need the top plan; single takes and re-runs work on every plan.

Are there webhooks?

Not yet. Poll GET /api/v1/songs/:id; most takes finish within a few minutes.

Can I use the songs from the API commercially?

Yes, under the same Terms as the workbench: your lyrics must be your own, and captions must not imitate an artist.

Can I use the API from an AI assistant instead?

Yes. The MCP server gives Claude, ChatGPT, Cursor and VS Code tools to generate songs, re-run them with one change and fetch the audio.

Set the rack, generate, re-run with one change

Copying recipes is free. New verified accounts get 131 credits once, enough for one full song, and packs start at $34.13.

Open the workbench

Last updated: