Skip to main content
POST
Provide exactly one of prompt and composition_plan. Prompt accepts up to4100 characters. In prompt mode, music_length_ms is an integer from3000 to600000ms; omit it to let the model choose. force_instrumental defaults to false and is only valid in prompt mode. A plan has1–30 ordered chunks, totaling3000–600000ms. Each requires text (may be empty), duration_ms (3000–120000) and positive_styles. Negative styles and context_adherence are optional. Lyrics allow at most30 lines of200 characters per chunk. Seed is only valid with a plan and does not guarantee reproducibility. output_format defaults to auto, resolving to mp3_48000_192. sign_with_c2pa defaults to false and requires MP3 (including auto); it never silently changes your format. Audio references, explicit timestamps (including false), and safety controls retain their full meaning; unavailable combinations fail explicitly. Actual complete output duration is rounded up to whole minutes at $0.6/minute. Both3 seconds and60 seconds count as1 minute; over60 seconds counts as2. Requested duration estimates the reservation; decoded output duration, saved prices and group multipliers determine final settlement. Query the task and download results[0].url. Composition plans, song metadata and word timestamps are retained only when returned; ordinary audio may have no detailed metadata. Decode raw formats using returned sample rate, channels and Content-Type, and save audio promptly.

Authorizations

Authorization
string
header
required

All endpoints require Bearer authentication.

Add this request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:elevenlabs-music-v2.5
required

elevenlabs-music-v2.5: prompt or composition plan, 3–600 seconds. Actual complete output duration rounds up to whole minutes at $0.6/minute.

Example:

"elevenlabs-music-v2.5"

prompt
string | null

Music description, 1–4100 characters. Provide exactly one of prompt and composition_plan.

Required string length: 1 - 4100
Example:

"Mysterious jungle soundtrack with woodwinds and rhythmic percussion."

composition_plan
object | null

Ordered composition plan, mutually exclusive with prompt. Each chunk can specify lyrics and styles. Explicit references require full support.

Example:
music_length_ms
integer | null

Integer duration in milliseconds, 3000–600000, prompt mode only. Omit to let the model choose. Final billing uses actual complete output duration rounded up to minutes.

Required range: 3000 <= x <= 600000
Example:

30000

force_instrumental
boolean
default:false

Prompt mode only. True guarantees instrumental music; false lets the prompt determine vocals.

Example:

true

seed
integer | null

Optional random seed, composition_plan mode only. Zero is valid. Reproducibility is not guaranteed.

Required range: 0 <= x <= 2147483647
Example:

42

output_format
enum<string>
default:auto

Output format. Auto resolves to mp3_48000_192. Signing never changes the specified format.

Available options:
auto,
mp3_22050_32,
mp3_44100_32,
mp3_44100_64,
mp3_44100_96,
mp3_44100_128,
mp3_44100_192,
pcm_8000,
pcm_16000,
pcm_22050,
pcm_24000,
pcm_44100,
pcm_48000,
ulaw_8000,
alaw_8000,
opus_48000_32,
opus_48000_64,
opus_48000_96,
opus_48000_128,
opus_48000_192,
mp3_24000_48,
mp3_48000_128,
mp3_48000_192,
mp3_48000_240,
mp3_48000_320,
pcm_32000
Example:

"mp3_48000_192"

enable_safety_checker
boolean | null

Explicit safety control; false is not ignored. Unsupported requests fail explicitly.

Example:

true

timestamps
boolean | null

Request timestamps only when the complete capability is available. Unsupported requests fail explicitly. For Music, explicit false still requests the detailed-result behavior; omit/null to leave it unspecified.

Advanced option: omit unless needed.

Example:

true

sign_with_c2pa
boolean
default:false

Add a content provenance signature. MP3 only, including auto. Defaults to false; never changes a specified format.

Example:

false

Response

Task created

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

elevenlabs-music-v2.5: prompt or composition plan, 3–600 seconds. Actual complete output duration rounds up to whole minutes at $0.6/minute.

object
enum<string>

Task type

Available options:
audio.generation.task
progress
integer

Task progress (0–100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Asynchronous task information

type
enum<string>

Output type

Available options:
audio
Example:

"audio"