Music and sound effects API
Use audio models through the shared generations endpoint.
Music and sound effects use POST /generations with mode: "audio". Discover current audio models with GET /models?mode=audio and inspect their capabilities.
Music example
When the selected model supports lyrics or duration, provide the corresponding parameters values from its capabilities. Do not copy the old num_songs, tags-combination rules, or output-format fields into this API.
Sound effect example body
Check the model catalog before choosing duration and looping settings. These requests require generations:write. Creation returns 202; poll GET /generations/{id} with generations:read for outputs.
Both music and sound effects consume workspace credits. Costs vary by model and settings; they do not use the legacy API's per-minute dollar wallet.