MiniMax Music 2.0
minimax/music/v2MiniMax Music 2.0 composes a full song with vocals and accompaniment from a style prompt and structured lyrics, with selectable sample rate, bitrate, and file format.
- Prezzo base
- $0.03USD / esecuzione
- Esecuzione
- async
- Tipo di modello
- audio
- Campi di input
- 5
Prova il modello
Playground
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Scheda del modello
Specifiche
Prezzi
- Prezzo base
- $0.03 / esecuzione
Contesto e modalità
- Input
- Definito dallo schema
- Output
- audio
Funzionalità
- Chat
- Non supportato
- Vision
- Non supportato
- Ragionamento
- Non supportato
- Output strutturato
- Non supportato
- Chiamata di funzione
- Non supportato
- Input audio
- Non supportato
Accesso
- Provider
- MiniMax
- ID modello
- minimax/music/v2
- Esecuzione
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
MiniMax Music 2.0
MiniMax Music 2.0 writes a full song with vocals and accompaniment from a style prompt and your lyrics.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, 10–2000 chars, required | — | Style: genre, mood, scenario. |
lyrics | string, 10–3000 chars, required | — | Lyrics with [Verse] / [Chorus] style tags. |
sample_rate | 8000 / 16000 / 22050 / 24000 / 32000 / 44100 | 44100 | Sample rate in Hz. |
bitrate | 32000 / 64000 / 128000 / 256000 | 256000 | Bitrate in bits per second. |
format | mp3 / pcm / flac | mp3 | Output file format. |
Billing
$0.03 per song.
| Request | Price |
|---|---|
| One song | $0.03 |
| 10 songs | $0.30 |
Failed runs are not charged.
Prompting
- Put style in
promptand words inlyrics.
Also on SandBase
Related: minimax/music/2.6, minimax/music/3, minimax/music/2.5.
Inizia a costruire
Invia la tua prima richiesta
Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "minimax/music/v2",
"format": "mp3",
"lyrics": "[verse]\nStreetlights flicker, the night breeze sighs\nShadows stretch as I walk alone\n[chorus]\nPushing the wooden door, the aroma spreads\nIn a familiar corner, a stranger gazes",
"prompt": "Indie folk, melancholic, introspective, longing, solitary walk, coffee shop",
"bitrate": 256000,
"sample_rate": 44100
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Schema di input
5 parametri · 2 obbligatori · 3 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
lyrics | string | Obbligatorio | Lyrics of the song, 10–3000 characters. Use \n to separate lines and structure tags such as [Intro], [Verse], [Chorus], [Bridge], [Outro]. · Lunghezza minima: 10 · Lunghezza massima: 3000 |
prompt | string | Obbligatorio | Style of the music: genre, mood, and scenario. 10–2000 characters. · Lunghezza minima: 10 · Lunghezza massima: 2000 |
format | string | Facoltativo | File format of the generated audio. · Opzioni: mp3, pcm, flac · Predefinito: "mp3" mp3pcmflac |
bitrate | integer | Facoltativo | Bitrate of the generated audio, in bits per second. · Opzioni: 32000, 64000, 128000, 256000 · Predefinito: 256000 3200064000128000256000 |
sample_rate | integer | Facoltativo | Sample rate of the generated audio, in Hz. · Opzioni: 8000, 16000, 22050, 24000, 32000, 44100 · Predefinito: 44100 80001600022050240003200044100 |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco dell'attività di generazione |
status | string | Stato dell'attività: pending, running, completed, failed, timeout |
model | string | Modello usato per la generazione |
outputs | array | Array di elementi di output |
outputs[].url | string | URL dell'artefatto generato |
outputs[].content_type | string | Tipo MIME (ad esempio image/png, video/mp4) |
error | object | null | Dettagli dell'errore in caso di fallimento, null in caso di successo |
error.type | string | Codice del tipo di errore leggibile dalla macchina |
error.message | string | Descrizione dell'errore leggibile dall'utente |
Workflow asincrono
Questo modello funziona in modo asincrono. Invia una richiesta, quindi esegui il polling per ottenere il risultato.
- Invio: esegui POST su /v1/run e leggi il
idrestituito. - Polling: esegui GET /v1/run/{id} finché lo stato non è
completed,failedotimeout. - Recupero: leggi
outputsdalla risposta completata.
Scegli il tuo modello
Confronta i modelli
| Modello | Tipo | Prezzo predefinito | Rilasciato |
|---|---|---|---|
MiniMax Music 2.0Questo modello MiniMax | Audio | $0.03 / esecuzione | 30 ott 2025 |
MiniMax | Audio | $0.12 / esecuzione | 5 ott 2026 |
MiniMax | Audio | $0.15 / esecuzione | 11 apr 2026 |
MiniMax | Audio | $0.15 / esecuzione | 11 apr 2026 |
MiniMax | Audio | $0.10 / esecuzione | 4 feb 2026 |
MiniMax | Audio | $0.06 / esecuzione | 4 feb 2026 |
Domande
FAQ
Come chiamo MiniMax Music 2.0 tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "minimax/music/v2" a Unified Run API (/v1/run) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Mi serve un account MiniMax separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a MiniMax Music 2.0 e agli altri modelli del catalogo; non è necessario registrarsi separatamente su MiniMax.
