MiniMax Music 2.5
minimax/music/2.5MiniMax Music 2.5 composes a full song with vocals and accompaniment from a style prompt and lyrics, or an instrumental track without lyrics.
- Prix de base
- $0.15USD / exécution
- Exécution
- async
- Type de modèle
- audio
- Champs d'entrée
- 7
Essayer le modèle
Bac à sable
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Fiche modèle
Spécifications
Tarification
- Prix de base
- $0.15 / exécution
Contexte et modalités
- Entrée
- Défini par le schéma
- Sortie
- audio
Fonctionnalités
- Chat
- Non pris en charge
- Vision
- Non pris en charge
- Raisonnement
- Non pris en charge
- Sortie structurée
- Non pris en charge
- Appel de fonction
- Non pris en charge
- Entrée audio
- Non pris en charge
Accès
- Fournisseur
- MiniMax
- ID du modèle
- minimax/music/2.5
- Exécution
- async
- URL de base
- https://api.sandbase.ai
- API
- Unified Run API
- Point de terminaison
- /v1/run
README de l'API
MiniMax Music 2.5
MiniMax Music 2.5 writes a song with vocals from a style prompt and lyrics, or an instrumental track.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, up to 2000 chars, required | — | Style: genre, mood, instruments, scenario. |
lyrics | string, up to 3500 chars | "" | Lyrics with [Verse] / [Chorus] style tags. Needed unless one of the two switches below is on. |
is_instrumental | boolean | false | Generate without vocals. |
lyrics_optimizer | boolean | false | Write lyrics from the prompt when lyrics is empty. |
sample_rate | 16000 / 24000 / 32000 / 44100 | 44100 | Sample rate in Hz. |
bitrate | 32000 / 64000 / 128000 / 256000 | 256000 | Bitrate in bits per second. |
format | mp3 / wav / pcm | mp3 | Output file format. |
Billing
$0.15 per song.
| Request | Price |
|---|---|
| One song | $0.15 |
| 10 songs | $1.50 |
Failed runs are not charged.
Prompting
- Put style in
promptand words inlyrics.
Also on SandBase
Related: minimax/music/2.6, minimax/music/3.
Commencer à construire
Envoyez votre première requête
Point de terminaison compatible OpenAI avec authentification unifiée et suivi de l'utilisation.
# 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/2.5",
"format": "mp3",
"lyrics": "[verse]\nStreetlights flicker, the night breeze sighs\nShadows stretch as I walk alone\n[chorus]\nWandering, longing, where should I go",
"prompt": "Indie folk, melancholic, introspective, longing, solitary walk, coffee shop",
"bitrate": 256000,
"sample_rate": 44100,
"is_instrumental": false,
"lyrics_optimizer": false
}
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"Schéma d'entrée
7 paramètres · 1 obligatoires · 6 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
prompt | string | Obligatoire | A description of the music style, mood, genre, and scenario. Up to 2000 characters. · Longueur min. : 1 · Longueur max. : 2000 |
format | string | Facultatif | File format of the generated audio. · Options : mp3, wav, pcm · Par défaut : "mp3" mp3wavpcm |
lyrics | string | Facultatif | Lyrics of the song, up to 3500 characters. Use \n to separate lines. Supports structure tags: [Intro], [Verse], [Pre Chorus], [Chorus], [Bridge], [Outro], [Interlude], [Hook], [Break], [Solo], [Inst]. Required unless is_instrumental or lyrics_optimizer is true. · Longueur max. : 3500 · Par défaut : "" |
bitrate | integer | Facultatif | Bitrate of the generated audio, in bits per second. · Options : 32000, 64000, 128000, 256000 · Par défaut : 256000 3200064000128000256000 |
sample_rate | integer | Facultatif | Sample rate of the generated audio, in Hz. · Options : 16000, 24000, 32000, 44100 · Par défaut : 44100 16000240003200044100 |
is_instrumental | boolean | Facultatif | When true, generates vocal-free instrumental music. · Par défaut : false |
lyrics_optimizer | boolean | Facultatif | When true and lyrics is empty, auto-generates lyrics from the prompt. · Par défaut : false |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la tâche de génération |
status | string | Statut de la tâche : pending, running, completed, failed, timeout |
model | string | Modèle utilisé pour la génération |
outputs | array | Tableau des éléments de sortie |
outputs[].url | string | URL de l'artefact généré |
outputs[].content_type | string | Type MIME (par ex. image/png, video/mp4) |
error | object | null | Détails de l'erreur en cas d'échec, null en cas de succès |
error.type | string | Code de type d'erreur lisible par machine |
error.message | string | Description de l'erreur lisible par l'humain |
Flux de travail asynchrone
Ce modèle s’exécute de manière asynchrone. Envoyez une requête, puis interrogez le résultat.
- Envoyer : faites un POST vers /v1/run et lisez le
idrenvoyé. - Interroger : faites un GET sur /v1/run/{id} jusqu’à ce que le statut soit
completed,failedoutimeout. - Récupérer : lisez
outputsdans la réponse terminée.
Choisissez votre modèle
Comparer les modèles
| Modèle | Type | Prix par défaut | Lancement |
|---|---|---|---|
MiniMax Music 2.5Ce modèle MiniMax | Audio | $0.15 / exécution | 11 avr. 2026 |
MiniMax | Audio | $0.12 / exécution | 5 oct. 2026 |
MiniMax | Audio | $0.15 / exécution | 11 avr. 2026 |
MiniMax | Audio | $0.10 / exécution | 4 févr. 2026 |
MiniMax | Audio | $0.06 / exécution | 4 févr. 2026 |
MiniMax | Audio | $0.03 / exécution | 30 oct. 2025 |
Questions
FAQ
Comment appeler MiniMax Music 2.5 via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "minimax/music/2.5" à Unified Run API (/v1/run) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Ai-je besoin d’un compte MiniMax distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à MiniMax Music 2.5 et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte MiniMax séparément.
