provider music-generation POST /v1/music/plan
@utdk/elevenlabs /v1/music/plan
Generate Composition Plan
Generate a composition plan from a prompt.
xi-api-key header
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
composePlan
POST/v1/music/plan
Generate a composition plan from a prompt.

Input

required

A simple text prompt to compose a plan from.

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.

An optional composition plan to use as a source for the new composition plan.

The model to use for the generation.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.composePlan({
  "model_id": "music_v1"
})