MAGNeT

Community
Audio & Music

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.

Queue audio with MAGNeT
Music and sound effects run asynchronously β€” we'll queue a job and you can track it in your history.
Sign in to try this model with €5 free credits.
Sign in
Generates as an async job β€” typically 30 s to 2 min.
TL;DRΒ·Last updated June 24, 2026

MAGNeT is audio & music AI model from Community, priced at €0.000 per 1M input tokens with a unknown context window.

About this model

MAGNeT (Masked Audio Generation using a single Non-autoregressive Transformer) comes from Meta's Audiocraft project. It predicts EnCodec tokens with iterative masked decoding rather than autoregressive sampling, cutting the number of forward passes needed per clip. The model input selects a checkpoint such as the small or medium music model or the sound-effects model, and variations and decoding-steps inputs trade speed for fidelity.
Try MAGNeT
Sign in to generate β€” 50 free credits on sign-up

Pricing

Price per Generation
Per generation€2.00

API Integration

Use our OpenAI-compatible API to integrate MAGNeT 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("magnet", "Hello! What can you do?");
console.log(reply);

// With message history
const reply2 = await rw.run("magnet", [
  { 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("magnet", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Price
€2.00
Developer
Community
Category
Audio & Music
Supported Formats
text
audio
Tags
meta
magnet
non-autoregressive
masked-generation
text-to-music
audiocraft

Frequently asked questions

Start using MAGNeT today

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