Bytedance logo

Seedance 2.0

by Bytedance

bytedance/seedance-2.0

Generate a video from a text prompt.

Billed per
token
Price
480p: Official price: $0.000007Sale price: $0.00000631720p (default): Official price: $0.000007Sale price: $0.000006311080p: Official price: $0.0000077Sale price: $0.000006959.8% off
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

9.8% off

Prices by input conditions in USD 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.

Input conditionsAvailabilityUSD per token
480pAvailableOfficial price: $0.000007Sale price: $0.00000631
720p (default)AvailableOfficial price: $0.000007Sale price: $0.00000631
1080pAvailableOfficial price: $0.0000077Sale price: $0.00000695

Questions