Get a task
Returns a video or image task created by the authenticated account. While the status is `pending` or `processing`, poll this endpoint with backoff. A completed task includes durable SeedVideo AI URLs for its video or images.
/v1/tasks/{task_id}Create a SeedVideo AI API key in Settings. Send it only from a trusted server.
In: header
Path Parameters
POST /v1/videos/generations and POST /v1/images/generations return this task ID.
Response Body
curl "https://www.seeddance.io/v1/tasks/vid_01JZK7R7KCYQ3T9F33A7K0J6XB" \ -H "Authorization: Bearer sk_sd_example"{
"task_id": "vid_01JZK7R7KCYQ3T9F33A7K0J6XB",
"status": "processing",
"model": "seedance-2.0-fast",
"output": null,
"credits_used": 25,
"error": null,
"created_at": "2026-07-22T08:30:00.000Z",
"completed_at": null
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid, expired, or revoked.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "task_not_found",
"message": "Task not found.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "API rate limit exceeded. Try again later.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "internal_error",
"message": "The request could not be completed.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}Create an image task POST
Starts an image task and returns its ID. Use `GET /v1/tasks/{task_id}` to check the status. Credits are deducted when the task is created and returned if it fails. Some models hold the connection until the image is ready, so allow up to 180 seconds for the response.
Get available credits GET
Returns the account's total credits, the credits reserved for active video tasks, and the credits available for a new task.