Quickstart
Use a bearer API key to create Seedance video tasks and poll the local task endpoint for status.
Authentication
Pass your key in the Authorization header. API keys are only shown once in the dashboard and are stored as SHA-256 hashes.
Authorization: Bearer sk_live_xxx
Create video
curl https://api.seedanceapi.app/v1/videos/generations \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0",
"prompt": "A cinematic city at sunrise",
"duration": 5,
"resolution": "720p"
}'Get video task
curl https://api.seedanceapi.app/v1/videos/vid_01jx9w6n8e6r7x9m2p4q \ -H "Authorization: Bearer sk_live_xxx"
Errors
All errors use a stable envelope.
{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid or revoked."
}
}First-version codes: missing_api_key, invalid_api_key, invalid_request, upstream_error, task_not_found, internal_error.