Nexus
All models
Suno Music Available

Suno Speech

Create a Suno Speech generation task. Supports **Simple** and **Advanced** modes, switched by `customMode`. The two modes have mutually exclusive fields — do not mix them.

Text to Music

From 150 credits (≈ ₹150.00) per request.

Parameters

ParameterTypeDescription
customModeRequired boolean Mode switch. Required. `false` is Simple, `true` is Advanced.
prompt string Simple only. A one-line scene description; the model writes the script. Required. After trimming whitespace, 1–3000 characters.
max length 3000
script string Advanced only. The text to be spoken. Required. After trimming whitespace, 1–5000 characters. Multiline is supported; use `\n` for line breaks in JSON.
max length 5000
tone string Advanced only, optional. Tone, rhythm, emotion, and setting. You can also describe accent and accompaniment style. After trimming whitespace, 0–1000 characters.
max length 1000
variety integer Advanced only, optional. Integer from `0` to `4`.
one of: 0, 1, 2, 3, 4 · min 0 · max 4
vocalGender string Advanced only, optional. Vocal gender. Case-insensitive. Do not send `female` / `male`.
one of: "f", "m"
backgroundMusic boolean Advanced only, optional. Whether to add background music. - `true`: On - `false`: Off

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": "suno-speech",
    "input": {
        "customMode": false,
        "variety": 0,
        "vocalGender": "f"
    },
    "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": "suno-speech",
        "input": {
            "customMode": False,
            "variety": 0,
            "vocalGender": "f",
        },
        "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": "suno-speech",
      "input": {
          "customMode": false,
          "variety": 0,
          "vocalGender": "f"
      },
      "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": "suno-speech",
    "input": {
        "customMode": false,
        "variety": 0,
        "vocalGender": "f"
    }
}

Response

{
    "id": "6f1c…",
    "object": "task",
    "model": "suno-speech",
    "status": "succeeded",
    "output": {
        "files": [
            {
                "url": "https://…signed…",
                "mime": "…",
                "size": 0
            }
        ]
    },
    "estimated_cost": "…",
    "charged": "…"
}