MusicGen

الصوت والموسيقىمتاح
من Metaمعرّف النموذج: musicgen

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

السعر
≈ ‏0.0529 US$/تشغيل
المدة
1 إلى 60 ث
Input → output
نص → صوت
مطور
Meta
تم التحديث
٢٣ سبتمبر ٢٠٢٦
01

Playground

جرّب MusicGen

الإدخال والإخراج

≈ ‏0.0529 US$/تشغيل
جرّب MusicGen
إعدادات متقدمة (1)
النتيجة
يظهر صوتك هنا.

هذا التشغيل

حوالي ‏0.0529 US$ · 5.29 رصيد

يتم حجز ‏0.1585 US$ (15.85 رصيد) عند البدء؛ يتم فواتير وقت GPU الفعلي.

للحسابات بدون عملية شراء سابقة: التشغيلات التي تتجاوز 2 رصيد تحتاج إلى إعادة تعبئة.

جديد هنا؟

10 رصيد مجاني (‏0.10 US$) عند التسجيل باستخدام Google

قابل للاستخدام 24 ساعة بعد التسجيل، حتى 5 تشغيل يومياً وبحد أقصى 2 رصيد لكل تشغيل. طرق تسجيل الدخول الأخرى تبدأ بدون رصيد.

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

نماذج الأوامر

أمثلة من كتالوج Railwail. لم يتم إنشاؤها مباشرة على هذه الصفحة.

  • Lo-Fi Chill

    المدة: 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

    المدة: 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

حول MusicGen

الملخصاعتباراً من ٢٣ سبتمبر ٢٠٢٦

MusicGen هو نموذج من Meta في فئة الصوت والموسيقى. على Railwail، يكلف MusicGen ≈ ‏0.0529 US$ لكل تشغيل. الأطوال الممكنة: 1 إلى 60 ث.

الخلفية

حول Meta AI (FAIR)

تأسس في 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.

زيارة Meta AI (FAIR)

العمارة

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.

المعاملات
300M (small), 1.5B (medium), 3.3B (large), 3.3B (melody)
السياق
30 رمز

الإمكانيات

  • 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

التدريب والترخيص

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.

الترخيص: Code under MIT; pretrained weights under CC-BY-NC 4.0 (non-commercial). Commercial use requires separate licensing.

اختبارات الأمان: Limited; Meta describes risk of generating music similar to training data and recommends watermarking. No formal red-team report.

القيود المعروفة

  • 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

التسعير

الأسعار بالدولار الأمريكي. يتم احتساب الاستخدام من الأرصدة المدفوعة مقدماً.
التشغيل النموذجي (≈ 31 ث على A100 (80GB))‏0.0529 US$ لكل تشغيل
وقت GPU (A100 (80GB))‏0.00168 US$ لكل ثانية GPU
  • يتم الفرز بناءً على وقت GPU الذي يستغرقه التشغيل فعلياً. عند بدء التشغيل، يتم حجز 3× السعر النموذجي من رصيدك ويتم تسويته لاحقاً.
  • 1 رصيد = ‏٠٫٠١ US$

حاسبة التكلفة

حاسبة الأسعار

s

نموذجي وفقاً للمزود: حوالي 31.4 ث

الإجمالي

‏5.29 US$

529 رصيد

لكل تشغيل

‏0.0529 US$ · 5.29 رصيد

يتم الفرض بناءً على وقت GPU الفعلي؛ هذا تقدير.

05

API

استدعِ MusicGen باستخدام مفتاح Railwail API الخاص بك. استخدم معرّف النموذج هذا في الطلب:

لا توجد نقطة نهاية API لهذه الفئة حتى الآن

يمكن استخدام نماذج هذه الفئة حالياً فقط في ساحة الاختبار.

06

المواصفات

معرّف النموذج
musicgen
مطور
Meta
الإدخال
نص
الإخراج
صوت
تنسيقات الإخراج
MP3, WAV
المدة
1 إلى 60 ث
الفواتير
حسب الاستخدام (الرموز أو وقت GPU)
حجم النموذج
300M (small), 1.5B (medium), 3.3B (large), 3.3B (melody)
الترخيص
Code under MIT; pretrained weights under CC-BY-NC 4.0 (non-commercial). Commercial use requires separate licensing.
تم تحديث إدخال الكتالوج
٢٣ سبتمبر ٢٠٢٦

معاملات الإدخال

المدخلات والإعدادات من مخطط إدخال النموذج. يوضح المثال في قسم API أيها تقبل API.

  • promptمطلوب
    النوع: نص
    الافتراضي: –
    القيم المسموحة: –
  • duration
    النوع: رقم
    الافتراضي: 8
    القيم المسموحة: 1 إلى 60
  • output_format
    النوع: اختيار
    الافتراضي: mp3
    القيم المسموحة: mp3 أو wav

الوسوم

  • music
  • popular
07

حالات الاستخدام

ما يُستخدم من أجله

  • 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

الأسئلة الشائعة

ما هو MusicGen؟

MusicGen هو نموذج من Meta في فئة الصوت والموسيقى.

كم تكلفة MusicGen على Railwail؟

على Railwail، يكلف MusicGen ≈ ‏0.0529 US$ لكل تشغيل. يتم فرض رسوم عليك مقابل ما تستخدمه كل طلب فعلياً. الاستخدام يُدفع من أرصدة مدفوعة مقدماً؛ 1 رصيد يساوي ‏٠٫٠١ US$.

ما الإعدادات التي يدعمها MusicGen؟

وفقاً لمخطط الإدخال الخاص به، MusicGen يعرف هذه المعاملات: prompt وduration (1 إلى 60) وoutput_format (mp3 أو wav).

ما سرعة MusicGen؟

لا توجد عمليات تشغيل مقاسة كافية لـ MusicGen على Railwail حتى الآن لتحديد وقت التشغيل. يعتمد على الإدخال والإعدادات والحمل لدى المزود.

هل MusicGen أفضل من MAGNeT؟

هذا يعتمد على المهمة. MusicGen (Meta) و MAGNeT (Community) كلاهما نموذج في فئة الصوت والموسيقى. تعرض صفحة المقارنة أسعارهما والمواصفات جنباً إلى جنب.

قارن MusicGen و MAGNeT
09

نماذج قابلة للمقارنة

الكل في هذه الفئة
  • 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$/تشغيل

    94 % أرخص لكل وحدة

    قارن MusicGen مع 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$/تشغيل

    87 % أرخص لكل وحدة

    قارن MusicGen مع Stable Audio Open 1.0

جميع النماذج عبر API واحدة

مفتاح API واحد لكل نموذج على Railwail. يتم احتساب الاستخدام من الأرصدة المدفوعة مقدماً، 1 رصيد = ‏٠٫٠١ US$.