Music Generator
Generate original background music that matches any mood, genre, and length you describe. Royalty-free, ready in seconds.
Describe genre, mood, instruments, tempo, key, structure, and the track's intended use.
Requested track length in seconds. Model output can vary slightly.
Runs on
-
Google
-
ElevenLabs
Examples
Pyra's Violet Wings: her theme
ElevenLabs Music. Pyra's own theme: a dreamy, instrumental orchestral-electronic score written from one prompt, melodic and structured, ready to sit under any clip.
How to use Music Generator
A compact decision guide for placing this pipeline in a workflow.
Best for
- Background scores for documentaries, podcasts, and videos
- Mood-setting ambient music, cinematic underscore, lo-fi, orchestral
- Genre-specific tracks anchored to a reference style (EDM, trailer, corporate uplifting)
Tips
- Be specific about mood: 'dark cinematic orchestral, slow tension build, suspenseful atmosphere' not 'dramatic'
- Request duration ~10% longer than video to ensure full coverage
- For background scores: request instrumental only, no vocals
Music Generator API
Call this pipeline from your own code. One request dispatches a run; the model is an input field, not a separate endpoint.
Get an API token- inputs
- 4
- required
- 2
- Pricing
- 2.5 to 22.6 credits
| Input | Type | default | Description |
|---|---|---|---|
duration_sec | integer | default60 | Requested track length in seconds. Model output can vary slightly. |
prompt | string | default— | Describe genre, mood, instruments, tempo, key, structure, and the track's intended use. |
model | enum | defaultauto | Music engine to use. Leave unset to let Pipe2 choose.auto · eleven-music-v1 · lyria-3-proautoeleven-music-v1lyria-3-pro |
vocals | boolean | defaulttrue | Turn off to require or request an instrumental track. When enabled, the selected model may include vocals based on the prompt. |
Point any MCP client at pipe2 and your agent gets these tools. It finds this pipeline, reads the same schema above, then runs it.
list_pipelinesget_pipeline_schemarun_pipelineget_pipeline_run_statusrequest_upload
https://mcp.pipe2.ai/mcp {
"mcpServers": {
"pipe2ai": {
"url": "https://mcp.pipe2.ai/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}Recipes using this pipeline
Show all recipesFrequently Asked Questions
What audio format is the output?
How long can the track be?
Are tracks instrumental or do they have vocals?
Can I use generated music commercially?
How specific should my prompt be?
AI Music Generator
Describe the mood, genre, or feeling and get a royalty-free MP3 track ready to drop into your video. Vocals are on by default for a finished song; switch them off for an instrumental bed under narration.
What you can make
- Background scores for videos: instrumental beds that sit under narration
- Intros and outros: short stingers for podcasts, YouTube, social
- Mood pieces: cinematic underscore, lo-fi, ambient, orchestral
- Genre-specific tracks: cite a reference style and the model matches it
How it works
- Describe the music: instrumentation, tempo, tension, emotional arc, genre reference
- Pick a duration: anywhere from 10 seconds to 5 minutes (Lyria 3 Pro caps at 3 minutes)
- Toggle vocals: on for a finished song, off for an instrumental bed under narration
- Generate: download the MP3 or chain it into Video Reel as a background track
Prompt tips
- Name specific instruments, "solo cello", "acoustic guitar and piano", "full orchestral strings"
- Describe arc, "build from quiet to full in the last 30 seconds"
- Reference styles, "Hans Zimmer-style cinematic", "lo-fi hip-hop", "uplifting corporate"
- State the use, "cinematic underscore", "YouTube intro", "background for narration"