WizzyFlow
Docs menu

reference to video

Seedance 2.0

Reference to video model by ByteDance. Price from $0.20/s. Prices in US dollars.

Try it in the Playground

Asyncreference to video

bytedance/seedance-2.0/reference-to-video

POST

Quick start

The request is async: you send it, get an ID and poll until it's done. The example uses the model's default values and runs the whole flow.

# 1. Send the request and keep the ID
ID=$(curl -s https://api.wizzyflow.ai/api/v3/bytedance/seedance-2.0/reference-to-video \
  -H "Authorization: Bearer $WIZZYFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A wooden raft heading out to sea at sunrise",
    "reference_images": [
      "https://example.com/photo.jpg"
    ]
  }' | jq -r '.data.id')

# 2. Poll every 2 seconds until it's done
while true; do
  RES=$(curl -s https://api.wizzyflow.ai/api/v3/predictions/$ID/result \
    -H "Authorization: Bearer $WIZZYFLOW_API_KEY")
  STATUS=$(echo "$RES" | jq -r '.data.status')
  case "$STATUS" in completed|failed|timeout) break ;; esac
  sleep 2
done

# 3. The outputs (URLs) and the price charged
echo "$RES" | jq '.data | {status, outputs, price, error}'

The response right after sending:

{
  "code": 200,
  "message": "success",
  "data": {
    "id": "8f1c2e4a-…",
    "model": "bytedance/seedance-2.0/reference-to-video",
    "status": "created",
    "outputs": [],
    "urls": { "get": "https://api.wizzyflow.ai/api/v3/predictions/8f1c2e4a-…/result" },
    "price": 0.78,
    "currency": "USD"
  }
}

Getting the result

Poll GET https://api.wizzyflow.ai/api/v3/predictions/{id}/result every 2 seconds, with the same key, until the status is final.

statusWhat it means
createdReceived, waiting its turn.
processingGenerating.
completedDone: the outputs are in outputs and the amount charged in price.
failedFailed: the reason is in error and nothing is charged.
timeoutWent over the time limit: nothing is charged.
{
  "code": 200,
  "message": "success",
  "data": {
    "id": "8f1c2e4a-…",
    "model": "bytedance/seedance-2.0/reference-to-video",
    "status": "completed",
    "outputs": ["https://…/video.mp4"],
    "error": "",
    "price": 0.78,
    "currency": "USD",
    "created_at": "2026-10-29T14:02:11Z",
    "completed_at": "2026-10-29T14:02:38Z",
    "executionTime": 27000
  }
}

Authentication

Send the key in the Authorization: Bearer $WIZZYFLOW_API_KEY header. Keep the key in an environment variable, on the server; never in browser code.

To resend the same request without risk of a double charge (after a network drop, for example), send the Idempotency-Key header with a value of your own, up to 200 characters. The same value returns the same job.

Input

Parameters go in the body, as JSON. Any you don't send use their default.

NameTypeValuesDefault
promptrequiredstring——
reference_imageslist of URLsup to 9 items—
reference_videoslist of URLsup to 3 items—
reference_audioslist of URLsup to 3 items—
aspect_ratiooption16:9, 9:16, 4:3, 3:4, 1:1, 21:916:9
resolutionoption480p, 720p, 1080p, 4k720p
durationinteger4 to 155
enable_web_searchboolean—false
generate_audioboolean—true

Output

Sending and polling return the job in the same format, inside data.

FieldTypeWhat it is
idstringThe job ID, to check the result.
modelstringThe model that generated it.
statusstringcreated, processing, completed, failed or timeout.
outputslist of URLsThe generated videos, mostly mp4.
errorstringThe reason for the failure, when it fails.
urls.getURLThe address to check this job.
pricenumberAmount held when sent and charged when it's done, in your account's currency.
currencystringBRL or USD: your account's currency.
created_at, completed_atdateWhen it was received and when it finished.
executionTimenumberTotal time, in milliseconds.