Nexus
All models
Kling Video Available

Kling 3.0

Generate high-quality videos with advanced multi-shot capabilities and element references using Kling 3.0 AI

Text to Video

From 400 credits (≈ ₹400.00) per request.

Parameters

ParameterTypeDescription
prompt string Required when multi_shots is false. Up to 2,500 characters.
image_urls array<string> First and last frame image URLs. Optional; not required when using kling_elements. When multi_shots is false: if length is 2, index 0 is the first frame and index 1 is the last frame; if length is 1, the array item serves as the first frame. When multi_shots is true: only the first frame is supported.
soundRequired boolean Required. Whether to generate audio (speech, sound effects, ambience) with the video. Affects price.
durationRequired string Required. Video duration in seconds, 3–15 (string, e.g. "5"). In multi-shot mode, output length and billing follow the sum of multi_prompt[].duration (3–15 s); set duration to the same total.
one of: "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"
aspect_ratio string Optional when image_urls is provided (the output follows the first frame's aspect ratio). For text-to-video, set it explicitly: 16:9, 9:16 or 1:1.
one of: "16:9", "9:16", "1:1"
modeRequired string Required. Generation mode. std has standard resolution, pro has higher resolution, 4K has 4K resolution. Resolution mapping: - **std mode**: 16:9 (1280×720), 9:16 (720×1280), 1:1 (720×720) - **pro mode**: 16:9 (1920×1080), 9:16 (1080×1920), 1:1 (1080×1080) - **4K mode**: 16:9 (3840×2160), 9:16 (2160×3840), 1:1 (2160×2160)
one of: "std", "pro", "4K"
multi_shotsRequired boolean Required. Whether to use multi-shot mode. true enables multi-shot mode, false enables single-shot mode.
multi_prompt array<object> Shot prompts. Takes effect when multi_shots is true. Used to describe the text and duration of each shot. Supports up to 5 shots. Each shot duration is 1-12 seconds. If you need to use elements, add them after the prompt.
kling_elements array<object> Referenced elements. Detailed information about elements referenced in the prompt. A single task can reference a maximum of three elements.

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": "kling-3.0",
    "input": {
        "sound": false,
        "duration": "3",
        "aspect_ratio": "16:9",
        "mode": "std",
        "multi_shots": 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": "kling-3.0",
        "input": {
            "sound": False,
            "duration": "3",
            "aspect_ratio": "16:9",
            "mode": "std",
            "multi_shots": 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": "kling-3.0",
      "input": {
          "sound": false,
          "duration": "3",
          "aspect_ratio": "16:9",
          "mode": "std",
          "multi_shots": 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": "kling-3.0",
    "input": {
        "sound": false,
        "duration": "3",
        "aspect_ratio": "16:9",
        "mode": "std",
        "multi_shots": false
    }
}

Response

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