Seedance 2.0
bytedance/seedance-2.0Generate a video from a text prompt.
- token
Official price: $0.000007Sale price: $0.00000631Official price: $0.000007Sale price: $0.00000631Official price: $0.0000077Sale price: $0.000006959.8% off- Bytedance
- 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.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Describe the scene and movement. |
| resolution | string | No | Output resolution. Allowed: 480p, 720p, 1080p Default: "720p" |
| duration | integer | No | Requested video duration in seconds. Default: 5Minimum: 4 Maximum: 15 |
| ratio | string | No | Output aspect ratio. Allowed: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive Default: "adaptive" |
| generate_audio | boolean | No | Generate synchronized audio. Default: true |
| watermark | boolean | No | Add 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% offPrices 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 conditions | Availability | USD per token |
|---|---|---|
| 480p | Available | |
| 720p (default) | Available | |
| 1080p | Available |
