MusicGen

Lyd og musikkTilgjengelig
av MetaModell-ID: musicgen

Meta's music generation model. Generate up to 1 minute of music from text descriptions.

Pris
≈ 0,0529 USD/kjøring
Varighet
1 til 60 s
Input → output
Tekst → Lyd
Utvikler
Meta
Oppdatert
23. september 2026
01

Playground

Prøv MusicGen

Inndata og resultat

≈ 0,0529 USD/kjøring
Prøv MusicGen
Avanserte innstillinger (1)
Resultat
Lyden din vises her.

Denne kjøringen

ca. 0,0529 USD · 5,29 credits

0,1585 USD (15,85 credits) reserveres ved start; faktisk GPU-tid faktureres.

For kontoer uten tidligere kjøp: kjøringer over 2 credits trenger påfyll.

Ny her?

10 gratis credits (0,10 USD) når du registrerer deg med Google

Kan brukes 24 timer etter registrering, opptil 5 kjøringer per dag og maksimalt 2 credits per kjøring. Andre påloggingsmetoder starter uten credits.

02

Examples

Real outputs from the public examples of this model on Replicate, with the prompt and settings that produced them. They were not generated live on this page.
  • Prompt

    Edo25 major g melodies that sound triumphant and cinematic. Leading up to a crescendo that resolves in a 9th harmonic

    Settings

    duration
    8
  • Prompt

    Edo25 major g melodies that sound triumphant and cinematic. Leading up to a crescendo that resolves in a 9th harmonic

    Settings

    duration
    33
  • Prompt

    Edo25 major g melodies that sound triumphant and cinematic. Leading up to a crescendo that resolves in a 9th harmonic

    Settings

    duration
    33

Eksempelprompts

Eksempler fra Railwail-katalogen. De ble ikke generert live på denne siden.

  • Lo-Fi Chill

    Lengde: 0:30

    Lo-fi hip hop beat with warm vinyl crackle, mellow jazz piano chords, soft brushed drums, and a gentle bass line, perfect for studying and relaxation, 85 BPM
  • Epic Orchestral

    Lengde: 0:20

    Cinematic orchestral piece building from a solo cello melody to a full symphonic crescendo with timpani, brass fanfare, and soaring strings, dramatic and emotional, suitable for a movie trailer
03

Om MusicGen

Kort sagtPer 23. september 2026

MusicGen er en modell fra Meta i kategorien Lyd og musikk. På Railwail koster MusicGen ≈ 0,0529 USD per kjøring. Mulige lengder: 1 til 60 s.

Bakgrunn

Om Meta AI (FAIR)

Grunnlagt 2013 · Menlo Park, California, USA

Meta AI is the research division of Meta Platforms, originally founded as Facebook AI Research (FAIR) in 2013 by Yann LeCun. FAIR has produced many influential open-source releases including PyTorch, RoBERTa, Wav2Vec 2.0, the LLaMA family, and the audio research stack AudioCraft. MusicGen was published by FAIR's audio team in June 2023 (Jade Copet, Felix Kreuk, Itai Gat, Tal Remez, David Kant, Gabriel Synnaeve, Yossi Adi, Alexandre Defossez) as part of AudioCraft, a unified library that also includes EnCodec and AudioGen. AudioCraft was released under the permissive CC-BY-NC and MIT licences and remains one of the most popular reference implementations for controllable music generation in academia.

Besøk Meta AI (FAIR)

Arkitektur

Single-stage Transformer language model over EnCodec audio tokens (text-and-melody-conditioned)

MusicGen is a single-stage auto-regressive Transformer that generates music by predicting tokens from a 32 kHz EnCodec residual vector quantiser at 50 Hz with four codebooks. The model interleaves the codebook streams using a delay pattern so that a single Transformer can model all four codebooks jointly, avoiding the cascaded models used in prior work such as MusicLM. Conditioning is provided by frozen T5 text encoders for text prompts and optionally by a chromagram-conditioned encoder for melody control, which lets users hum or upload a reference melody. The model was trained on 20,000 hours of licensed music (10K high-quality internal Meta tracks plus ShutterStock and Pond5 licensed catalogues), exclusively instrumental. Output is 32 kHz stereo or mono with a maximum length of 30 seconds in the public checkpoint; longer pieces are produced by sliding-window continuation. AudioCraft also ships training and fine-tuning scripts.

Parametere
300M (small), 1.5B (medium), 3.3B (large), 3.3B (melody)
Kontekst
30 tokens

Evner

  • Text-to-music generation across many genres and moods
  • Melody conditioning via chroma features (hum or upload a tune)
  • Single-stage generation with no cascade of models (simpler than MusicLM)
  • Up to 30-second clips at 32 kHz, sliding window for longer pieces
  • Multiple sizes from 300M to 3.3B for laptops to data-centre GPUs
  • Fully open weights with reproducible training recipe
  • Best for: research on controllable music generation, indie composers, game soundtrack prototyping

Trening og lisens

20,000 hours of licensed instrumental music: 10K hours from Meta's internal music dataset plus ShutterStock and Pond5 commercial libraries. All vocals were removed and the corpus is instrumental-only.

Lisens: Code under MIT; pretrained weights under CC-BY-NC 4.0 (non-commercial). Commercial use requires separate licensing.

Sikkerhetstesting: Limited; Meta describes risk of generating music similar to training data and recommends watermarking. No formal red-team report.

Kjente begrensninger

  • Instrumental only, no vocal generation
  • Non-commercial licence restricts production use
  • 30-second clip length without continuation
  • Difficulty with very specific instrument arrangements or named artists
  • No fine-grained per-bar control
04

Priser

Priser i amerikanske dollar. Bruk belastes fra forhåndsbetalt kreditt.
Typisk kjøring (≈ 31 s på A100 (80GB))0,0529 USD per kjøring
GPU-tid (A100 (80GB))0,00168 USD per GPU-sekund
  • Faktureres etter GPU-tiden kjøringen faktisk tar. Når kjøringen starter, blir 3× den typiske prisen reservert fra saldoen din og gjort opp etterpå.
  • 1 kreditt = 0,01 USD

Kostnadsberegner

Prisberegner

s

Typisk ifølge leverandøren: ca. 31,4 s

Totalt

5,29 USD

529 credits

Per kjøring

0,0529 USD · 5,29 credits

Fakturert etter faktisk GPU-tid; dette er et estimat.

05

API

Ring MusicGen med din Railwail API-nøkkel. Bruk denne modell-IDen i forespørselen:

Ingen API-endepunkt for denne kategorien ennå

Modeller i denne kategorien kan for øyeblikket bare brukes i lekeplassen.

06

Spesifikasjoner

Modell-ID
musicgen
Utvikler
Meta
Inndata
Tekst
Utdata
Lyd
Utdataformater
MP3, WAV
Varighet
1 til 60 s
Fakturering
Etter bruk (tokens eller GPU-tid)
Modellstørrelse
300M (small), 1.5B (medium), 3.3B (large), 3.3B (melody)
Lisens
Code under MIT; pretrained weights under CC-BY-NC 4.0 (non-commercial). Commercial use requires separate licensing.
Katalogoppføring oppdatert
23. september 2026

Inndataparametere

Inndataer og innstillinger fra modellens inndataskjema. Eksemplet i API-delen viser hvilke av dem APIen godtar.

  • promptobligatorisk
    Type: Tekst
    Standard: –
    Tillatte verdier: –
  • duration
    Type: Tall
    Standard: 8
    Tillatte verdier: 1 til 60
  • output_format
    Type: Valg
    Standard: mp3
    Tillatte verdier: mp3 eller wav

Merkelapper

  • music
  • popular
07

Brukstilfeller

Hva det brukes til

  • Research on autoregressive music language models
  • Indie game and short-film soundtrack prototyping
  • Melody-conditioned variations on a hummed tune
  • Academic benchmarks for controllable audio
  • Educational demos of audio tokenisation
08

Ofte stilte spørsmål

Hva er MusicGen?

MusicGen er en modell fra Meta i kategorien Lyd og musikk.

Hvor mye koster MusicGen på Railwail?

På Railwail koster MusicGen ≈ 0,0529 USD per kjøring. Du betaler for det hver forespørsel faktisk bruker. Bruk betales fra forhåndskjøpte kreditter; 1 kreditt tilsvarer 0,01 USD.

Hvilke innstillinger støtter MusicGen?

I henhold til inndataskjemaet kjenner MusicGen disse parametrene: prompt, duration (1 til 60) og output_format (mp3 eller wav).

Hvor rask er MusicGen?

Det finnes ennå ikke nok målte kjøringer av MusicGen på Railwail til å angi en kjøretid. Det avhenger av inndataene, innstillingene og belastningen hos leverandøren.

Er MusicGen bedre enn MAGNeT?

Det avhenger av oppgaven. MusicGen (Meta) og MAGNeT (Community) er begge modeller i kategorien Lyd og musikk. Sammenligningssiden viser prisene og spesifikasjonene deres side ved side.

Sammenlign MusicGen og MAGNeT
09

Sammenlignbare modeller

Alle i denne kategorien
  • MAGNeTCommunity

    MAGNeT is Meta's masked, non-autoregressive audio generator. Instead of predicting tokens left to right it fills masked audio tokens in parallel over a few decoding steps, so generation is faster than autoregressive MusicGen at similar quality. This Replicate packaging exposes the text-to-music and text-to-sound variants.

    ≈ 0,0030 USD/kjøring

    94 % billigere per enhet

    Sammenlign MusicGen og MAGNeT
  • Stability AI's Stable Audio Open generates short audio from text prompts, tuned for sound effects, drum loops, instrument riffs and production elements rather than full songs. Open weights, latent diffusion over a 44.1kHz audio autoencoder, with a configurable seconds_total up to about 47 seconds.

    ≈ 0,0069 USD/kjøring

    87 % billigere per enhet

    Sammenlign MusicGen og Stable Audio Open 1.0

Alle modeller gjennom én API

Én API-nøkkel for alle modeller på Railwail. Bruk belastes fra forhåndsbetalt kreditt, 1 kreditt = 0,01 USD.