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
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

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.

Enter a gateway URL 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"
})