Meta AudioCraft (MusicGen, AudioGen)
by Meta (FAIR)
Meta's self-hosted MusicGen and AudioGen models; code MIT, weights CC BY-NC 4.0.
AI music and sound generators Code libraryOpen source
1. Price: github.com/facebookresearch/audiocraft
Free open weights.
github.com/facebookresearch/audiocraftNo quote yet: price is read from the official pages.
2. Commercial use: github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights
“reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only”
The released weights are CC BY-NC 4.0 and may not be used for commercial advantage or money; only the code is MIT.
github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights3. Credit the author: github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights
“If You Share the Licensed Material (including in modified form), You must:”
Audio generated with Meta AudioCraft (MusicGen/AudioGen), model weights CC BY-NC 4.0: https://creativecommons.org/licenses/by-nc/4.0/
github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights4. Agent access: github.com/facebookresearch/audiocraft
An agent can install it by itself with pip install audiocraft.
github.com/facebookresearch/audiocraftLicense checked Oct 20, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error
AudioCraft: music and sound effects from text, self-hosted
AudioCraft is Meta's free research toolkit for making audio with AI. Its MusicGen model writes short music clips from a text description, and AudioGen makes sound effects such as a dog barking. You run it on your own computer with a strong graphics card, and the ready models may only be used for non-commercial work.
Where you can use it
Music clips from a description
Type a short description such as "sad jazz" or "energetic EDM" and get a few seconds of music without vocals for a student film, a game jam or a prototype.
Sound effects from a description
Describe a sound, for example footsteps in a corridor or a siren, and get a short clip of it for a video or a game level you build for fun.
Music that follows a tune
Hum or upload a melody, and get music in a new style that follows that tune, for example a rock version of a classical piece.
Try it in a local web page
Start a small page on your own computer where you type a description and listen to the result, before writing any code.
Research on audio models
Train your own music or sound models, or study how the released ones behave, with the training code Meta provides.
Placeholder music in prototypes Idea
Fill a game or app prototype with temporary music while you test it, then replace it with licensed tracks before any paid release.
As reported by Meta (FAIR): MusicGen was trained on 20K hours of licensed music.
Meta AudioCraft (MusicGen, AudioGen) popularity
Downloads from pypistats.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“On my machine with an NVIDIA GPU, install torch==2.1.0 and then audiocraft 1.3.0, and generate three 8-second MusicGen clips from text descriptions with facebook/musicgen-small; this is for a non-commercial project.”
Show codeStep 1 or Step 2
On a computer with a graphics card, install PyTorch 2.1.0 first and then AudioCraft. ffmpeg is also recommended.
python -m pip install 'torch==2.1.0'
python -m pip install setuptools wheel
python -m pip install -U audiocraft # stable release
Load a model by name and generate audio from text. The model files download by themselves on first use.
model = MusicGen.get_pretrained('facebook/musicgen-melody')
model.set_generation_params(duration=8) # generate 8 seconds.
Mistakes to avoid
pip install audiocraft into an environment that already has a newer PyTorchThe package pins torch==2.1.0 and xformers, which must match the installed PyTorch.
The weights are under CC BY-NC 4.0, separate from the MIT code.
Only the melody models take a tune as input; small, medium and large are text to music only.
The model was trained on English descriptions with vocals removed.
License
Code MIT; weights CC-BY-NC 4.0 license. The AudioCraft code is MIT and may be used in any project. The ready-made model weights are CC BY-NC 4.0, so they are for non-commercial use only and need credit when shared.
“reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only” github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights
“If You Share the Licensed Material (including in modified form), You must:” github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights
“produce, reproduce, and Share Adapted Material for NonCommercial purposes only” github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights
You may share the weights for non-commercial purposes with creator credit, a copyright notice and a link to the license.
“If You Share the Licensed Material (including in modified form), You must:” github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights
“produce, reproduce, and Share Adapted Material for NonCommercial purposes only” github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights
AllowedWith conditionsNot allowedNot stated or not checked yet
Is Meta AudioCraft (MusicGen, AudioGen) free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with Meta AudioCraft (MusicGen, AudioGen). Paste them into your prompt or AGENTS.md.
- Meta AudioCraft (MusicGen, AudioGen) (AI music and sound generators). Meta's self-hosted MusicGen and AudioGen models; code MIT, weights CC BY-NC 4.0. Price: free; non-commercial only; credit required; ship inside your app with conditions.
Connect: PyPI audiocraft.
Get files: Self-hosted: python -m pip install -U audiocraft (needs Python 3.9 and PyTorch 2.1.0); weights download from the model hub on first use.
Not allowed: Model weights are CC-BY-NC 4.0: non-commercial use only.
Not allowed: Code is MIT; the weights are under a separate license (LICENSE_weights).
Not allowed: Attribution under CC BY: creator, copyright notice, license link, and a note if modified.
Rule: Use the weights for non-commercial purposes only; treat monetized output as not allowed.
License: https://github.com/facebookresearch/audiocraft/blob/main/LICENSE_weights (checked 2026-10-20; details: https://agentgid.com/assets/audiocraft/)
Agent installs a package or loads it from a CDN.
pip install audiocraftAudio generated with Meta AudioCraft (MusicGen/AudioGen), model weights CC BY-NC 4.0: https://creativecommons.org/licenses/by-nc/4.0/Alternatives
Meta AudioCraft (MusicGen, AudioGen) This page
Pick ACE-Step for full songs with vocals in many languages under the MIT license, on smaller graphics cards.
Pick YuE to turn lyrics into full songs with vocals and accompaniment under Apache-2.0.
Pick Suno for a ready web service whose paid plans include commercial use, with no hardware of your own.
Open-source transformer text-to-audio model that generates multilingual speech, music and simple sound effects.
3B song generator that turns lyrics and a style prompt into full songs, with an editable melody and chord score.
Questions
Can I use music made with it in a monetized video or a paid app?
Not with the released weights. They are CC BY-NC 4.0, which allows only non-commercial use.
Does it run without a graphics card?
Meta says you must have a graphics card to run MusicGen locally.
Can it sing?
No. The training music had its vocals removed, and the model card says it cannot make realistic vocals.
Which MusicGen model should I start with?
Meta names the medium and melody models as the best balance of quality and computing cost; the small one fits smaller cards.
Where are the model files stored?
In the Hugging Face cache; set AUDIOCRAFT_CACHE_DIR to choose another folder.