Nexus
All models
ByteDance Video Available

OmniHuman 1.5

Use this endpoint to create a new audio-driven portrait animation task. Upload a portrait image and an audio file, and the model will generate a video of the subject speaking or moving in sync with the audio.

Image to Video Text to Video

From 400 credits (≈ ₹400.00) per request.

Parameters

ParameterTypeDescription
image_urlRequired string Portrait image URL. Supports any aspect ratio with subjects including people, pets, anime, etc. Accepted file types: image/jpeg, image/png, image/webp. Max file size: 10MB.
format: uri
mask_url array<string> Optional mask image URL(s). To have a specific subject in the image speak, use 'Subject Detection' to get the corresponding mask image and pass it as input. Accepted file types: image/jpeg, image/png, image/webp. Max file size: 10MB. Multiple file upload is supported, up to 5 files.
audio_urlRequired string Audio URL. Duration must be less than 60 seconds (recommended 15 seconds or less; exceeding this will cause quality degradation). Accepted file types: audio/mpeg, audio/wav, audio/x-wav, audio/aac, audio/ogg, audio/mp4. Max file size: 10MB.
format: uri
prompt string Optional. Supported languages: Chinese, English, Japanese, Korean, Spanish, Indonesian. Up to 300 characters.
max length 300
output_resolution string Output video resolution. - `720`: 720P - `1080`: 1080P (default) The output keeps the aspect ratio of the input image; 720 and 1080 are resolution tiers, not exact heights. The output is an MP4 as long as the audio.
one of: "720", "1080" · default "1080"
pe_fast_mode boolean Fast mode. Sacrifices some quality to speed up generation. Default value: `false`.
default false
seed integer Random seed. Default is `-1` (random). When using the same positive integer and keeping all other parameters identical, the result will be highly consistent.
default -1

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": "omnihuman-1.5",
    "input": {
        "image_url": "https://example.com/input.png",
        "audio_url": "https://example.com/input.png",
        "output_resolution": "1080",
        "pe_fast_mode": false,
        "seed": -1
    },
    "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": "omnihuman-1.5",
        "input": {
            "image_url": "https://example.com/input.png",
            "audio_url": "https://example.com/input.png",
            "output_resolution": "1080",
            "pe_fast_mode": False,
            "seed": -1,
        },
        "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": "omnihuman-1.5",
      "input": {
          "image_url": "https://example.com/input.png",
          "audio_url": "https://example.com/input.png",
          "output_resolution": "1080",
          "pe_fast_mode": false,
          "seed": -1
      },
      "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": "omnihuman-1.5",
    "input": {
        "image_url": "https://example.com/input.png",
        "audio_url": "https://example.com/input.png",
        "output_resolution": "1080",
        "pe_fast_mode": false,
        "seed": -1
    }
}

Response

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