Model API

ElevenLabs Music v2

Original music from a plain-language brief with ElevenLabs Music v2: genre, mood, instruments and structure, 10 seconds to 5 minutes, with or without vocals. For videos, ads, podcasts and games.

Model id

Use this in every request
elevenlabs-music-v2

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 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",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light"
  }
}'

# 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", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'

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

Input

Input fields for elevenlabs-music-v2
NameTypeDescription
promptrequiredstring
Required. Describe the music you want. Mention genre, instruments, mood and tempo, and the structure if you have one in mind.
outputFormatstring (enum)
Required.

Default: mp3_44100_128

One of: mp3_22050_32, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128

durationstring (enum)
Required. Length of the track.

Default: 30

instrumentalstring (enum)
Optional. Forces a track with no vocals. Set false to let the prompt decide whether the song is sung.

Default: true

One of: false, true

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]

Pricing

  • 10 s$0.04/ audio
  • 15 s$0.06/ audio
  • 20 s$0.08/ audio
  • 25 s$0.10/ audio
  • 30 s$0.12/ audio
  • 35 s$0.14/ audio
  • 40 s$0.16/ audio
  • 45 s$0.18/ audio
  • 50 s$0.20/ audio
  • 55 s$0.22/ audio
  • 60 s$0.24/ audio
  • 70 s$0.28/ audio
  • 80 s$0.32/ audio
  • 90 s$0.36/ audio
  • 100 s$0.40/ audio
  • 110 s$0.44/ audio
  • 120 s$0.48/ audio
  • 130 s$0.52/ audio
  • 140 s$0.56/ audio
  • 150 s$0.60/ audio
  • 160 s$0.64/ audio
  • 170 s$0.68/ audio
  • 180 s$0.72/ audio
  • 190 s$0.76/ audio
  • 200 s$0.80/ audio
  • 210 s$0.84/ audio
  • 220 s$0.88/ audio
  • 230 s$0.92/ audio
  • 240 s$0.96/ audio
  • 250 s$1.00/ audio
  • 260 s$1.03/ audio
  • 270 s$1.07/ audio
  • 280 s$1.11/ audio
  • 290 s$1.15/ audio
  • 300 s$1.19/ audio

The exact charge for your input comes from a quote. How charges settle