All models
ByteDance
Video
Available
Seedance 2.5 Flash
Generate videos directly from text descriptions without input images
Image to Video
Text to Video
From 400 credits (≈ ₹400.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
prompt |
string | The text prompt used to generate the video. - Max length: 20480 characters - Required for text-to-video max length 20480 |
first_frame_url |
string | First frame image URL or asset://{assetId} (for example: asset://asset-20260404242101-76djj). Cannot be used simultaneously with `reference_image_urls`, `reference_video_urls`, or `reference_audio_urls`. format: uri |
last_frame_url |
string | End frame image URL or asset://{assetId} (for example: asset://asset-20260404242101-76djj). `last_frame_url` cannot be passed alone; `first_frame_url` must be provided together with it. format: uri |
reference_image_urls |
array<string> | Enter a list of image URLs or asset://{assetId} (for example: asset://asset-20260404242101-76djj). Single image requirements: - Format: jpeg, png, webp - Aspect ratio (width/height): (0.4, 2.5) - Width and height (px): (300, 6000) - Size: Single image less than 30 MB Up to 10 images. Mutually exclusive with the first/last-frame scenario. |
reference_video_urls |
array<string> | Enter a list of video URLs or asset://{assetId} (for example: asset://asset-20260404242101-76djj). Single video requirements: - Video format: mp4, mov - Resolution: 480p, 720p - Dimensions: - Aspect ratio (width/height): [0.4, 2.5] - Width/height (px): [300, 6000] - Total pixels: [640×640=409600, 834×1112=927408], i.e., the product of width and height must meet the range requirement of [409600, 927408] - Size: Single video not exceeding 200 MB - Frame rate (FPS): [24, 60] - Single video duration |
reference_audio_urls |
array<string> | Enter a list of audio URLs or asset://{assetId} (for example: asset://asset-20260404242101-76djj). Single audio requirements: - Format: wav, mp3 - Size: Single audio file size not exceeding 15 MB - Single audio duration: [2, 30] seconds Mutually exclusive with first/last frames. Total duration of reference audio must not exceed 30 seconds. Seedance 2.5 Flash also accepts audio-only references: a prompt plus reference audio, with no reference image or video. |
omni_reference_task_type |
string | Optional. Explicitly sets the task type for a multimodal reference request, instead of letting the model detect it automatically. Only takes effect when reference materials are provided (`reference_image_urls`, `reference_video_urls`, or `reference_audio_urls`). Do not pass it for text-to-video, first-frame, or first-and-last-frame requests — those requests will be rejected. - `auto`: the model determines the task type automatically - `reference`: generate a new video guided by the reference mat one of: "auto", "reference", "edit", "extend" |
return_last_frame |
boolean | Whether to also return the last frame of the generated video as a JPEG (in resultJson.lastFrameUrl). Default: false. default false |
generate_audio |
boolean | Whether to generate audio synchronized with the video. Default: true. default true |
resolution |
string | Video resolution - 480p for faster generation, 720p for balance. one of: "480p", "720p" · default "720p" |
aspect_ratio |
string | Video aspect ratio configuration. First-frame and first-and-last-frame requests only support `adaptive`. one of: "1:1", "4:3", "3:4", "16:9", "9:16", "21:9", "adaptive" · default "adaptive" |
duration |
integer | Video duration in 4-30 seconds. - Special values -1: Pass -1 for automatic duration selection — the model picks a suitable duration itself (for video-editing tasks, it matches the input video's length; for other task types, it selects within the valid range), instead of you specifying an exact value. - If omitted, the model selects the duration automatically, and billing follows the actual generated length. |
output_format |
string | Video output format. one of: "mp4", "mov" · default "mp4" |
web_search |
boolean | Enable online search. |
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": "seedance-2.5-flash",
"input": {
"omni_reference_task_type": "auto",
"return_last_frame": false,
"generate_audio": true,
"resolution": "720p",
"aspect_ratio": "adaptive",
"output_format": "mp4"
},
"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": "seedance-2.5-flash",
"input": {
"omni_reference_task_type": "auto",
"return_last_frame": False,
"generate_audio": True,
"resolution": "720p",
"aspect_ratio": "adaptive",
"output_format": "mp4",
},
"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": "seedance-2.5-flash",
"input": {
"omni_reference_task_type": "auto",
"return_last_frame": false,
"generate_audio": true,
"resolution": "720p",
"aspect_ratio": "adaptive",
"output_format": "mp4"
},
"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": "seedance-2.5-flash",
"input": {
"omni_reference_task_type": "auto",
"return_last_frame": false,
"generate_audio": true,
"resolution": "720p",
"aspect_ratio": "adaptive",
"output_format": "mp4"
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "seedance-2.5-flash",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}