Overview
Query the status and result of a video generation task created by the seedance-1-0-pro-250528 model. This endpoint allows you to check if the video generation is complete and retrieve the video URL.
Authentication
This endpoint requires authentication using a Bearer token with your API key.
Your API key in the format: Bearer YOUR_API_KEY
Path Parameters
The task ID returned when creating the video generation task
Request Example
curl -X GET "https://gptproto.com/api/v3/contents/generations/tasks/{task_id}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
Task is still processing {
"code" : 0 ,
"message" : "Success" ,
"data" : {
"task_id" : "task_xxxxxxxxxx" ,
"status" : "pending" ,
"model" : "seedance-1-0-pro-250528"
}
}
Task completed successfully with video URL {
"code" : 0 ,
"message" : "Success" ,
"data" : {
"task_id" : "task_xxxxxxxxxx" ,
"status" : "completed" ,
"model" : "seedance-1-0-pro-250528" ,
"video_url" : "https://example.com/generated_video.mp4" ,
"created_at" : "2025-01-10T12:00:00Z" ,
"completed_at" : "2025-01-10T12:01:30Z"
}
}
Task failed with error message {
"code" : 0 ,
"message" : "Success" ,
"data" : {
"task_id" : "task_xxxxxxxxxx" ,
"status" : "failed" ,
"model" : "seedance-1-0-pro-250528" ,
"error" : "Content policy violation or generation error"
}
}
Error Responses
400 - Bad Request
401 - Unauthorized
404 - Not Found
500 - Internal Server Error
{
"error" : {
"message" : "Invalid task_id format" ,
"type" : "invalid_request_error" ,
"code" : "invalid_parameters"
}
}