Skip to main content
POST
Inspect the musical routing for a request without generating code. Use request setup for account headers.

JSON body

string
required
Nonempty musical request.
string
Saved project to supply metadata.
string
Existing pattern to transform.
number
30 to 300.
string
For example, A minor.
string
Song style.
string
For example, 4/4.
string
Reference track name.
object
Nonnegative start, end in seconds; optional trackId.
number
Nonnegative position in seconds.
string[]
Active stem names.
object[]
Each requires id, name, type; optional boolean muted, solo.
string
Context, at most 4,000 characters. Takes precedence over the aliases.
string
Context alias, at most 4,000 characters.
string
Second context alias, at most 4,000 characters.
boolean
Enable NDJSON. Accept: application/x-ndjson also enables it.

Response

string
compose or transform.
string[]
drums, bass, chords, arp.
string[]
Library slices selected for this request.
string
Selected genre reference.
string
Selected genre reference.
string
drums, bass, vocals, keys, master.
string
intro, verse, build, drop, breakdown.
integer
Character-based estimate of the prepared messages.
object
Key, scale notes, bass roots, chord symbols, voicings, chord map and four-bar reference patterns.
object[]
Prepared role and content messages.

Use the result

The response returns estimatedTokens with the routing and prepared messages. stream has no effect here. See Composer.