Nexus
All models
Google Video Available

Gemini Omni Flash 1.2 Extend

Use this endpoint to extend an existing Gemini Omni Flash 1.2 video from the end. Each request returns a complete video (original + the new segment).

Video to Video

From 400 credits (≈ ₹400.00) per request.

Parameters

ParameterTypeDescription
task_idRequired string ID of the source task to extend. Required. Must be a completed `google/gemini-omni-flash-1-2` generation task, or a completed `google/gemini-omni-flash-1-2-extend` extend task. The source video must be 360p or 720p (1080p / 4k is not supported yet) and no longer than 15 seconds.
promptRequired string Extend prompt. Required and must be non-empty. Describe what happens next, such as action, camera, environment, and sound. Put anything you do not want in the prompt as well.
max length 20000
durationRequired integer How many seconds to extend from the end. Required. Integer **3–10**. This is the length of the new segment, not the full output. Full duration is about source length + `duration`.
min 3 · max 10
image_urls array<string> Reference image URLs, max **3**. Used to keep people and objects consistent. Limits: - Use publicly accessible image URLs - Supported formats: png / jpeg / webp - Each file must be no larger than `20MB`

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": "gemini-omni-flash-1.2-extend",
    "input": {
        "task_id": "…",
        "prompt": "A cinematic shot of a lighthouse at dawn",
        "duration": 3
    },
    "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": "gemini-omni-flash-1.2-extend",
        "input": {
            "task_id": "…",
            "prompt": "A cinematic shot of a lighthouse at dawn",
            "duration": 3,
        },
        "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": "gemini-omni-flash-1.2-extend",
      "input": {
          "task_id": "…",
          "prompt": "A cinematic shot of a lighthouse at dawn",
          "duration": 3
      },
      "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": "gemini-omni-flash-1.2-extend",
    "input": {
        "task_id": "…",
        "prompt": "A cinematic shot of a lighthouse at dawn",
        "duration": 3
    }
}

Response

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