ace-step-1.5
Open-source text to music. Full songs with vocals and lyrics in 50+ languages. $0.20 per minute of music, billed per second, plus the $0.05 request fee.
Native waveform: MP3, 48 kHz stereo. POST /v1/music.. Live price and availability are on GET /v1/models/ace-step-1.5.
- Call POST /v1/music with a JSON body. The prompt is text at the top level.
- Billing follows the length of the song returned, at $0.20 per minute counted per second, plus the $0.05 request fee.
- Length: ACE-Step chooses it. In our tests a 30-second request came back between 16 and 223 seconds, and 45 seconds came back as 157 seconds. duration_seconds and naming a length in the prompt nudge it at most. Set a cap in your own code if length matters.
- The account needs about $0.85 free when the call starts: the hold covers a 4-minute song and the unused part is returned.
- result.artifacts has one MP3, 48 kHz stereo. result.usage.measured_seconds is the billed length.
- result.lyrics has the lyrics: the model's own when you send none, or yours. result.caption describes the arrangement, and result.music_metadata has bpm, key, time_signature, duration, and language. There are no word or line timestamps.
Parameters
| Field | Type | Description |
|---|---|---|
textRequired | string | Top level of the body. The music to make: genre, instruments, mood, and style. prompt is accepted as the same field. |
params.lyrics | string | Words to sing, up to 5000 characters. Section tags like [Verse] and [Chorus] are allowed. Omit it and the model writes the lyrics. |
params.instrumentalDefault false | boolean | No vocals. lyrics is ignored when this is true. |
params.duration_seconds | integer | A hint only, 10 to 600. ACE-Step mostly picks its own length and may ignore this; see the notes below. Billing follows the length returned. |
params.bpm | integer | 30 to 300. Omit it and the model picks the tempo. |
params.vocal_language | string | Language of the vocals, for example en, hi, zh, ja, or es. Omit it to detect from the lyrics. |
params.temperatureDefault 0.85 | number | 0.0 to 2.0. Planner sampling temperature. |
params.top_pDefault 0.9 | number | Above 0 and up to 1. Planner nucleus sampling. |
params.thinkingDefault false | boolean | Let the planner reason longer before writing the song. Slower. |
params.use_cot_metasDefault true | boolean | Let the planner choose BPM, length, key, and time signature. |
params.use_cot_captionDefault true | boolean | Let the planner rewrite and expand the prompt. |
params.use_cot_languageDefault true | boolean | Let the planner detect the vocal language. |
params.use_formatDefault true | boolean | Let the planner tidy the prompt and lyrics before generating. |
Example
curl https://api.pascalai.co/v1/music \
-H "Authorization: Bearer $PASCAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "ace-step-1.5",
"text": "Upbeat pop song about a cat, bright synths, female vocal.",
"params": {
"lyrics": "[Verse]\nMy cat sleeps all day\nThen runs at night\n[Chorus]\nKing of the house",
"bpm": 110,
"vocal_language": "en"
}
}'
curl https://api.pascalai.co/v1/music/$JOB_ID \
-H "Authorization: Bearer $PASCAL_API_KEY"