Skip to main content
POST
Generate music from weighted prompts, up to three minutes.

Authorizations

Authorization
string
header
required

A workspace API key.

Body

application/json
prompts
object[]
required
Required array length: 1 - 10 elements
projectId
string
required

The project to file this work under. Required — create one with POST /v1/projects. A project this workspace does not own answers not_found; the work is never silently filed somewhere else.

Required string length: 1 - 200
durationMs
integer
default:30000
Required range: 5000 <= x <= 180000
bpm
integer
Required range: 60 <= x <= 200
density
number
Required range: 0 <= x <= 1

Response

Success.

success
boolean
required
{key}
any