Skip to main content
POST
Compose a new Strudel part or transform the current pattern. 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.

JSON response

string
Validated pattern.
string
Short musical rationale.
object
Routing summary described below.

Graph summary

NDJSON events

Use the result

Integrate Composer. JSON is the default; consume streamed events by type. The /strudel/ alias has the same contract.