Use this in the request body model field.
minimax-music API
Generate AI songs with MiniMax Music 2.5 API via API in One. Supports lyrics input, configurable bitrate and sample rate. 30 credits per song (~$0.30).
The currently implemented BFF route.
Input types: text
Keys are managed by the shared dashboard.
This route does not require webhook handling.
Live capabilities
These capabilities come from the current model config and backend route. Unreleased APIs are not listed.
Lyrics
Lyrics-driven music generation
Configurable bitrate and sample rate
Configurable bitrate and sample rate
No separate MiniMax account needed
No separate MiniMax account needed
Unified billing with all other models
Unified billing with all other models
Request format
Clients call same-origin API routes; the server BFF forwards to the matching Worker.
POST/api/v1/audio/music30 creditsMiniMax's AI music generation — create high-quality songs with vocals and instrumentals from text descriptions.
Parameters
promptstringStyle/mood description for the music
RequiredlyricsstringLyrics for the generated song
OptionalbitratenumberAudio bitrate: 32000, 60000, 64000, 128000, or 256000
Optional · Default 256000sample_ratenumberSample rate: 16000, 24000, 32000, or 44100
Optional · Default 44100Example request
curl -X POST https://apiin.one/api/v1/audio/music \
-H "Authorization: Bearer aio_your_api_key" \
-H "Content-Type: application/json" \
--data-raw '{
"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
}'Models on the same endpoint
These live models use the same implemented BFF endpoint and can be switched by changing the model field.
Integration flow
These steps use the current live route and shared account system; login, payment, orders, credits, and profile remain shared.
Create a shared API key
Create a key in the existing dashboard. Top-up, orders, credit balance, and profile stay in the shared console.
Call the real endpoint
Send a request with the endpoint, model id, and parameters shown on this page. /api/v1/audio/music
Poll task status
Async media and tool jobs use /api/v1/tasks/{task_id}; chat models return a direct response.
Task status route
After creating image, video, audio, or tool tasks, poll the real task endpoint for results.
GET/api/v1/tasks/{task_id}Check generation task status and result.Pricing
~$0.30 per song (30 credits)
Use cases
These workflows are supported by the current model and backend node.
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
FAQ
How much does MiniMax Music cost?
Each song costs 30 credits (~$0.30).
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.