MusicGen
MusicGen from Meta generates original music from text descriptions, supporting various genres, instruments, and moods.
Overview
| Property | Value |
|---|---|
| Provider | Meta |
| Cost | 100 credits |
| Modality | Audio |
| Duration | 8-30 seconds |
| Prompt Required | Yes |
What It's Best For
- Original music — Create unique compositions
- Background music — For videos and content
- Genre exploration — Any musical style
- Mood setting — Emotional soundtracks
- Quick production — Fast music generation
Inputs
Prompt (Required)
Describe the music you want to generate.
Connection Color: 🟡 Yellow
Input Audio (Optional)
Audio file to continue or use as reference.
Connection Color: 🟠 Orange
Configuration
Duration
Type: Slider
Range: 8 - 30
Default: 8
Length of generated audio in seconds.
Model Version
Type: Select
Default: stereo-large
| Version | Description |
|---|---|
| stereo-large | Best quality, stereo output |
| stereo-medium | Balanced quality/speed |
| melody-large | Best for melody continuation |
| large | Mono, high quality |
Top K
Type: Number
Default: 250
Reduces sampling to top K tokens (0 = no limit).
Top P
Type: Number
Default: 0
Nucleus sampling threshold (0 = disabled).
Temperature
Type: Slider
Range: 0 - 2
Default: 1
Controls randomness (higher = more creative).
Classifier Free Guidance
Type: Number
Default: 3
How closely to follow the prompt.
Seed
Type: Number
For reproducible results.
Output Format
Type: Select
Default: mp3
mp3 or wav.
Normalization Strategy
Type: Select
Default: peak
loudness, clip, peak, or rms.
Output
Type: Audio
Connection Color: 🟠 Orange
Use Cases
Upbeat Commercial Music
Upbeat electronic dance music with synthesizers,
driving beat, energetic mood,
suitable for product advertisement.
Cinematic Score
Orchestral cinematic music, dramatic strings,
brass section, building tension,
epic movie trailer style.
Lo-fi Background
Lo-fi hip hop beat, mellow piano chords,
vinyl crackle, relaxing atmosphere,
study music vibes.
Jazz Piece
Smooth jazz with saxophone lead,
walking bass line, brushed drums,
late-night club atmosphere.
Ambient Soundscape
Ambient electronic music, soft pads,
gentle arpeggios, ethereal atmosphere,
meditation background.
Tips for Best Results
- Specify genre clearly — "jazz", "rock", "electronic"
- Include instruments — "piano", "guitar", "drums"
- Describe mood — "upbeat", "melancholic", "tense"
- Mention tempo — "slow", "moderate BPM", "fast-paced"
- Use stereo-large — Best quality for final output
Model Versions Comparison
| Version | Quality | Speed | Best For |
|---|---|---|---|
| stereo-large | ⭐⭐⭐⭐⭐ | Slower | Final output |
| stereo-medium | ⭐⭐⭐⭐ | Medium | Balanced |
| melody-large | ⭐⭐⭐⭐⭐ | Slower | Melody continuation |
| large | ⭐⭐⭐⭐ | Medium | Mono output |
Related Models
- Ace Step — Longer music generation
- Dia TTS — Text-to-speech
- Kokoro TTS — Fast speech