Seedance 2.0

by Bytedance

bytedance/seedance-2.0

Generate a video from a text prompt.

Billed per
token
Price
480p: Price: $0.000007720p (default): Price: $0.0000071080p: Price: $0.0000077
Provider
Bytedance
Timeout
25 min

Overview

Generate a 4–15 second video with optional synchronized audio. 480p, 720p and 1080p output are supported. Reference images, video, audio and 4K output are unsupported. Billing uses the completed task's output tokens.

After COMPLETED, read run.output.video_url, run.output.duration and run.output.resolution. Download the temporary video URL promptly.

Input

These go in the input object of the run request.

FieldTypeRequiredDescription
promptstringYesDescribe the scene and movement.
resolutionstringNoOutput resolution.
Allowed: 480p, 720p, 1080p
Default: "720p"
durationintegerNoRequested video duration in seconds.
Default: 5
Minimum: 4
Maximum: 15
ratiostringNoOutput aspect ratio.
Allowed: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive
Default: "adaptive"
generate_audiobooleanNoGenerate synchronized audio.
Default: true
watermarkbooleanNoAdd a generation watermark.
Default: false

Requests up to 1 MB.

Example

Use your own API key and a saved idempotency key for each new job. Replace image or media placeholders with your own publicly reachable HTTPS URLs. Keep the same key and request body when recovering a timeout.

# Set once per job; reuse this key and the identical body after a timeout.
: "${AGENTSKY_IDEMPOTENCY_KEY:?Set a unique, saved key for this job}"
curl --fail-with-body https://gateway.agentsky.dev/v1/run \
  -H "authorization: Bearer $AGENTSKY_API_KEY" \
  -H "content-type: application/json" \
  -H "Idempotency-Key: $AGENTSKY_IDEMPOTENCY_KEY" \
  -d '{"provider":"bytedance","endpoint":"seedance-2.0","input":{"prompt":"A blue sphere slowly rotates on a white background.","duration":5,"resolution":"720p"}}'
# If status is READY/RUNNING, poll GET /v1/runs/{runId} with the same API key.

Pricing

480p: $0.000007 · 720p (default): $0.000007 · 1080p: $0.0000077 per token using your plan when signed in. Read the final customer charge from price.amount.value after the run finishes. A RUNNING response is not the final bill.

Questions