PromptFlow AI
API docs

seedance-2.5

Create AI Video · Seedance 2.5 — Create cinematic AI videos with smooth motion using Seedance 2.5 — maintain character consistency across multiple angles, flexible duration 4s – 30s, quality 480p – 1080p (480p, 720p, 1080p), support up to 30 reference images for character/scene consistency, integrated natural sound & effects, multiple aspect ratios (16:9, 9:16, 1:1, 4:3, 3:4...), no prompt character limit.

SV19 (sv19) · maintenanceid: seedance-2.5-2canonical_model: seedance-2.5type: videooutput: video0.3782 credits – 5.27 credits

Detailed API pricing by parameter configuration

Actual unit price (credits) deducted from your wallet when calling POST /v1/generations (or check it in advance with POST /v1/generations/estimate).

0.3782 credits – 5.27 credits
Detailed pricing by resolution & duration
Resolution4s5s8s10s12s15s30s
480p0.3782 credits0.4727 credits0.6806 credits0.8507 credits1.02 credits1.28 credits2.36 credits
720p0.5402 credits0.6752 credits0.9723 credits1.22 credits1.46 credits1.82 credits3.37 credits
1080p0.8102 credits1.01 credits1.46 credits1.82 credits2.19 credits2.73 credits5.13 credits
4K0.8291 credits1.04 credits1.5 credits1.87 credits2.24 credits2.81 credits5.27 credits

Supports free selection per second from 4s to 30s

Input — request parameters

POST/v1/generations

Send JSON in the standard structure "model": "seedance-2.5", "server": "sv19" and the parameters below at the same level. Parameters not listed in the table are rejected (400).

ParameterTypeSupported valuesDescription
modelrequiredstringseedance-2.5-2or seedance-2.5The package ID itself or the canonical model line ID (combined with the server selection parameter below).
serverstringsv19autoPins the server (SV) that runs the order (the alias server_id is also accepted), or auto to pick the best-priced healthy server automatically. Check live servers via GET /v1/models/seedance-2.5/servers.
promptrequiredstring
Video description (prompt)
input_modeenum
autotextingredientsfirst_framefirst_last

Default: auto

Input image mode
image_urlsstring[] (URL image)

Up to 30 files

Reference images (optional, max 30 images) — JPEG, PNG, GIF, or WebP. Call in order image 1, image 2... in prompt
aspect_ratioenum
16:99:161:14:33:421:9Auto

Default: 9:16

Aspect ratio
durationrequiredenum
456789101112131415161718192021222324252627282930

Default: 4

Duration
resolutionenum
480p720p1080p4k-upscale

Default: 480p

Resolution
qualityenum
standardultra

Options change based on resolution:

480p:standard
720p:standardultra
1080p:standardultra
4k-upscale:standardultra

Default: standard

Quality
  • File parameters (string URL) accept a public http(s) link — the server downloads it — or a URL returned by the file upload API POST /account/ai/uploads.
  • Element order in array image_urls ([url_1, url_2, url_3]) is strictly mapped 1-to-1 by the system in exact order: Image 1 / FIRST image, Image 2 / SECOND image, Image 3 / THIRD image. When uploading local files via POST /account/ai/uploads, upload them sequentially in exact [1, 2, 3] order so the URL array stays aligned.
  • Optional parameters left blank use their default values. You can also send an Idempotency-Key header to retry safely without being charged twice.

Sample request (cURL)

curl -X POST https://promptflow.web.id/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{
  "model": "seedance-2.5",
  "server": "sv19",
  "prompt": "Keep the pose and composition of Image 1, swap in the outfit from Image 2, and use the face from Image 3.",
  "input_mode": "auto",
  "aspect_ratio": "9:16",
  "duration": "4",
  "resolution": "480p",
  "quality": "standard"
}'

Complete integration code sample (Upload file → Create job → Poll result)

Python 3

import os, time, requests

BASE = "https://promptflow.web.id/api"
API_KEY = os.environ["API_KEY"]  # get it on the /api-keys page
HEADERS = {"X-API-Key": API_KEY}

def upload_file(local_path: str) -> str:
    """Upload one local file to the server and return its input URL"""
    with open(local_path, "rb") as f:
        r = requests.post(f"{BASE}/account/ai/uploads", headers=HEADERS, files={"file": f}, timeout=120)
    data = r.json()
    if not r.ok:
        raise RuntimeError(data.get("message") or r.text)
    return data["url"]

# Step 1: Upload one at a time in order Image 1 -> Image 2 -> Image 3 (or use public https links directly)
image_urls = [
    upload_file("./1.jpg"),  # Image 1 (FIRST image)
    upload_file("./2.jpg"),  # Image 2 (SECOND image)
    upload_file("./3.jpg"),  # Image 3 (THIRD image)
]

# Step 2: Send the request with the image_urls array in the exact order [1, 2, 3]
payload = {
    "model": "seedance-2.5",
    "server": "sv19",
    "prompt": "Keep the pose and composition of Image 1, swap in the outfit from Image 2, and use the face from Image 3.",
    "input_mode": "auto",
    "aspect_ratio": "9:16",
    "duration": "4",
    "resolution": "480p",
    "quality": "standard"
}
payload["image_urls"] = image_urls

r = requests.post(f"{BASE}/v1/generations", headers=HEADERS, json=payload, timeout=60)
gen = r.json()
if not r.ok:
    raise RuntimeError(gen.get("message") or r.text)

# Step 3: Poll the status every 5 seconds until it finishes
while gen["status"] in ("queued", "processing"):
    time.sleep(5)
    poll = requests.get(f"{BASE}/v1/generations/{gen['id']}", headers=HEADERS, timeout=60)
    gen = poll.json()

if gen["status"] != "succeeded":
    raise RuntimeError(gen.get("error") or gen["status"])

print("Result:", [f["url"] for f in gen["output"]["files"]])

Node.js (18+)

import fs from "node:fs";
import path from "node:path";

const BASE = "https://promptflow.web.id/api";
const API_KEY = process.env.API_KEY; // get it on the /api-keys page

async function uploadFile(filePath) {
  const form = new FormData();
  const buf = fs.readFileSync(filePath);
  form.append("file", new Blob([buf]), path.basename(filePath));
  const res = await fetch(`${BASE}/account/ai/uploads`, {
    method: "POST",
    headers: { "X-API-Key": API_KEY },
    body: form,
  });
  const data = await res.json();
  if (!res.ok) throw new Error(data.message || res.statusText);
  return data.url;
}

// Step 1: Upload images 1 -> 2 -> 3 one at a time to keep the array order
const imageUrls = [];
for (const file of ["./1.jpg", "./2.jpg", "./3.jpg"]) {
  imageUrls.push(await uploadFile(file));
}

// Step 2: Create the job
const createRes = await fetch(`${BASE}/v1/generations`, {
  method: "POST",
  headers: { "X-API-Key": API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    ...{
  "model": "seedance-2.5",
  "server": "sv19",
  "prompt": "Keep the pose and composition of Image 1, swap in the outfit from Image 2, and use the face from Image 3.",
  "input_mode": "auto",
  "aspect_ratio": "9:16",
  "duration": "4",
  "resolution": "480p",
  "quality": "standard"
},
    image_urls: imageUrls,
  }),
});
let gen = await createRes.json();
if (!createRes.ok) throw new Error(gen.message || createRes.statusText);

// Step 3: Wait for the result
while (["queued", "processing"].includes(gen.status)) {
  await new Promise((r) => setTimeout(r, 5000));
  const pollRes = await fetch(`${BASE}/v1/generations/${gen.id}`, {
    headers: { "X-API-Key": API_KEY },
  });
  gen = await pollRes.json();
}
if (gen.status !== "succeeded") throw new Error(gen.error ?? gen.status);
console.log("Result:", gen.output.files.map((f) => f.url));

Output — response

Jobs run asynchronously. POST /v1/generations immediately returns a generation object with status queued or processing; poll GET /v1/generations/{id} every 5–10 seconds until status is succeeded, failed or cancelled.

GET/v1/generations/{id}
{
  "id": "3f1c...-uuid",
  "object": "generation",
  "code": "T8KQ2M4X",
  "model": "seedance-2.5-2",
  "canonical_model": "seedance-2.5",
  "server_id": "sv19",
  "server_name": "SV19",
  "status": "succeeded",       // queued | processing | succeeded | failed | cancelled
  "progress": 100,
  "cost": 2400,                // amount charged
  "currency": "CREDITS",
  "refunded": false,
  "output": {
    "type": "video",
    "files": [{ "url": "https://promptflow.web.id/uploads/ai/outputs/....mp4", "type": "video", "name": "video.mp4" }],
    "text": null
  },
  "error": null,
  "created_at": "2026-10-30T08:00:00.000Z",
  "completed_at": "2026-10-30T08:01:12.000Z"
}
FieldMeaning
model / server_idThe exact package ID and server (SV) that executed the task.
output.files[].urlResult file links — download them to your own system; files on our server may be cleaned up after some time.
output.textText content (only for models that return text).
costAmount in credits charged to your balance; refunded automatically on failure or cancellation (refunded = true).
errorError reason when status = failed.

Get a quote before running

POST/v1/generations/estimate

Same body as POST /v1/generations, without running or charging (your account's personal discount %, if any, is applied automatically).

# => {
#   "object": "estimate",
#   "model": "seedance-2.5-2",
#   "canonical_model": "seedance-2.5",
#   "server_id": "sv19",
#   "server_name": "SV19",
#   "cost": 2400,
#   "currency": "CREDITS"
# }
Get an API key
seedance-2.5-2 · API docs | PromptFlow AI