ElevenLabs Music v2

Music Generation • ElevenLabs

elevenlabs/music-v2

  • Third-party

ElevenLabs Music v2 composes songs and instrumental tracks from a prompt or detailed composition plan.

Model Info
Terms and License link ↗
More information link ↗
Pricing <ul><li>output audio seconds$0.0025</li><li>Default (per second)$0.0025</li></ul>

Usage

const response = await env.AI.run(
  'elevenlabs/music-v2',
  {
    prompt: 'A warm cinematic ambient track with soft piano, subtle strings, and a hopeful mood',
    music_length_ms: 30000,
    force_instrumental: true,
    output_format: 'mp3_48000_192',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "elevenlabs/music-v2",
  "input": {
    "prompt": "A warm cinematic ambient track with soft piano, subtle strings, and a hopeful mood",
    "music_length_ms": 30000,
    "force_instrumental": true,
    "output_format": "mp3_48000_192"
  }
}'
{
  "state": "Completed",
  "result": {
    "audio": "https://examples.aig.cloudflare.com/elevenlabs/music-v2/cinematic-instrumental.mp3"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

Parameters

prompt

stringminLength: 1

▶composition_plan{}

object

music_length_ms

integerminimum: 3000maximum: 600000

output_format

stringenum: auto, mp3_48000_128, mp3_48000_192, mp3_48000_240, mp3_48000_320, mp3_22050_32, mp3_24000_48, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192, opus_48000_32, opus_48000_64, opus_48000_96, opus_48000_128, opus_48000_192

seed

integerminimum: 0maximum: 4294967295

force_instrumental

boolean

store_for_inpainting

boolean

sign_with_c2pa

boolean

audio

stringURL to the generated music file.

API Schemas (Raw)

Input Open Download

Output Open Download

Was this helpful?

YesNo

On this page

ElevenLabs Music v2 - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai/models/elevenlabs/music-v2/#page","headline":"ElevenLabs Music v2","description":"ElevenLabs Music v2 composes songs and instrumental tracks from a prompt or detailed composition plan.","url":"https://developers.cloudflare.com/ai/models/elevenlabs/music-v2/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Fireworks' Ember-1 is a specialized long-context multimodal reasoning model built on Kimi K3. It produces shorter reasoning traces using approximately 40% fewer tokens while maintaining comparable quality across Fireworks' evaluations. title: Ember-1 image: https://developers.cloudflare.com/og-docs.png


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/llms.txt
Use this file to discover all available pages before exploring further.

Fireworks logo