ElevenLabs Music Text to Audio API

elevenlabs/music

ElevenLabs Music Text to Audio turns text descriptions into songs or instrumentals, with custom lyrics and section-based composition. Set global and local styles to guide the sound, then shape the arrangement with individual section durations.

Input

0 / 4100

Describe the genre, mood, instruments, and vocals in up to 4,100 characters. Entering text selects prompt-based creation.

Composition Plan

Add sections to arrange your track and set its global styles. Editing the plan selects section-based creation.

Positive Global Styles

Add one direction per item, such as acoustic guitar, soft drums, or warm vocals. The list may be empty.

Negative Global Styles

Add one style to avoid per item, such as heavy distortion or dense drums. The list may be empty.

Sections

Name this section in 1–100 characters, for example Intro, Verse, or Chorus.

Positive Local Styles

Add one direction per item, such as acoustic guitar, soft drums, or warm vocals. The list may be empty.

Negative Local Styles

Add one style to avoid per item, such as heavy distortion or dense drums. The list may be empty.

Set this section to 3–120 seconds. Decimal values are accepted.

Lines

Enter one lyric line per item, up to 200 characters each. For an instrumental section, leave the list empty and specify instrumental in its styles.

Name this section in 1–100 characters, for example Intro, Verse, or Chorus.

Positive Local Styles

Add one direction per item, such as acoustic guitar, soft drums, or warm vocals. The list may be empty.

Negative Local Styles

Add one style to avoid per item, such as heavy distortion or dense drums. The list may be empty.

Set this section to 3–120 seconds. Decimal values are accepted.

Lines

Enter one lyric line per item, up to 200 characters each. For an instrumental section, leave the list empty and specify instrumental in its styles.

Name this section in 1–100 characters, for example Intro, Verse, or Chorus.

Positive Local Styles

Add one direction per item, such as acoustic guitar, soft drums, or warm vocals. The list may be empty.

Negative Local Styles

Add one style to avoid per item, such as heavy distortion or dense drums. The list may be empty.

Set this section to 3–120 seconds. Decimal values are accepted.

Lines

Enter one lyric line per item, up to 200 characters each. For an instrumental section, leave the list empty and specify instrumental in its styles.

Name this section in 1–100 characters, for example Intro, Verse, or Chorus.

Positive Local Styles

Add one direction per item, such as acoustic guitar, soft drums, or warm vocals. The list may be empty.

Negative Local Styles

Add one style to avoid per item, such as heavy distortion or dense drums. The list may be empty.

Set this section to 3–120 seconds. Decimal values are accepted.

Lines

Enter one lyric line per item, up to 200 characters each. For an instrumental section, leave the list empty and specify instrumental in its styles.

Turn on to follow each section’s requested duration. Turn off to allow more flexible section timing.

Choose the audio codec, sample rate, and bitrate. The default is mp3_44100_128.

Examples

The Clockmaker's Clues

Create a 30-second instrumental jazz cue for a puzzle scene in a clockmaker's workshop. 104 BPM, lightly swinging 4/4, playful curiosity with a hint of mystery. Use plucked upright bass, brushed drums, muted trumpet and vibraphone, each clearly separated in a warm intimate acoustic mix. Begin with a distinctive four-note vibraphone motif over bass; let muted trumpet answer and develop that motif in the middle, while brush accents subtly increase the momentum. Resolve with a short, clean ensemble cadence and allow the last note to decay naturally. No vocals, choir, spoken words, ticking sound effects or abrupt cutoff.

Light Through the Kelp Forest

Compose a 40-second instrumental score for a nature documentary gliding through a sunlit underwater kelp forest. 72 BPM, gently flowing 4/4. Felt piano, delicate harp harmonics, soft sustained strings and a subtle low ambient texture; luminous, patient, full of quiet wonder. Start sparsely with isolated felt-piano notes and wide space. Gradually introduce harp and strings into an expansive rising harmony through the middle third, suggesting shafts of light moving through long fronds. Gently thin the arrangement and finish on a peaceful resolved chord with natural reverb decay. Detailed soft dynamics, wide stereo depth, no heavy percussion, no vocals or choir, no narration, no water sound effects, no abrupt cutoff.

ElevenLabs Music Text to Audio

ElevenLabs Music Text to Audio is an ElevenLabs model for creating songs and instrumentals from text descriptions or composition plans. Global styles establish a track’s musical direction, while local styles, lyrics, and durations shape individual sections. Use this control to develop background music for video edits, sketch podcast themes, or turn original lyrics into a song you can audition.

Why choose ElevenLabs Music

  • Set a musical direction in one promptDescribe genre, mood, instruments, and rhythm to create a track shaped around your scene or story.

  • Create songs or instrumentalsDescribe a vocal style or enable Is Instrumental for a music bed. Composition plans also let you supply lyrics section by section.

  • Plan the intro, verse, and chorusGive each section its own styles, lyrics, and duration to turn a track idea into a detailed arrangement.

  • Balance a shared style with section changesSet the overall character with global styles, then use local directions for a drum entrance, vocal lift, or instrumental ending.

Parameters

ParameterRequirementDescription
textRequired for text

Music description, 1–4,100 characters. Choose this or composition_plan.

Default—
composition_planRequired for a plan

Arrange the track by section, with global styles and sections. Choose this or text.

Default—
durationOptional with text

Target length for text input: 3–600 seconds, including decimals. Omit for model-selected length.

Default—
is_instrumentalOptional with text

Set true for instrumental music. Applies to text input.

Defaultfalse
respect_sections_durationsOptional with a plan

Controls adherence to requested section durations. Applies to composition_plan.

Defaulttrue
output_formatOptional

Select the audio codec, sample rate, and bitrate from the listed values.

Defaultmp3_44100_128mp3_22050_32mp3_44100_32mp3_44100_64mp3_44100_96mp3_44100_192pcm_8000pcm_16000pcm_22050pcm_24000pcm_44100pcm_48000ulaw_8000alaw_8000opus_48000_32opus_48000_64opus_48000_96opus_48000_128opus_48000_192
composition_plan.positive_global_stylesRequired for a plan

Style directions for the whole track, such as genre, instruments, and rhythm. An empty array is valid.

Default—
composition_plan.negative_global_stylesRequired for a plan

Style elements to avoid throughout the track. An empty array is valid.

Default—
composition_plan.sectionsRequired for a plan

At least one section, arranged in array order.

Default—
composition_plan.sections[].section_nameRequired per section

Section name, 1–100 characters, identifying structures such as an intro, verse, or chorus.

Default—
composition_plan.sections[].positive_local_stylesRequired per section

Instrument, vocal, and mood directions for this section. An empty array is valid.

Default—
composition_plan.sections[].negative_local_stylesRequired per section

Style elements to avoid in this section. An empty array is valid.

Default—
composition_plan.sections[].durationRequired per section

Target duration for this section: 3–120 seconds, including decimals.

Default—
composition_plan.sections[].linesRequired per section

One lyric line per item, up to 200 characters each. For instrumental sections, use an empty array and instrumental style directions.

Default—

How to create music

  1. Choose your creation pathWrite a music description in Text, or edit Composition Plan to arrange sections, styles, and lyrics.

  2. Set the sound and timingFor text input, set Duration and Is Instrumental. For a plan, set each section’s Duration and choose Respect Sections Durations.

  3. Review the format and estimateChoose Output Format and review the estimate on Run. Sign in, check your credit balance, then click Run.

  4. Listen and refinePlay the track in Output, then refine the instruments, lyrics, or section arrangement for your next generation.

Usage and pricing

ElevenLabs Music Text to Audio costs 128 credits ($0.64) per started minute. Divide the duration in seconds by 60 and round up; for a composition plan, sum all sections first.

UsageRateCalculation
3–60 seconds128 credits · $0.64Billed as one started minute.
60.1 seconds256 credits · $1.28Rounded up to two started minutes.
Multiple sectionsRound the combined duration up30 + 30 seconds counts as one minute; 30 + 30.1 seconds counts as two.
Text duration omittedEstimate: 128 credits · $0.64The pre-submission estimate uses one minute; the model chooses the generated length.

Music projects to explore

  • Video background musicDescribe instruments and rhythm around the scene’s mood, then choose instrumental output to create music for an edit.

  • Podcast intros and outrosSpecify how the intro begins and the outro resolves, using short sections to develop a recognizable musical theme.

  • Game scene music sketchesDescribe the setting, tension, and rhythm of a scene. Audition a short section before developing a full arrangement.

  • Original songwritingPlace your lyrics into verses and choruses, set vocal and accompaniment directions, and audition the arrangement.

Prompt and arrangement tips

  • Build prompts around genre, mood, instruments, rhythm, and vocals: “Warm indie folk, acoustic guitar, light drums, relaxed tempo, soft female vocals.”
  • Use global styles for the track’s shared direction and local styles for changes, such as full drums and vocal harmonies entering in the chorus.
  • Place lyrics into Lines in singing order. Allow time for the words in each section and plan instrumental passages for the intro and outro.
  • Start with a short passage to audition the tone and arrangement, then expand the plan. Change one main direction at a time to compare results.

Creation settings to check

  • Choose either a text description or a composition plan for each request, with the controls for that path.
  • Include at least one section in a plan. Keep style and lyric fields as arrays, using [] for empty lists.
  • Review the estimate on Run before submitting. Once complete, listen in Output or download the track from the file URL returned by the API.

ElevenLabs Music Text to Audio API frequently asked questions

What is the ElevenLabs Music Text to Audio API?

ElevenLabs Music Text to Audio is an ElevenLabs model for turning text descriptions into music. It creates songs or instrumentals, with composition plans for section-specific lyrics, styles, and timing. Global and local style controls combine an overall musical direction with changes across intros, verses, and choruses. You can call it programmatically or try it from the playground above.

How do I create instrumentals with ElevenLabs Music?

For text-based creation, enable Is Instrumental and describe the instruments, mood, and rhythm. In a composition plan, leave Lines empty for instrumental sections and specify instrumental music and the instrumentation in their style directions.

How do I use my own lyrics in ElevenLabs Music?

Enter your lyrics in each section’s Lines within Composition Plan, with one line per item and up to 200 characters per line. Use local styles to describe the language, vocal delivery, and accompaniment, then set the section’s duration.

How do I arrange verses and choruses in ElevenLabs Music?

Use Composition Plan to add an intro, verses, choruses, and an outro in performance order. Give each section its own name, styles, lyrics, and duration. Enable Respect Sections Durations to follow the requested section timing.

How do global styles shape an ElevenLabs Music arrangement?

Global styles set the shared genre, instruments, and mood; local styles describe a particular section. Positive lists specify elements to include, while negative lists specify elements to avoid. For example, set an acoustic folk direction globally and add drums and harmonies in the chorus.

How long can an ElevenLabs Music track be?

Text input accepts a requested duration of 3–600 seconds; leaving it blank lets the model choose the length. In a composition plan, set each section to 3–120 seconds and use multiple sections to organize the track. Durations accept decimal values.

How should I write an ElevenLabs Music prompt?

Start with genre and mood, then add the main instruments, rhythm, and vocal direction, such as “Light jazz, warm piano, brushed drums, instrumental.” For distinct structural changes, use a composition plan with local styles for each section. Text descriptions accept up to 4,100 characters.

Which audio formats does ElevenLabs Music offer?

Output Format offers MP3, Opus, PCM, μ-law, and A-law across 19 encoding and sample-rate configurations. The default mp3_44100_128 produces 44.1 kHz MP3 at 128 kbps. See Parameters for the complete list.

How does minute billing work for ElevenLabs Music?

Each started minute costs 128 credits ($0.64). Text input uses the requested duration; composition plans sum all section durations before rounding up. A 60-second request costs 128 credits, while 60.1 seconds costs 256. When text duration is omitted, the pre-submission estimate uses one minute and the model chooses the track length.