Skip to content

Get Video Generation Task Status

Query the status and results of a video generation task.

API Details

Endpoint: GET /v1/video/generations/:task_id

Description: Query the progress and final result of video generation using the task_id returned when the task was submitted.

Authentication: Bearer Token

http
Authorization: Bearer YOUR_API_TOKEN

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
task_idstringYesThe unique identifier of the task returned during submission

Task Statuses

StatusDescription
queuedTask is in queue
in_progressVideo is being generated
completedTask completed successfully
failedTask failed

Response Parameters

ParameterTypeDescription
idstringUnique task identifier
objectstringObject type
createdintegerUnix timestamp of creation
statusstringTask status
dataarrayList of generated results (present only when status is completed)
data.urlstringVideo download or playback URL
errorobjectError information (present only when status is failed)

Code Examples

Curl Example

bash
curl https://api.ezmodel.cloud/v1/video/generations/YOUR_TASK_ID \
  -H "Authorization: Bearer $YOUR_API_KEY"

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/video/generations/{task_id}:
    get:
      summary: Get Video Generation Task Status
      description: Query the status and results of a video generation task.
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successfully retrieved task status

企业合作联系:service@ezmodel.cloud