All models
ByteDance
Video
Available
ByteDance V1 Pro Image to Video
Content generation using bytedance/v1-pro-image-to-video
Image to Video
From 400 credits (≈ ₹400.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptRequired |
string | The text prompt used to generate the video (Max length: 10000 characters) max length 10000 |
image_urlRequired |
string | The URL of the image used to generate video (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB) format: uri |
resolution |
string | Video resolution - 480p for faster generation, 720p for balance, 1080p for higher quality one of: "480p", "720p", "1080p" · default "720p" |
duration |
string | Duration of the video in seconds one of: "5", "10" · default "5" |
camera_fixed |
boolean | Whether to fix the camera position (Boolean value (true/false)) |
seed |
number | Random seed to control video generation. Use -1 for random. (Min: -1, Max: 2147483647, Step: 1) (step: 1) min -1 · max 2147483647 · default -1 |
enable_safety_checker |
boolean | The safety checker is always enabled in Playground. It can only be disabled by setting false through the API. (Boolean value (true/false)) |
nsfw_checker |
boolean | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
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": "bytedance-v1-pro-image-to-video",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"image_url": "https://example.com/input.png",
"resolution": "720p",
"duration": "5",
"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": "bytedance-v1-pro-image-to-video",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"image_url": "https://example.com/input.png",
"resolution": "720p",
"duration": "5",
"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": "bytedance-v1-pro-image-to-video",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"image_url": "https://example.com/input.png",
"resolution": "720p",
"duration": "5",
"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": "bytedance-v1-pro-image-to-video",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"image_url": "https://example.com/input.png",
"resolution": "720p",
"duration": "5",
"seed": -1
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "bytedance-v1-pro-image-to-video",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}