bytedance/seedance-2.0-fast/image-to-videoAb 34 Credits für einen 5-Sekunden-Clip· Bild zu Video

Seedance 2.0 Fast Bild-zu-Video von ByteDance startet den Clip auf einem von Ihnen gelieferten Standbild und animiert es, mit Ton im selben Durchgang. Die Clips dauern 4 bis 15 Sekunden in 480p oder 720p; ein optionales Schlussbild legt das Ende fest.

Du rufst es mit dem Modellnamen bytedance/seedance-2.0-fast/image-to-video über POST /jobs/createTask auf, ab 34 Credits für einen 5-Sekunden-Clip (0,34 $). Neue Konten bekommen 30 kostenlose Credits, damit du es zuerst im Playground testen kannst.

  • Video erstellen
  • Bild zu Video
  • Referenz zu Video
  • Video verlängern
  • Bis 720p
  • Clips mit 4–15 s
  • Mit Ton
  • Start- und Endbild
  • Bis zu 9 Referenzbilder
  • 6 Seitenverhältnisse
Modellnamebytedance/seedance-2.0-fast/image-to-video
EndpunktPOST https://api.popnow.ai/api/v1/jobs/createTask
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "bytedance/seedance-2.0-fast/image-to-video",
  "input": {
    "prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "aspect_ratio": "adaptive",
    "resolution": "720p",
    "duration_seconds": 5,
    "generate_audio": true
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Der input ist aus dem Schema unten gebaut und besteht die Prüfung so, wie er dasteht. Ersetz Prompt und Links durch deine eigenen.

Preis

OptionCredits pro Sekunde≈ USD
resolution 480p6,750,068 $
resolution 720p14,520,15 $

1 Credit = 0,01 $ · Alle Optionen und Preise: GET /models/bytedance/seedance-2.0-fast/image-to-video

Jede Aufgabe wird auf ganze Credits aufgerundet, ein Lauf in der günstigsten Stufe kostet also 34 Credits für einen 5-Sekunden-Clip (0,34 $).

Limits

Cliplänge
4–15 s
Auflösungen
480p · 720p
Seitenverhältnisse
16:9 · 9:16 · 4:3 · 3:4 · 1:1 · 21:9 · adaptive

Parameter

Diese Felder stammen aus demselben Schema, gegen das wir jede Anfrage prüfen. Nicht aufgeführte Felder werden abgelehnt.

  • image_urlstringPflicht

    Das Bild, von dem aus es losgeht.

    Bereich
    image/jpeg, image/png, image/webp, image/gif
  • promptstringOptional

    Describe the intended subject, action, camera, light, sound, and constraints.

    Bereich
    1 – … chars
  • last_image_urlstringOptional

    Optionales Endbild, damit der Clip genau dort endet, wo du willst.

    Bereich
    image/jpeg, image/png, image/webp, image/gif
  • aspect_ratiostringOptional

    Die Form des Bildes: breit, quadratisch oder hoch.

    Standardwert
    "adaptive"
    Erlaubte Werte
    "16:9""9:16""4:3""3:4""1:1""21:9""adaptive"
  • resolutionstringOptionalÄndert den Preis

    Ausgabegröße. Größere Formate sind schärfer und kosten mehr.

    Standardwert
    "720p"
    Erlaubte Werte
    "480p""720p"
  • duration_secondsintegerOptionalÄndert den Preis

    Wie lang der Clip läuft. Abgerechnet wird pro Sekunde.

    Standardwert
    5
    Erlaubte Werte
    -1456789101112131415
  • generate_audiobooleanOptionalÄndert den Preis

    Fügt passenden Ton hinzu: Stimmen, Atmo und Effekte.

    Standardwert
    true
  • seedintegerOptional

    Dieselbe Zahl liefert ein wiederholbares Ergebnis.

    Bereich
    0 – 2147483647
  • return_last_framebooleanOptional

    Also return the clip’s final frame as a separate image.

    Standardwert
    false
  • bitrate_modestringOptional

    Encoding bitrate of the delivered file: standard, or high for crisper detail and a larger file.

    Standardwert
    "standard"
    Erlaubte Werte
    "standard""high"
  • watermarkbooleanOptional

    Add the model’s visible "AI generated" watermark to the video.

    Standardwert
    false
Rohes JSON-Schema
{
  "additionalProperties": false,
  "properties": {
    "aspect_ratio": {
      "default": "adaptive",
      "description": "Output frame ratio.",
      "enum": [
        "16:9",
        "9:16",
        "4:3",
        "3:4",
        "1:1",
        "21:9",
        "adaptive"
      ],
      "type": "string"
    },
    "bitrate_mode": {
      "default": "standard",
      "description": "Encoding bitrate of the delivered file: standard, or high for crisper detail and a larger file.",
      "enum": [
        "standard",
        "high"
      ],
      "type": "string"
    },
    "duration_seconds": {
      "default": 5,
      "description": "Requested output duration in seconds. Pass -1 for smart duration: the model picks the length itself instead of a fixed number.",
      "enum": [
        -1,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        13,
        14,
        15
      ],
      "type": "integer"
    },
    "generate_audio": {
      "default": true,
      "description": "Request synchronised output audio.",
      "type": "boolean"
    },
    "image_url": {
      "contentMediaType": [
        "image/jpeg",
        "image/png",
        "image/webp",
        "image/gif"
      ],
      "description": "A source image that you are authorised to process.",
      "type": "string"
    },
    "last_image_url": {
      "contentMediaType": [
        "image/jpeg",
        "image/png",
        "image/webp",
        "image/gif"
      ],
      "description": "Optional closing image for the chosen video workflow.",
      "type": "string"
    },
    "prompt": {
      "description": "Describe the intended subject, action, camera, light, sound, and constraints.",
      "minLength": 1,
      "type": "string"
    },
    "resolution": {
      "default": "720p",
      "description": "Output resolution.",
      "enum": [
        "480p",
        "720p"
      ],
      "type": "string"
    },
    "return_last_frame": {
      "default": false,
      "description": "Also return the clip’s final frame as a separate image.",
      "type": "boolean"
    },
    "seed": {
      "description": "Random seed. Omit to let the model pick one.",
      "maximum": 2147483647,
      "minimum": 0,
      "type": "integer"
    },
    "watermark": {
      "default": false,
      "description": "Add the model’s visible \"AI generated\" watermark to the video.",
      "type": "boolean"
    }
  },
  "required": [
    "image_url"
  ],
  "type": "object"
}

Ein echtes Ergebnis von Seedance 2.0 Fast

PromptCast: one man and one woman. The camera stays on the two hands closing in from either side. The dominoes fall inward from both ends of the table and stop between two hands that are almost, but not quite, touching. Macro, very shallow depth of field. Cinematic, heavy film grain, warm tabletop light.
Dieselbe Anfrage über die API
{
  "model": "bytedance/seedance-2.0-fast/image-to-video",
  "input": {
    "prompt": "Cast: one man and one woman. The camera stays on the two hands closing in from either side. The dominoes fall inward from both ends of the table and stop between two hands that are almost, but not quite, touching. Macro, very shallow depth of field. Cinematic, heavy film grain, warm tabletop light.",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "aspect_ratio": "3:4",
    "resolution": "480p",
    "duration_seconds": 5,
    "generate_audio": false
  }
}

Dieses Ergebnis startete mit einer hochgeladenen Datei: Setz deinen eigenen Link dort ein, wo der Beispiel-Link steht.

Antworten, Polling und Callbacks

Alle Modelle funktionieren gleich: Task anlegen, dann pollen oder auf den Callback warten.

Erst den Preis prüfen

cURL
curl -X POST https://api.popnow.ai/api/v1/jobs/quote \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance/seedance-2.0-fast/image-to-video",
  "input": {
    "prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "aspect_ratio": "adaptive",
    "resolution": "720p",
    "duration_seconds": 5,
    "generate_audio": true
  }
}'

Gleicher Body wie bei createTask. Liefert die erwartete und die höchstmögliche Abbuchung und startet nichts.

Angenommen

HTTP
HTTP/1.1 202 Accepted

{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_01k3m8x9q2z4v7n5p6r8s0t1w3",
    "state": "queued"
  },
  "request_id": "req_example_create"
}

HTTP 202 heißt: Der Task ist angenommen, die Credits sind reserviert, aber noch nicht abgebucht. Die endgültige Abbuchung liegt nie über der Reservierung.

Status abfragen

cURL
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Frag alle paar Sekunden mit wachsendem Abstand ab und hör auf, sobald state succeeded, failed, canceled oder expired ist.

Fertiger Task

JSON
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_01k3m8x9q2z4v7n5p6r8s0t1w3",
    "model": "bytedance/seedance-2.0-fast/image-to-video",
    "state": "succeeded",
    "output": {
      "assets": [
        {
          "url": "https://cdn.popnow.ai/tasks/task_01k3m8x9q2z4v7n5p6r8s0t1w3/output.mp4?signature=FROM_RESPONSE",
          "expiresAt": "2026-10-17T12:20:00Z",
          "mime": "video/mp4",
          "width": 1280,
          "height": 720,
          "durationSeconds": 5
        }
      ]
    },
    "settled": true
  },
  "request_id": "req_example_record"
}

Lad über die url vor expiresAt herunter. Später einen frischen Link nötig? Frag POST /common/download-url.

Callback prüfen

Node.js
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
import express from "express";

const app = express();
// express.raw keeps the exact bytes that were signed; express.json would not match.
app.post("/hooks/popnow", express.raw({ type: "application/json" }), (req, res) => {
  const timestamp = req.header("X-Webhook-Timestamp");
  const signature = req.header("X-Webhook-Signature") ?? "";
  const body = JSON.parse(req.body.toString("utf8"));
  const taskId = body.data?.taskId ?? body.task_id;
  const digest = createHash("sha256").update(req.body).digest("hex");
  const expected = createHmac("sha256", process.env.POPNOW_WEBHOOK_SECRET)
    .update(`${taskId}.${timestamp}.${digest}`)
    .digest("base64");
  const ok = expected.length === signature.length && timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
  // Check the signature first, then reject anything older than five minutes.
  if (!ok || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return res.status(401).end();
  res.status(200).end(); // answer fast, then fetch the task and store its files
});

Mit gesetzter callBackUrl schicken wir dir den fertigen Task. Prüf die Signatur am rohen Body, bevor du ihm vertraust.

Lokale Datei schicken

cURL
curl -X POST https://api.popnow.ai/api/v1/common/upload-url \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contentType": "image/png", "bytes": 482113}'

# PUT the file bytes to data.uploadUrl with every header in data.headers, then commit it:
curl -X POST https://api.popnow.ai/api/v1/files/$FILE_ID/commit \
  -H "Authorization: Bearer $POPNOW_API_KEY"
# The commit returns a popnow://f/... reference. Put it in any image, video or
# audio field of the task input instead of a public https URL.

Öffentliche https-Links funktionieren direkt. Lokale Dateien laufen vorher über upload-url und commit.