Text-to-Music
Generate a score from a description
The model generates audio tokens conditioned on text and decodes them to a waveform. This page maps the prompt to chords and timbres with Web Audio and synthesises a playable clip live.
Switch model · 3 Available modelsSamples are shared within a subcategory — switching models keeps your input intact.
Input
SamplesSamples are editable — once you change them they count as custom input.
Parameters
Output
MusicGen SmallNo result yetPick a sample or edit the input, then hit “Run inference”.
Model info
MusicGen Small
Meta MusicGen small (300M) — text-conditioned music generation that runs entirely in the browser via Transformers.js.
Framework: Transformers.jsSize: ~571 MiB · q8License: cc-by-nc-4-0
All models
Notes
Computed for real in the browser (canvas pixel ops / STFT spectral processing / vector retrieval).
Switching models only changes weight size, device and backend metadata; samples are shared across every model in the subcategory.
No model here ships browser-loadable ONNX weights, so switching never triggers a download.