Skip to main content
POST
Creates the project and immediately queues the arrangement stage. This is asynchronous: the response does not contain a song.
string
required
API key for authentication.
string
required
Unique per distinct operation: 16–64 printable ASCII characters. Same key with the same body replays safely; same key with a different body is rejected with 47008.

Body

string
required
What the song is about. 1–800 code points.
string
required
One of the values from capabilities.genres.
string
Optional production notes, 0–120 code points. null is normalized to "".
array
required
1–3 distinct values from capabilities.moods.
string
required
A code from capabilities.supportedVocalLanguages (for example en).
number
required
One of capabilities.supportedDurationsSec: 60, 90, 120 or 180.
string
required
AUTO or CUSTOM. With AUTO, customLyrics must be absent or empty.
string
Required content only with lyricsMode: "CUSTOM" (20–2800 code points). Normalized to null under AUTO.
string
required
One of the values from capabilities.vocalStyles.

Response

string
Stable project identifier. Keep it — it is your recovery anchor.
string
ARRANGEMENT_GENERATING right after creation.
object
{ jobId, jobType: "ARRANGEMENT", status: "QUEUED" }.
A replay is not the first response replayed byte-for-byte: it re-reads the current project and may return the full project detail instead. Use projectId to query the resource.

Common errors

  • code = 47001: the brief failed validation (unknown enum, wrong duration, mood list empty or duplicated, description out of range).
  • code = 47008: the Idempotency-Key was reused with a different body.
  • code = 47011: temporarily unavailable — retry with backoff.
  • code = 47018: Text-to-Music is not available for this account or cohort.