Music Generator

From 2.5 credits

Generate original background music that matches any mood, genre, and length you describe. Royalty-free, ready in seconds.

Create your first track

Describe the sound you imagine, or try an example.

Eleven Music v2.5
Lyria 3.5
Eleven Music v1
Complete to generate

Describe genre, mood, instruments, tempo, key, structure, and the track's intended use.

Examples

Pyra's Violet Wings (Eleven Music v2.5)

Eleven Music v2.5. The same prompt and length as Pyra's original theme, so you can hear what the newer model changes: exactly 40 seconds of 48 kHz stereo.

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
Language
Language
bun add @pipe2-ai/sdk
Run a pipeline
import { createClient } from "@pipe2-ai/sdk";

const client = createClient(process.env.PIPE2_TOKEN!);

const { run_pipeline } = await client.RunPipeline({
  pipeline_slug: "music-generator",
  input: {
    prompt: "Warm lo-fi beat with a soft Rhodes piano, relaxed and unhurried",
    duration_sec: 60,
    model: "eleven-music-v2-5",
  },
});

pip install pipe2
Run a pipeline
import asyncio
import os

from pipe2 import Pipe2Client

client = Pipe2Client(token=os.environ["PIPE2_TOKEN"])

run = asyncio.run(client.run_pipeline(
    pipeline_slug="music-generator",
    input={
        "prompt": "Warm lo-fi beat with a soft Rhodes piano, relaxed and unhurried",
        "duration_sec": 60,
        "model": "eleven-music-v2-5",
    },
))

go get github.com/pipe2-ai/sdk-go
Run a pipeline
client := pipe2.NewClient(os.Getenv("PIPE2_TOKEN"))

input := json.RawMessage(`{
  "prompt": "Warm lo-fi beat with a soft Rhodes piano, relaxed and unhurried",
  "duration_sec": 60,
  "model": "eleven-music-v2-5"
}`)

run, err := pipe2.RunPipeline(context.Background(), client, "music-generator", input)
if err != nil {
    log.Fatal(err)
}

brew install pipe2-ai/tap/pipe2
Run a pipeline
pipe2 pipelines run \
  --pipeline music-generator \
  --input-json '{"prompt": "Warm lo-fi beat with a soft Rhodes piano, relaxed and unhurried", "duration_sec": 60, "model": "eleven-music-v2-5"}' \
  --wait

Full API reference CLI reference

Frequently Asked Questions

What audio format is the output?
High-quality MP3, ready to drop into any video editor or browser. Files land in your asset library for immediate use in the Video Reel pipeline.
How long can the track be?
From 10 seconds up to 5 minutes. Eleven Music covers the full range, while Lyria caps at 3 minutes. Pick the requested duration on the slider; generated length can vary slightly.
Are tracks instrumental or do they have vocals?
Vocals are allowed by default. Turn them off to require or request an instrumental bed under narration, where singing would compete with the speaking voice. When vocals are enabled, the model still follows the prompt and may choose an instrumental arrangement.
Can I use generated music commercially?
Yes. All generated music is cleared for commercial use. Check the usage policies for platform-specific restrictions.
How specific should my prompt be?
Very. Instead of 'happy music', try 'upbeat acoustic guitar with light percussion, 120 BPM, summer road trip feeling'. Naming instruments, tempo, and emotional arc produces much better results.

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

  1. Describe the music: instrumentation, tempo, tension, emotional arc, genre reference
  2. Pick a duration: anywhere from 10 seconds to 5 minutes (Lyria caps at 3 minutes)
  3. Toggle vocals: on for a finished song, off for an instrumental bed under narration
  4. 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"

Explore more pipelines

Video Generator
from 9.5
Video Generator
Image Generator
0.2-6.7
Image Generator
Audio Generator
0.002-40.0
Audio Generator
Video Editor
from 9.5
Video Editor