Pricing
Compare models →The price depends only on the length of the generated audio, billed by the exact length requested. The default request (10 seconds) costs $0.10 per run.
Duration (music_length_ms) | Cost |
|---|---|
5 seconds (music_length_ms = 5000) | $0.05 |
10 seconds (music_length_ms = 10000) | $0.10 |
30 seconds (music_length_ms = 30000) | $0.30 |
1 minute (music_length_ms = 60000) | $0.60 |
2 minutes (music_length_ms = 120000) | $1.20 |
5 minutes (music_length_ms = 300000) | $3.00 |
Billing Rules
- Billed by
music_length_ms, prorated to the exact length - no rounding - Supported length is 5 to 300 seconds
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Text description of the music you want to generate.Characters: 0–4096 |
music_length_ms | integer | Target duration in milliseconds (5,000-300,000ms, i.e., 5 seconds to 5 minutes).Default: 10000Minimum: 5000 · Maximum: 300000 |
force_instrumental | boolean | Generate instrumental music without vocals.Default: true |
output_format | string | Audio output format and quality.mp3_standardmp3_high_qualitywav_16khzwav_22khzwav_24khzwav_cd_quality"mp3_standard" |
README
ElevenLabs Music
ElevenLabs Music is an AI music generation model that creates songs with vocals or instrumental tracks from text prompts. Describe the genre, mood, and style, include lyrics with structure markers, and the model generates professional-quality music with flexible output formats.
Why Choose This?
- Songs with vocals or instrumental
Generate complete songs with AI vocals, or switch to instrumental-only mode.
- Flexible song length
Control output duration precisely with millisecond-level adjustment.
- Multiple output formats
Export as MP3 (standard/high quality) or WAV at various sample rates.
- Style and lyrics in one prompt
Combine style tags and structured lyrics in a single prompt field.
- Prompt Enhancer
Built-in tool to automatically improve your music descriptions.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Style description and lyrics with structure markers |
| music_length_ms | No | Output duration in milliseconds (default: 40000) |
| force_instrumental | No | Generate instrumental only without vocals (default: disabled) |
| output_format | No | Output format (see options below, default: mp3_standard) |
Output Format Options
| Format | Description |
|---|---|
| mp3_standard | Standard quality MP3 |
| mp3_high_quality | High quality MP3 |
| wav_16khz | WAV at 16kHz sample rate |
| wav_22khz | WAV at 22kHz sample rate |
| wav_24khz | WAV at 24kHz sample rate |
| wav_cd_quality | WAV at CD quality (44.1kHz) |
Prompt Format
Combine style tags and lyrics in the prompt field. Start with genre, mood, and instrument descriptions, then add structured lyrics:
Example:
Hard Trap, Hip Hop, 808 bass, energetic flow, confident male rap vocals, brass stabs, hype music, motivational sports anthem.
[Verse] Laced up tight, ready to go
Putting on a major show
Sweat and tears on the floor
Coming back to get some more
[Chorus] We don't stop, we don't quit
Every rep, every hit
How to Use
- Write your prompt — describe the musical style and include lyrics with structure markers.
- Set duration — adjust music_length_ms for desired song length.
- Enable instrumental (optional) — check to generate music without vocals.
- Choose output format — select MP3 or WAV at your preferred quality.
- Run — submit and download your generated music.
Pricing
The price depends only on the length of the generated audio, billed by the exact length requested. The default request (10 seconds) costs $0.10 per run.
Duration (music_length_ms) | Cost |
|---|---|
5 seconds (music_length_ms = 5000) | $0.05 |
10 seconds (music_length_ms = 10000) | $0.10 |
30 seconds (music_length_ms = 30000) | $0.30 |
1 minute (music_length_ms = 60000) | $0.60 |
2 minutes (music_length_ms = 120000) | $1.20 |
5 minutes (music_length_ms = 300000) | $3.00 |
Billing Rules
- Billed by
music_length_ms, prorated to the exact length — no rounding
- Supported length is 5 to 300 seconds
Best Use Cases
- Original Music — Generate complete songs for creative projects.
- Instrumental Tracks — Create background music for videos, podcasts, and games.
- Rap & Hip Hop — Produce tracks with AI vocals and beat production.
- Demo Production — Quickly prototype song ideas before studio recording.
- Content Soundtracks — Custom music for social media and marketing.
Pro Tips
- Use the Prompt Enhancer to refine your style descriptions.
- Include specific genre, instrument, and mood tags at the start of your prompt.
- Use [Verse], [Chorus], [Bridge] markers in lyrics for structured song arrangement.
- Enable force_instrumental for background music or beat production.
- Use wav_cd_quality for highest audio fidelity, mp3_standard for smaller file sizes.
- Adjust music_length_ms to match your desired song duration precisely.
Notes
- Only prompt is required; other parameters have defaults.
- Duration is set in milliseconds (e.g., 40000 = 40 seconds, 120000 = 2 minutes).
- force_instrumental overrides any lyrics in the prompt.
- For best results, combine detailed style tags with well-structured lyrics.
Related Models
- ElevenLabs Dubbing — AI-powered video and audio dubbing.
- ElevenLabs Voice Changer — Transform voice recordings with AI.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
ElevenLabs Music AI Music Generation API example
The catalog lists POST https://api.opensi.com.ai/api/v3/elevenlabs/music for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"music_length_ms": 10000,
"force_instrumental": true,
"output_format": "mp3_standard"
}ElevenLabs Music AI Music Generation API — Frequently asked questions
What is the Music API?
Music is a ElevenLabs model for music generation, exposed as a REST API on OpenSIAI. ElevenLabs Music Text-to-Music generates original songs from text descriptions, supporting instrumental tracks, full compositions, customizable duration, background music, social content, ads, and creative audio production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Music API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/elevenlabs/music.
How much does Music cost per run or per second?
Music starts at $0.1 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Music accept?
Key inputs: prompt, force_instrumental, music_length_ms, output_format. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/elevenlabs/music.
How long does Music take to generate?
Reported generation time on OpenSIAI is around 11 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Music outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (ElevenLabs). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
