Skip to main content
POST
Layer requires trackName and the Base model. For seed, tempo, key or language controls, use /apply with task: "lego". Poll with the returned task kind lego. Completed edits remain pending until activation or merge.

Headers and parameters

string
required
Bearer $SESSION_TOKEN. Use the complete token from your active Rawchunks session.
string
required
Selected account address. Required for owner-scoped reads and writes. It identifies the account; your product must authenticate its own users.
string
Session network in CAIP-2 form, for example eip155:8453.

JSON body

string
required
Opaque ID returned by the API. Minimum length: 1.
string
Optional target stem in this song. Omit to use the master.
string
required
Wallet address for the selected account. Use the same address as the session owner. Minimum length: 10.
string
Optional source override, for example the url from Upload source. Use an HTTP(S) URL.
string
Select a mode listed for this task by GET /api/options. Defaults to base. Layer and Accompany require base. Values: turbo, sft, base.
string
Alternative to modelQuality. If both are sent they must match. Values: turbo, sft, base.
string
required
Description of the new instrument. Minimum length: 1.
string
Description of the overall song.
string
required
Instrument name. Required by the Layer service. Minimum length: 1.
string[]
number
Minimum: 5.
string[]

Response (202)

Accepted; follow the returned task.
string
required
string
required
string
string
required
Values: repaint, lego, complete, extend, cover, extract.
string
required
Values: pending, processing, ready, error.
object[]
Budget headers use six-decimal USDC atomic units. See session payments.

Errors

Failed JSON responses contain an error string. Check the HTTP status before reading a successful result. See job handling for interrupted or uncertain submissions.