Skip to main content
Model ID
Calling method: sync

Minimax Music Generation API Usage Guide

Overview

Minimax Music 3.0 is an AI-powered music generation model that creates complete songs from lyrics and style descriptions. Simply provide your lyrics and an optional style prompt, and the model will compose and produce a full audio track.

Key Features:

  • Lyrics-Based Generation: Create songs from your custom lyrics (1-3500 characters)
  • Style Control: Optional prompt to specify music genre, mood, and style (0-2000 characters)
  • Structure Tags: Support for song structure tags like [Verse], [Chorus], [Bridge], etc.
  • High-Quality Audio: Output in MP3, WAV, or PCM formats
  • Synchronous Operation: Get results immediately (typically 30-60 seconds)

Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

Submit Music Generation Request

Endpoint

Request Format

Request Parameters

Supported Structure Tags

You can use the following tags in your lyrics to control song structure:
  • [Intro] - Introduction section
  • [Verse] - Verse section
  • [Pre Chorus] - Pre-chorus section
  • [Chorus] - Chorus/refrain section
  • [Bridge] - Bridge section
  • [Outro] - Outro/ending section
  • [Interlude] - Instrumental interlude
  • [Hook] - Hook section
  • [Inst] - Instrumental section
  • [Solo] - Solo section

Response

Music Generation is synchronous and returns the result immediately (typically within 30-60 seconds).

Check Request Status

Endpoint

Example

Response


Request Status Values

Music Generation is synchronous, so the response will immediately return one of these statuses:

Example Use Cases

Basic Music Generation (Minimal Parameters)

Full Music Generation (All Parameters)


Tips for Best Results

  1. Use Structure Tags: Adding tags like [Verse], [Chorus], [Bridge] helps the model understand song structure
  2. Descriptive Prompts: Be specific about genre, mood, instruments, and tempo in your prompt
  3. Appropriate Lyrics Length: Aim for 500-2000 characters for optimal song length
  4. Clear Line Breaks: Use \n to separate lines properly
  5. Avoid Special Characters: Stick to standard punctuation in lyrics