Nexus
All models
Google Video Available

Gemini Omni Flash 1.2 Flash

Use this endpoint to create a new multimodal video generation task. Use only one generation mode per request.

Image to Video Text to Video

From 400 credits (≈ ₹400.00) per request.

Parameters

ParameterTypeDescription
promptRequired string Video prompt. Required and must be non-empty. Describe the scene, action, camera, and sound.
max length 20000
duration integer Duration of the generated video in seconds. Send an integer. - Text / reference images / characters (no first frame, no video): **required**, **3–15** - First frame only: **required**, **3–15** - First and last frame: **required**, **3–10** - Video edit (`video_list` set): **do not send**; output duration follows the input video
min 3 · max 15
aspect_ratio string Aspect ratio of the generated video. Allowed values: `16:9`, `9:16`, `auto`. Default `16:9`. When no reference image is provided, `auto` is treated as `16:9`.
one of: "16:9", "9:16", "auto" · default "16:9"
resolution string Resolution of the generated video. Allowed values: `360p`, `720p`, `1080p`, `4k`. Default `720p`.
one of: "360p", "720p", "1080p", "4k" · default "720p"
seeds integer Random seed. Range: 10000–99999. Send a single integer. If omitted, the system generates one.
min 10000 · max 99999
image_urls array<string> Reference image URLs, max **6**. Used for subject, scene, style, or storyboard reference. Two reference images are not treated as first/last frames. Limits: - Use publicly accessible image URLs - Each file must be no larger than `20MB` - Mutually exclusive with `first_frame_url` and `last_frame_url` - Each image costs 1 quota slot
character_ids array<string> Character IDs, max **2**. IDs come from the create-character endpoint `/api/v1/omni/character/create`. You can only use characters you created yourself. Mutually exclusive with first/last frames (`first_frame_url` / `last_frame_url`). Character images do not count toward the reference-image quota.
first_frame_url string First-frame image URL. Sets the starting frame of the generated video. Use a publicly accessible image URL. - First frame only (no last frame): `duration` is required, integer 3–15 - Together with `last_frame_url`: `duration` is required, integer 3–10 - When this field is set, do not send `image_urls`, `video_list`, or `character_ids` - Do not send `last_frame_url` alone
format: uri
last_frame_url string Last-frame image URL. Sets the ending frame. Must be sent together with `first_frame_url`; cannot be used alone. `duration` is then required and must be 3–10. When first and last frames are set, do not send `image_urls`, `video_list`, or `character_ids`.
format: uri
video_list array<string> Video URL array, max **1**. Sending this field selects video-edit mode. **Do not send `duration`**; output duration follows the input video. Can be combined with `image_urls` and `character_ids`. Mutually exclusive with `first_frame_url` and `last_frame_url`. Use a publicly accessible video URL, MP4 recommended, no longer than **15 seconds**.

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-flash",
    "input": {
        "prompt": "A cinematic shot of a lighthouse at dawn",
        "aspect_ratio": "16:9",
        "resolution": "720p"
    },
    "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-flash",
        "input": {
            "prompt": "A cinematic shot of a lighthouse at dawn",
            "aspect_ratio": "16:9",
            "resolution": "720p",
        },
        "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-flash",
      "input": {
          "prompt": "A cinematic shot of a lighthouse at dawn",
          "aspect_ratio": "16:9",
          "resolution": "720p"
      },
      "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-flash",
    "input": {
        "prompt": "A cinematic shot of a lighthouse at dawn",
        "aspect_ratio": "16:9",
        "resolution": "720p"
    }
}

Response

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