MusicGen

Audio i glazbaDostupno
od MetaID modela: musicgen

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

Cijena
≈ 0,0529 US$/pokretanje
Trajanje
1 do 60 s
Ulaz → izlaz
Tekst → Audio
Razvojni inženjer
Meta
Ažurirano
23. septembar 2026.
01

Playground

Isprobaj MusicGen

Unos i rezultat

≈ 0,0529 US$/pokretanje
Isprobaj MusicGen
Napredne postavke (1)
Rezultat
Tvoj audio se pojavljuje ovdje.

Ovaj pokus

oko 0,0529 US$ · 5,29 kredita

Na početku se rezervira 0,1585 US$ (15,85 kredita); naplata se vrši prema stvarnom GPU vremenu.

Za račune bez prethodne kupnje: pokusi iznad 2 kredita trebaju dopunjavanje.

Novi si ovdje?

10 besplatnih kredita (0,10 US$) kada se registriraš s Googlom

Dostupno 24 sati nakon registracije, do 5 pokusa dnevno i najviše 2 kredita po pokusu. Ostale metode prijave počinju bez kredita.

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

Primjer promptova

Primjeri iz Railwail kataloga. Nisu generirani uživo na ovoj stranici.

  • Lo-Fi Chill

    Trajanje: 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

    Trajanje: 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

O MusicGen

UkratkoStanje: 23. septembar 2026.

MusicGen je model od Meta iz kategorije Audio i glazba. Na Railwailu, MusicGen košta ≈ 0,0529 US$ po pokretanju. Moguće duljine: 1 do 60 s.

Pozadina

O Meta AI (FAIR)

Osnovano 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.

Posjetite Meta AI (FAIR)

Arhitektura

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.

Parametri
300M (small), 1.5B (medium), 3.3B (large), 3.3B (melody)
Kontekst
30 tokena

Mogućnosti

  • 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

Obuka i licenca

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.

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

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

Poznata ograničenja

  • 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

Cijene

Cijene u USD-u. Korištenje se naplaćuje iz unaprijed plaćenih kredita.
Tipično pokretanje (≈ 31 s na A100 (80GB))0,0529 US$ po pokretanju
GPU vrijeme (A100 (80GB))0,00168 US$ po GPU sekundi
  • Naplaćuje se prema GPU vremenu koje pokretanje zapravo traje. Kada se pokretanje počne, 3× tipična cijena se rezervira iz vašeg stanja i naknadno se namiruje.
  • 1 kredit = 0,01 US$

Kalkulator troškova

Kalkulator cijena

s

Tipično prema pružatelju: oko 31,4 s

Ukupno

5,29 US$

529 kredita

Po pokretanju

0,0529 US$ · 5,29 kredita

Naplaćuje se stvarno GPU vrijeme; ovo je procjena.

05

API

Pozovi MusicGen sa svojim Railwail API ključem. Koristi ovaj ID modela u zahtjevu:

Za ovu kategoriju još nema API endpointa

Modeli ove kategorije trenutno se mogu koristiti samo u playgroundu.

06

Specifikacije

ID modela
musicgen
Razvojni inženjer
Meta
Kategorija
Audio i glazba
Ulaz
Tekst
Izlaz
Audio
Formati izlaza
MP3, WAV
Trajanje
1 do 60 s
Naplata
Po potrošnji (tokeni ili GPU vrijeme)
Veličina modela
300M (small), 1.5B (medium), 3.3B (large), 3.3B (melody)
Licenca
Code under MIT; pretrained weights under CC-BY-NC 4.0 (non-commercial). Commercial use requires separate licensing.
Katalog ažuriran
23. septembar 2026.

Parametri ulaza

Ulazi i postavke iz sheme ulaza modela. Primjer u odjeljku API pokazuje koje od njih API prihvaća.

  • promptobavezno
    Tip: Tekst
    Zadano: –
    Dozvoljene vrijednosti: –
  • duration
    Tip: Broj
    Zadano: 8
    Dozvoljene vrijednosti: 1 do 60
  • output_format
    Tip: Izbor
    Zadano: mp3
    Dozvoljene vrijednosti: mp3 ili wav

Oznake

  • music
  • popular
07

Primjena

Za što se koristi

  • 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

Često postavljana pitanja

Što je MusicGen?

MusicGen je model od Meta iz kategorije Audio i glazba.

Koliko stoji MusicGen na Railwailu?

Na Railwailu, MusicGen košta ≈ 0,0529 US$ po pokretanju. Naplaćuje se ono što svaki zahtjev zapravo koristi. Korištenje se plaća iz unaprijed kupljenih kredita; 1 kredit jednaka je 0,01 US$.

Koje postavke podržava MusicGen?

Prema svojoj shemi unosa, MusicGen poznaje ove parametre: prompt, duration (1 do 60) i output_format (mp3 ili wav).

Koliko je brz MusicGen?

Za MusicGen na Railwailu još nema dovoljno izmjerenih pokretanja da bi se navedlo vrijeme izvršavanja. Ovisi o unošenju, postavkama i opterećenju kod pružatelja.

Je li MusicGen bolji od MAGNeT?

To ovisi o zadatku. MusicGen (Meta) i MAGNeT (Community) su oba modela iz kategorije Audio i glazba. Stranica za usporedbu prikazuje njihove cijene i specifikacije usporedno.

Usporedi MusicGen i MAGNeT
09

Usporedivi modeli

Svi u ovoj kategoriji
  • 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 US$/pokretanje

    94 % jeftinije po jedinici

    Usporedi MusicGen i 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 US$/pokretanje

    87 % jeftinije po jedinici

    Usporedi MusicGen i Stable Audio Open 1.0

Svi modeli preko jednog API-ja

Jedan API ključ za sve modele na Railwailu. Korištenje se naplaćuje iz unaprijed plaćenih kredita, 1 kredit = 0,01 US$.