MusicGen Medium

Meta
Text-to-Speech

Meta MusicGen Medium (1.5B params). Strong quality-to-speed tradeoff for text-to-music with optional melody guidance.

Speak with MusicGen Medium
Type any text and hear it spoken in a chosen voice.
Sign in to try this model with €5 free credits.
Sign in
Audio player appears here.
TL;DR·Last updated May 16, 2026

MusicGen Medium is text-to-speech AI model from Meta, priced at €0.000 per 1M input tokens with a unknown context window.

Try MusicGen Medium

1x

Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€0.01

API Integration

Use our OpenAI-compatible API to integrate MusicGen Medium into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

// Simple — just pass a string
const reply = await rw.run("musicgen-medium", "Hello! What can you do?");
console.log(reply);

// With message history
const reply2 = await rw.run("musicgen-medium", [
  { role: "system", content: "You are a helpful assistant." },
  { role: "user", content: "Explain quantum computing simply." },
]);
console.log(reply2);

// Full response with usage info
const res = await rw.chat("musicgen-medium", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Price
€0.01
Developer
Meta
Category
Text-to-Speech
Supported Formats
text
audio
Tags
meta
music-generation
open-weights
replicate

Frequently asked questions

Start using MusicGen Medium today

Get started with free credits. No credit card required. Access MusicGen Medium and 100+ other models through a single API.