Spiral gives your agent every tool with one account. Browse the tools →

falAudioAvailable nowReleased 2025-08-05

Elevenlabs Music

fal-ai/elevenlabs/music

Turn text into speech and audio with Elevenlabs Music from fal through one Spiral API key. It runs in the background and returns audio. Pay as you go, with no subscription.

Pricing

$0.78 per minute. Billed on music_length_ms, default 600,000, rounded up to the next minute.

Limits

Runs
In the background
Returns
audio
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
255 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
prompttext—

The text prompt describing the music to generate

composition_planJSON—

The composition plan for the music

music_length_msnumber (whole)
3000 to 600000
—

The length of the song to generate in milliseconds. Used only in conjunction with prompt. Must be between 3000ms and 600000ms. Optional - if not provided, the model will choose a length based on the prompt.

force_instrumentaltrue or falsefalse

If true, guarantees that the generated song will be instrumental. If false, the song may or may not be instrumental depending on the prompt. Can only be used with prompt.

respect_sections_durationstrue or falsetrue

Controls how strictly section durations in the composition_plan are enforced. It will only have an effect if it is used with composition_plan. When set to true, the model will precisely respect each section's duration_ms from the plan. When set to false, the model may adjust individual section durations which will generally lead to better generation quality and improved latency, while always preserving the total song duration from the plan.

output_formatone of
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_44100_128

Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/elevenlabs/music",
    "input": {
      "prompt": "Mysterious original soundtrack, themes of jungle, rainforest, nature, woodwinds, busy rhythmic tribal percussion."
    }
  }'

Frequently asked questions

How much does Elevenlabs Music cost?

$0.78 per minute. Billed on `music_length_ms`, default 600,000, rounded up to the next minute. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Elevenlabs Music through an API?

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/elevenlabs/music"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with fal to use Elevenlabs Music?

No. Spiral runs it on its own fal account and charges your Spiral balance.

Can my AI agent use Elevenlabs Music?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.