Nexus
All models
Google Video Available

Extend Veo 3.1 Video

This is the new version of the API documentation; for the old version of the API, please see https://docs.kie.ai/old-model/veo3-api/extend-video. Extend an existing Veo 3.1 video by generating new content based on the original video and a text prompt. This feature allows you to extend video duration or add new content based on your existing video clips.

Video to Video

From 400 credits (≈ ₹400.00) per request.

Parameters

ParameterTypeDescription
task_idRequired string The task ID of the original video generation. Must be a valid task ID returned by the video generation API.
promptRequired string A text prompt describing the content of the extended video. It should detail how you want the video to be extended, including actions, scene changes, styles, etc.
seeds integer A random seed parameter that controls the randomness of the generated content. Range: 10000-99999. The same seed will generate similar video content, while different seeds will generate different video content. If not specified, the system will automatically assign a random seed.
min 10000 · max 99999
watermark string Watermark text (optional). If provided, a watermark will be added to the generated video.

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": "extend-veo-3.1-video",
    "input": {
        "task_id": "…",
        "prompt": "A cinematic shot of a lighthouse at dawn"
    },
    "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": "extend-veo-3.1-video",
        "input": {
            "task_id": "…",
            "prompt": "A cinematic shot of a lighthouse at dawn",
        },
        "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": "extend-veo-3.1-video",
      "input": {
          "task_id": "…",
          "prompt": "A cinematic shot of a lighthouse at dawn"
      },
      "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": "extend-veo-3.1-video",
    "input": {
        "task_id": "…",
        "prompt": "A cinematic shot of a lighthouse at dawn"
    }
}

Response

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