Skip to main content
GET
  • Query async video generation task execution status and results
  • Real-time status updates and progress tracking
  • Get generated videos when task completes
  • Multi-language support (zh/en/ko/ja)
All video generation tasks are executed asynchronously. After submitting a task, you need to query the status and results via the query endpoint.

Authorizations

string
필수
All endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:

Path 파라미터

string
필수
Task ID returned by the video generation API

응답

string
Unique task identifier
string
Object type, always generation.task
string
Task status
  • queued - Queued for processing
  • in_progress - Processing
  • completed - Successfully completed
  • failed - Failed
integer
Task progress percentage (0-100)
string
Video generation model used
integer
Task creation time (Unix timestamp)
integer
Task completion time (Unix timestamp, only returned when completed)
integer
Video URL expiration time (Unix timestamp, only returned on completion)
object
Task result (only returned on success)
object
모델 도구 사용량입니다. Seedance 2에서 tools: [{ "type": "web_search" }]를 사용하면 usage.tool_usage.web_search에 실제 검색 횟수가 반환되며, 0은 검색하지 않았음을 의미합니다.
object
오류 information (only returned on failure)

Task 상태 Reference

Polling Strategy

Python Polling Example

Resource Expiration

Generated video URLs are valid for 24 hours
  • Please download and save videos within the validity period
  • expires_at field indicates video expiration time (Unix timestamp)
  • Expired videos cannot be accessed; to regenerate, submit a new task
  • Thumbnails expire simultaneously with videos

오류 Codes

Performance Tips

Video generation takes longer, recommendations:
  1. ToAPIs Task Webhook: Webhook을 기본으로, 조회를 대체 경로로 사용
  2. 조회 간격: 5~10초 이상과 지터. 429는 Retry-After를 읽고 지수 백오프
  3. Set Timeout: Long videos may take 5-10 minutes, set reasonable timeout
  4. Download Promptly: Videos expire after 24 hours, save to your storage immediately
비동기 작업 속도 제한을 참조하세요. 배치 조회는 최대 100개입니다.