Nexus
All models
HappyHorse Video Available

HappyHorse 1-1 Image-To-Video

Learn how to check the task status and obtain the generated results

Image to Video

From 400 credits (≈ ₹400.00) per request.

Parameters

ParameterTypeDescription
prompt string Describes the video content to generate. Supports any language. Maximum: 5,000 non-Chinese characters or 2,500 Chinese
max length 5000 · default ""
image_urlsRequired array<string> The URL of the first frame image. Image constraints: 1. Formats: JPEG, JPG, PNG, WEBP. 2. Resolution: Width and height must both be at least 300 pixels. 3. Aspect ratio: Between 1:2.5 and 2.5:1. 4. File size: Up to 20 MB.
resolution string The resolution of the generated video. Options: 720p; 1080p The output keeps the aspect ratio of the input image; 720p / 1080p set the resolution tier.
one of: "720p", "1080p" · default "1080p"
duration number The duration of the generated video, in seconds. The value must be an integer in the range [3, 15]. Default: 5
min 3 · max 15 · default 5

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": "happyhorse-1-1-image-to-video",
    "input": {
        "prompt": "",
        "image_urls": null,
        "resolution": "1080p",
        "duration": 5
    },
    "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": "happyhorse-1-1-image-to-video",
        "input": {
            "prompt": "",
            "image_urls": None,
            "resolution": "1080p",
            "duration": 5,
        },
        "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": "happyhorse-1-1-image-to-video",
      "input": {
          "prompt": "",
          "image_urls": null,
          "resolution": "1080p",
          "duration": 5
      },
      "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": "happyhorse-1-1-image-to-video",
    "input": {
        "prompt": "",
        "image_urls": null,
        "resolution": "1080p",
        "duration": 5
    }
}

Response

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