MelodyFlow: Meta FAIR's Text-Guided Music Editing Model
MelodyFlow is Meta FAIR's research model for text-guided music generation and editing, using a quantizer-free EnCodec, flow-matching transformer and latent inversion. This guide covers the 300M and 1B sizes, licensed training data, evaluation scores, the MIT code and CC-BY-NC weights split, stated limitations, and how it differs from the separate Meloflow.ai product.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
MelodyFlow is a research model for changing music with text instructions. This guide is based on the official model card, read on 2 December 2026, and keeps the authors' stated limits intact.
What is MelodyFlow?
MelodyFlow is a research model from Meta AI's FAIR team for text-guided music generation and editing. It uses continuous latent representations rather than discrete audio tokens, combining a quantizer-free EnCodec, a flow-matching diffusion transformer and a regularised latent inversion algorithm.
That design is aimed at avoiding the information loss that comes from quantising audio into discrete units before generation.
Who built MelodyFlow and when?
FAIR trained MelodyFlow between September and October 2024 and released it as version 1. The research is described in the paper High Fidelity Text-Guided Music Editing via Single-Stage Flow Matching. Questions go through the facebookresearch/audiocraft repository rather than a commercial support channel.
What can MelodyFlow generate and edit?
It supports two tasks: generating music from a text description, and editing an existing source audio sample using a text instruction. The model card gives 300M and 1B sizes. Editing is the documented strength, with zero-shot text-guided changes demonstrated at test time without extra training.
The latent inversion routine is the part that makes editing possible: it maps a source sample back into the model's latent space so a text prompt can steer a revision.
What licence covers MelodyFlow?
Code is released under MIT, but the model weights are CC-BY-NC 4.0, which restricts commercial use. That split matters: you can study and modify the implementation freely, but shipping a product on the released weights needs a separate licensing decision.
Do not assume the permissive code licence covers the checkpoints. They are governed by different terms.
What data trained MelodyFlow?
FAIR reports 16,000 hours of licensed music from the Meta Music Initiative Sound Collection, Shutterstock and Pond5. Tracks with vocals were removed by tags and HT-Demucs source separation, so the released model is effectively instrumental. The company says agreements cover the rights holders.
| Item | Detail |
|---|---|
| Training data | 16,000 hours, licensed collections |
| Vocal handling | Removed by tags and HT-Demucs separation |
| Model sizes | 300M and 1B |
| Weights licence | CC-BY-NC 4.0 |
How was MelodyFlow evaluated?
The team used MusicCaps plus an in-domain held-out set with no artist overlap. Objective measures include Frechet Audio Distance on VGGish features, KL divergence on PaSST labels and CLAP text-audio consistency. The released 30-second checkpoint scores 4.79 FAD, 1.28 KLD and 0.29 consistency.
The model card labels these results work in progress. It also notes that the released models were evaluated after instrumental separation, which is why the numbers differ from the paper's models.
What are MelodyFlow's stated limitations?
The model card says it cannot generate realistic vocals, was trained with English descriptions, and performs unevenly across styles and cultures. It sometimes collapses into silence at the end of a song, and prompt engineering may be needed. Those are the authors' own words.
The card also warns that the training data may lack diversity, that generated samples reflect the data's biases, and that downstream use needs further risk evaluation.
Is MelodyFlow the same as Meloflow.ai?
No. MelodyFlow is Meta FAIR's research model, distributed through audiocraft under a non-commercial weight licence. Meloflow.ai is a separate commercial AI music site with text-to-music, cover, extension and stem tools. The similar names cause confusion in search results; check the domain before downloading or paying.
If your intent was the commercial tool rather than the research model, its feature set and pricing live on meloflow.ai and are not described by the FAIR model card.
What does the paper claim about music editing?
The paper's central claim is that a single-stage flow-matching setup can edit music from text without a separate inversion stage per prompt. FAIR reports that the approach outperforms earlier text-guided editing methods on the tasks it evaluated, while matching generation baselines on standard text-to-music benchmarks.
The claim is scoped to instrumental audio. Vocals were removed from the training set, and the model card says realistic vocals are out of reach, so the editing results should be read as evidence about instrumental texture, instrument changes and style, not about rewriting a sung lyric.
The paper is High Fidelity Text-Guided Music Editing via Single-Stage Flow Matching, arXiv:2407.03648. The model card also lists MusicCaps and an in-domain held-out set as the evaluation data, with no artist overlap between training and evaluation.
Who should use MelodyFlow?
Researchers studying controllable music generation or text-guided editing are the intended audience. The non-commercial weights, English-only prompt training and lack of vocals make it a poor fit for a commercial vocal-song product. It is best treated as a reproducible research baseline.
Researchers comparing editing methods will get the most value from the released checkpoint and the paper together. Anyone evaluating prompt strategies should reproduce the MusicCaps numbers themselves, because the model card marks the published results as work in progress and notes that instrumental separation changes them relative to the paper.
Bottom line on MelodyFlow
MelodyFlow offers a clear, documented approach to editing instrumental music from text, backed by a paper and a detailed model card. Its limits are explicit and unusual: no realistic vocals, English prompts and non-commercial weights. Read both before planning any deployment, and verify current files in the audiocraft repository.