ElevenLabs Music

Generate high quality, realistic music with fine controls using Elevenlabs Music v2.5!

Input

Fields marked * are required. Review the price before generating.

The text prompt describing the music to generate

Additional settings

The chunk-based composition plan for the music

The chunks that make up the generation, in order. At most 30 chunks, totalling between 3000ms and 600000ms.

Tips and requirements

The length of the song to generate in milliseconds. Used only in conjunction with prompt. Must be between 3000ms and 600000ms. Optional - if not provided, the model will choose a length based on the prompt.

Tips and requirements

If true, guarantees that the generated song will be instrumental. If false, the song may or may not be instrumental depending on the prompt. Can only be used with prompt.

Tips and requirements

Random seed to initialize the music generation process. Can only be used with composition_plan. The same seed with the same parameters gives more consistent results, but exact reproducibility is not guaranteed.

Tips and requirements

Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.

Price$4.76 / run

You sign up first. Your settings are kept.

API code for this input

Uses your current form values and requests a new quote. Running the generation step uses your balance. Get an API key

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "elevenlabs/music/v2.5",
  "input": {
    "force_instrumental": false,
    "output_format": "mp3_48000_192"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "elevenlabs/music/v2.5", "quote_id": "QUOTE_ID", "input": {"force_instrumental":false,"output_format":"mp3_48000_192"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Set RAYWAKE_API_KEY before running. Replace QUOTE_ID and JOB_ID in cURL with the returned values. File links can expire; refresh them if you run the code later.

More runnable examples on GitHub

How to use ElevenLabs Music

Getting started

Describe a musical direction for a scene or idea. Include the mood and instrumentation you want, then listen to the complete result before choosing where to use it.

Example prompt

A relaxed instrumental track with soft piano, warm bass and a light rhythm. Keep the mood reflective and leave room for spoken narration.

Review your result

Listen through headphones and speakers. Check the beginning, transitions and ending; review the applicable terms for your intended use before publishing.

Inputs and settings

Choose either a descriptive prompt or a composition_plan for a structured arrangement. The prompt route uses music_length_ms for length in milliseconds; 30 seconds is 30,000 ms.

With a prompt, use force_instrumental when you want music without vocals. For a composition plan, define sections and review respect_sections_durations rather than applying prompt-only controls.

Select output_format from the current schema and quote the complete request. Listen to the beginning, transitions and ending; a musical prompt is not a text-to-speech script.

Is ElevenLabs Music copyright-free?

A generation is not a blanket copyright-free license. ElevenLabs Music has applicable usage terms and restrictions on inputs that reference protected songs or artists. Check the terms and the rights to your inputs for the intended use; a generation price alone does not establish distribution rights.