🎶

MiniMax Music API

active

MiniMax's AI music generation — create high-quality songs with vocals and instrumentals from text descriptions.

MiniMaxmusic30 credits/call
Provider
MiniMax
Pricing
~$0.06 per song (30 credits)
Speed
30–90 seconds
Output
audio

Quick Start

Send a request to the MiniMax Music API:

bash
1curl -X POST https://apiin.one/api/v1/audio/music \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "minimax-music",
6 "prompt": "An energetic electronic dance track with pulsing synths and driving bass",
7 "lyrics": "Feel the beat, move your feet, let the music take you higher",
8 "bitrate": 256000,
9 "sample_rate": 44100
10}'

API Endpoint

POST/api/v1/audio/music

Send a POST request with your API key to generate content using MiniMax Music.

Headers

Body ParametersJSON
Authorization:string

Bearer YOUR_API_KEY

Content-Type:string

application/json

Body Parameters

Body ParametersJSON
model:string

Model identifier: minimax-music

prompt:string

Style/mood description for the music

lyrics:optional string

Lyrics for the generated song

bitrate:optional number

Audio bitrate: 32000, 60000, 64000, 128000, or 256000 Defaults to 256000.

sample_rate:optional number

Sample rate: 16000, 24000, 32000, or 44100 Defaults to 44100.

Example Request

json
1{
2 "model": "minimax-music",
3 "prompt": "An energetic electronic dance track with pulsing synths and driving bass",
4 "lyrics": "Feel the beat, move your feet, let the music take you higher",
5 "bitrate": 256000,
6 "sample_rate": 44100
7}

Example Response

Successful task creation response.

1{
2 "code": 200,
3 "message": "success",
4 "data": {
5 "task_id": "n74xxxx_minimax",
6 "status": "IN_PROGRESS"
7 }
8}

Check Task Status

For asynchronous tasks, poll the status endpoint to check when your task is complete:

GET/api/v1/tasks/{task_id}

Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.

bash
1curl https://apiin.one/api/v1/tasks/task_abc123 \
2 -H "Authorization: Bearer aio_your_key"

Use Cases

  • Generate background music for video content
  • Create custom songs for apps and games
  • Build AI-powered music creation platforms
  • Produce demo tracks for music production

API Tester

Test the MiniMax Music API directly from your browser:

API 테스트 환경POST

Error Codes

1{
2 "error": {
3 "code": 400,
4 "message": "Invalid parameters",
5 "type": "invalid_request"
6 }
7}

Frequently Asked Questions

How much does MiniMax Music cost?

Each song costs 30 credits (~$0.06).

How does MiniMax Music compare to Suno?

MiniMax Music offers lyrics-driven generation with configurable audio quality (bitrate and sample rate). It's great for precise lyric-based music creation.

Can I specify lyrics?

Yes. Use the "lyrics" parameter to provide exact lyrics for the song. The prompt describes the style/mood.

Why Use MiniMax Music Through API in One?

1.Lyrics-driven music generation
2.Configurable bitrate and sample rate
3.No separate MiniMax account needed
4.Unified billing with all other models

Ready to use MiniMax Music?

Get Your API Key →