🎶
MiniMax Music API
activeMiniMax'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
curl -X POST https://apiin.one/api/v1/audio/music \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-music",
"prompt": "An energetic electronic dance track with pulsing synths and driving bass",
"lyrics": "Feel the beat, move your feet, let the music take you higher",
"bitrate": 256000,
"sample_rate": 44100
}'API Endpoint
POST
/api/v1/audio/musicSend a POST request with your API key to generate content using MiniMax Music.
Headers
| Header | Type | Requis | Description |
|---|---|---|---|
Authorization | string | Requis | Bearer YOUR_API_KEY |
Content-Type | string | Requis | application/json |
Body Parameters
| Paramètre | Type | Requis | Description |
|---|---|---|---|
model | string | Requis | Model identifier: "minimax-music" |
prompt | string | Requis | Style/mood description for the music |
lyrics | string | Optionnel | Lyrics for the generated song |
bitrate | number | Optionnel | Audio bitrate: 32000, 60000, 64000, 128000, or 256000 (Par défaut : 256000) |
sample_rate | number | Optionnel | Sample rate: 16000, 24000, 32000, or 44100 (Par défaut : 44100) |
Example Request
json
{
"model": "minimax-music",
"prompt": "An energetic electronic dance track with pulsing synths and driving bass",
"lyrics": "Feel the beat, move your feet, let the music take you higher",
"bitrate": 256000,
"sample_rate": 44100
}Example Response
Successful task creation response.
{
"code": 200,
"message": "success",
"data": {
"task_id": "n74xxxx_minimax",
"status": "IN_PROGRESS"
}
}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
curl https://apiin.one/api/v1/tasks/task_abc123 \
-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:
Aire de jeux APIPOST
Error Codes
{
"error": {
"code": 400,
"message": "Invalid parameters",
"type": "invalid_request"
}
}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?
1Lyrics-driven music generation
2Configurable bitrate and sample rate
3No separate MiniMax account needed
4Unified billing with all other models
Ready to use MiniMax Music?
Get Your API Key →