Pricing
Compare models →Pricing is based on the requested music_length_ms.
Billing is calculated per started minute. Requested duration is rounded up to the next whole minute, with a minimum billed duration of 1 minute.
| Billing Unit | Cost |
|---|---|
Default settings (music_length_ms=30000, within the first started minute) | $0.75 |
Per started minute (music_length_ms=60000, 1 minute) | $0.75 |
Example Costs
Requested Duration (music_length_ms) | Billed Minutes | Cost |
|---|---|---|
music_length_ms=3000 (3 seconds) | 1 | $0.75 |
music_length_ms=30000 (30 seconds) | 1 | $0.75 |
music_length_ms=60000 (60 seconds) | 1 | $0.75 |
music_length_ms=61000 (61 seconds) | 2 | $1.50 |
music_length_ms=120000 (120 seconds) | 2 | $1.50 |
music_length_ms=300000 (300 seconds) | 5 | $3.75 |
music_length_ms=600000 (600 seconds) | 10 | $7.50 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Describe the genre, mood, instruments, vocals and optional lyrics of the music to generate. Maximum 4,100 characters.Characters: 1–4100 |
music_length_msRequired | integer | Requested music duration in milliseconds (3,000-600,000; 30,000 = 30 seconds). Required for predictable pricing; automatic duration is not supported.Default: 30000Minimum: 3000 · Maximum: 600000JSON schema{
"step": 1000
} |
force_instrumental | boolean | If true, guarantees instrumental music without vocals. If false, vocals depend on the prompt.Default: false |
output_format | string | MP3 output format, written as codec_sample_rate_bitrate. Default: mp3_48000_192 (48 kHz, 192 kbps).mp3_22050_32mp3_24000_48mp3_44100_32mp3_44100_64mp3_44100_96mp3_44100_128mp3_44100_192mp3_48000_128mp3_48000_192mp3_48000_240mp3_48000_320"mp3_48000_192" |
README
ElevenLabs Music v2
ElevenLabs Music v2 generates songs with vocals or instrumental tracks from a text description. Describe the genre, mood, instrumentation, vocal style, and optional original lyrics, then set the requested duration and output format to generate a complete music track.
Why Choose This?
- Prompt-to-music generation
Generate music directly from a text description.
- Vocal or instrumental output
Create songs with vocals based on the prompt, or enable force_instrumental for instrumental-only music.
- Duration control
Set the requested music length from 3 seconds to 10 minutes.
- Multilingual vocal support
Generate songs with vocals in different languages when specified in the prompt.
- Flexible music direction
Describe genre, mood, instruments, arrangement, production style, and vocal character.
- MP3 output format control
Choose the MP3 codec, sample rate, and bitrate through output_format.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Music description and optional original lyrics. Include genre, mood, instrumentation, vocal style, language, and production direction. Length: 1–4100 characters. |
| music_length_ms | Yes | Requested duration in milliseconds. Range: 3000–600000, from 3 seconds to 10 minutes. The playground starts at 30000 milliseconds. |
| force_instrumental | No | Set to true for instrumental-only music. Default: false. When disabled, vocals depend on the prompt. |
| output_format | No | MP3 codec, sample rate, and bitrate. Default: mp3_48000_192. |
How to Use
- Write your prompt — Describe the genre, mood, instruments, tempo, vocal style, language, and optional original lyrics.
- Set duration — Choose
music_length_msfrom3000to600000.
- Choose instrumental mode optional — Enable
force_instrumentalwhen you want music without vocals.
- Choose output format optional — Use the default
mp3_48000_192or select another supported MP3 output format.
- Submit — Generate the music track and retrieve the output.
Pricing
Pricing is based on the requested music_length_ms.
Billing is calculated per started minute. Requested duration is rounded up to the next whole minute, with a minimum billed duration of 1 minute.
| Billing Unit | Cost |
|---|---|
Default settings (music_length_ms=30000, within the first started minute) | $0.75 |
Per started minute (music_length_ms=60000, 1 minute) | $0.75 |
Example Costs
Requested Duration (music_length_ms) | Billed Minutes | Cost |
|---|---|---|
music_length_ms=3000 (3 seconds) | 1 | $0.75 |
music_length_ms=30000 (30 seconds) | 1 | $0.75 |
music_length_ms=60000 (60 seconds) | 1 | $0.75 |
music_length_ms=61000 (61 seconds) | 2 | $1.50 |
music_length_ms=120000 (120 seconds) | 2 | $1.50 |
music_length_ms=300000 (300 seconds) | 5 | $3.75 |
music_length_ms=600000 (600 seconds) | 10 | $7.50 |
Best Use Cases
- Song generation — Create complete songs from a descriptive prompt and optional original lyrics.
- Instrumental music — Generate backing tracks, music beds, loops, or soundtrack-style audio.
- Multilingual vocal tracks — Create vocal music in different languages by specifying the language in the prompt.
- Content creation — Generate music for videos, podcasts, ads, games, and social media.
- Creative prototyping — Test different genres, moods, arrangements, and vocal directions quickly.
- Custom soundtrack workflows — Create tracks tailored to a specific scene, product, brand, or story.
Pro Tips
- Include genre, mood, instruments, tempo, vocal style, and production cues in the prompt.
- Add original lyrics directly in the prompt when you want more control over the song content.
- Use
force_instrumental=truewhen you need background music without vocals.
- Set the duration close to what you actually need, since billing uses the requested duration.
- Use concise, specific music direction instead of mixing too many unrelated genres.
- Keep vocals, language, and lyrical direction clear when generating songs with singing.
Notes
promptandmusic_length_msare required.
music_length_mssupports3000–600000milliseconds.
- The minimum billed duration is
1started minute.
- Billing is based on requested duration, not measured output length.
- Automatic duration, composition plans, reference audio, and seed are not exposed in this version.
- Do not submit unsupported fields.
Related Models
- ElevenLabs Music — Generate music from text prompts with the earlier ElevenLabs Music workflow.
- ElevenLabs Music v2 — Generate vocal or instrumental music with prompt-based duration control.
- ElevenLabs Music v2.5 — Newer ElevenLabs music generation model for upgraded music workflows.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
ElevenLabs Music V2 AI Music Generation API example
The catalog lists POST https://api.opensi.com.ai/api/v3/elevenlabs/music-v2 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": 30000,
"force_instrumental": false,
"output_format": "mp3_48000_192"
}ElevenLabs Music V2 AI Music Generation API — Frequently asked questions
What is the Music v2 API?
Music v2 is a ElevenLabs model for music generation, exposed as a REST API on OpenSIAI. ElevenLabs Music v2 Text-to-Music generates songs with vocals or instrumental music from text prompts, with configurable duration and MP3 output for songwriting demos, 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 v2 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-v2.
How much does Music v2 cost per run or per second?
Music v2 starts at $0.75 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 v2 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-v2.
How long does Music v2 take to generate?
Reported generation time on OpenSIAI is around 8 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 v2 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.
