Generate Song
generate_songRender the prepared song in the user's Abracadabrax account. Call this only after the user explicitly asked to generate, never on your own initiative: it spends the user's credits and sends the generation inputs to the configured model provider. Optional settings overwrite the saved project. Repeating with unchanged settings reuses a running or completed job, but a failed job can start a new paid attempt. Returns the job id and status; poll get_song_job for the audio. It needs the user's Abracadabrax account: the client asks the user to sign in when it is missing. Use this only to create a new song from a style description and (optional) lyrics. Do not use it for uploaded or existing audio: covers, remixes, extending or editing a track, stem separation, voice cloning or transcription.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Genre, mood, tempo, instruments and vocal style, e.g. 'upbeat indie pop, female vocals, 120 bpm, bright guitars'. | |
| title | No | Song title. | |
| lyrics | No | Full lyrics with section tags such as [Verse], [Chorus], [Bridge]. Write them with the user first; omit for an instrumental. | |
| model_id | No | Abracadabrax song model id: minimax-music (default, vocals + lyrics), acestep-create (fast, lyrics, chosen length), elevenlabs-music (studio, no lyrics), stable-audio (instrumental). | |
| model_name | No | ||
| project_id | Yes | ||
| duration_sec | No | Song length in seconds for models that support it (30, 60, 120, 180, 300). | |
| instrumental | No | True for a track without vocals. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| state | Yes | ||
| balance | No | ||
| message | Yes | ||
| project | Yes | ||
| dashboard_url | Yes | ||
| credits_required | Yes |