MiniMax Music API
activeMiniMax's AI music generation — create high-quality songs with vocals and instrumentals from text descriptions.
Quick Start
Send a request to the MiniMax Music API:
| 1 | curl -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
/api/v1/audio/musicSend a POST request with your API key to generate content using MiniMax Music.
Headers
Bearer YOUR_API_KEY
application/json
Body Parameters
Model identifier: minimax-music
Style/mood description for the music
Lyrics for the generated song
Audio bitrate: 32000, 60000, 64000, 128000, or 256000 Defaults to 256000.
Sample rate: 16000, 24000, 32000, or 44100 Defaults to 44100.
Example Request
| 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:
/api/v1/tasks/{task_id}Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
| 1 | curl 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:
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?
Ready to use MiniMax Music?
Get Your API Key →