GET
/v1/schemas/elevenlabs/audio/v1%2Fmusic%2Fplan
Accept:
Request body
4 properties · 1 required · 9 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | A simple text prompt to compose a plan from. | length ≤ 4100 |
| music_length_ms | integer | The length of the composition plan to generate in milliseconds. Must be between 3000ms and 600000ms. Optional - if not provided, the model will choose a length based on the prompt. | 3000 ≤ n ≤ 600000 · nullable |
| source_composition_plan | MusicPrompt | CompositionPlan | An optional composition plan to use as a source for the new composition plan. | nullable |
| model_id | enum | The model to use for the generation. | music_v1 | music_v2 | music_v2_5 · default: "music_v1" |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"elevenlabs","endpointId":"v1/music/plan","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}