All models
MiniMax
Music
Available
MiniMax Music 3.0
Complete songs with vocals or instrumentals from a prompt and optional lyrics.
Text to Music
From 17.5 credits (≈ ₹17.50) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptRequired |
string | Style, mood and instrumentation. max length 4000 |
lyrics |
string | Optional lyrics (newline per line, blank line = pause). max length 3000 |
bitrate |
integer | — one of: 32000, 64000, 128000, 256000 · default 256000 |
sample_rate |
integer | — one of: 16000, 24000, 32000, 44100 · default 44100 |
is_instrumental |
boolean | — default false |
lyrics_optimizer |
boolean | Write lyrics automatically when none are given. default false |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax-music-3.0",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"bitrate": 256000,
"sample_rate": 44100,
"is_instrumental": false,
"lyrics_optimizer": false
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "minimax-music-3.0",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"bitrate": 256000,
"sample_rate": 44100,
"is_instrumental": False,
"lyrics_optimizer": False,
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "minimax-music-3.0",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"bitrate": 256000,
"sample_rate": 44100,
"is_instrumental": false,
"lyrics_optimizer": false
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "minimax-music-3.0",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"bitrate": 256000,
"sample_rate": 44100,
"is_instrumental": false,
"lyrics_optimizer": false
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "minimax-music-3.0",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}