← PixelAPI · Tools · All docs · Pricing
Turn a style prompt and lyrics into a full song with vocals, or generate instrumental background music. ACE-Step 1.5 (MIT licence), 10-120 seconds, MP3 output, 28 credits per song or track (≈ $0.028 on Starter).
/v1/song/generateJSON body. Returns the MP3 output_url inline, or a generation_id to poll.
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | yes | Style description: genre, mood, instruments (max 500 characters). |
lyrics | string | no* | Lyrics to sing (max 2,000 characters). *Required unless instrumental is true. |
duration | integer | no | Length in seconds, 10-120 (default 30). |
language | string | no | Vocal language: en (default), hi, zh, ja, ko. |
instrumental | boolean | no | Set true for a track with no vocals. |
curl -X POST https://api.pixelapi.dev/v1/song/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "upbeat indie pop, electric guitar, drums", "lyrics": "[verse]\nCity lights are calling me\n[chorus]\nWe run all night", "duration": 60, "language": "en", "instrumental": false}'
# quick jobs return output_url inline; otherwise status is "processing":
curl https://api.pixelapi.dev/v1/song/GENERATION_ID -H "Authorization: Bearer YOUR_API_KEY"
/v1/audio/generate (instrumental shortcut)Same engine and price with instrumental forced on.
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | yes | Describe the music (genre, mood, instruments). |
duration | integer | no | Seconds, 10-120 (default 30). |
curl -X POST https://api.pixelapi.dev/v1/audio/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "calm corporate background music, soft piano and strings", "duration": 30}'
# if the response has status "processing", poll:
curl https://api.pixelapi.dev/v1/song/GENERATION_ID -H "Authorization: Bearer YOUR_API_KEY"
Short songs return output_url in the response. Longer ones return status: "processing" with a generation_id; poll GET /v1/song/{generation_id} until status is completed.
Try it in the appSong generationInstrumental music
28 credits per song or instrumental track, for any length from 10 to 120 seconds. 1 credit = $0.001 on the Starter plan.
ACE-Step 1.5, released under the MIT licence.
Yes. Set instrumental to true on /v1/song/generate, or call /v1/audio/generate.
English, Hindi, Chinese, Japanese and Korean.
MP3.