Back to Media creation

Eleven Music v2

ElevenLabs

Generate music from text prompts with duration and composition controls.

Current price
$0.2100/minute
Availability
Ready to run
Last accepted verification
Not available

What this API does

Generate a 3–60 second MP3 music clip from a prompt with Eleven Music v2. Duration is required so the estimate is exact before the paid call.

Agents select this operation with tool ID elevenlabs.eleven-music-v2, then inspect its current executable contract before a run.

Public input and output shape

Input

force_instrumentalboolean · optional

Value supplied for force instrumental.

music_length_msinteger · required

Value supplied for music length ms.

minimum: 3000 · maximum: 60000

promptstring · required

Instruction describing the requested generated output.

minLength: 1 · maxLength: 4100

Output

content_typestring

Returned content type value.

duration_msnumber

Returned duration ms value.

notestring

Returned note value.

Example request and output

This reviewed worked example is shared with inspect. Inspect also returns the current executable schema and price estimate before a paid run.

Request

{
  "tool_id": "elevenlabs.eleven-music-v2",
  "input": {
    "prompt": "A concise warm instrumental podcast sting, optimistic and modern, no vocals.",
    "music_length_ms": 3000,
    "force_instrumental": true
  }
}

Output

{
  "note": "music returned as an artifact",
  "duration_ms": 3000,
  "content_type": "audio/mpeg"
}
Teaching errors and limitations
  • invalid_input: music_length_ms must be between 3,000 and 60,000example: {"prompt":"A concise warm instrumental podcast sting, optimistic and modern, no vocals.","music_length_ms":3000,"force_instrumental":true}
Updated
18 August 2026

Use Eleven Music v2 with Scrollport

Scrollport identifies and validates the best-in-class API tools and provides them on a pay-as-you-go basis so you don't need to maintain a separate provider account, subscription or credits.

Give your agent the setup prompt to receive $1 in trial credit and start using the tools right away.