🎶Music APIActive

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).

Model IDminimax-music

Use this in the request body model field.

Endpoint/api/v1/audio/music

The currently implemented BFF route.

Outputaudio

Input types: text

AuthBearer API key

Keys are managed by the shared dashboard.

WebhookNot required

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.

Parameters

promptstring

Style/mood description for the music

Required
lyricsstring

Lyrics for the generated song

Optional
bitratenumber

Audio bitrate: 32000, 60000, 64000, 128000, or 256000

Optional · Default 256000
sample_ratenumber

Sample rate: 16000, 24000, 32000, or 44100

Optional · Default 44100

Example 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.

01

Create a shared API key

Create a key in the existing dashboard. Top-up, orders, credit balance, and profile stay in the shared console.

02

Call the real endpoint

Send a request with the endpoint, model id, and parameters shown on this page. /api/v1/audio/music

03

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)

Base cost$0.30
Credits30
BillingSuccessful requests

Use cases

These workflows are supported by the current model and backend node.

01

Generate background music for video content

02

Create custom songs for apps and games

03

Build AI-powered music creation platforms

04

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.

Related live models