Skip to content
API reference

List video tasks

Reference for GET /v2/query/video_generation, which lists your video tasks from the last 7 days.

This page is the reference for listing video generation tasks. It is intended for developers who track several tasks at once.

Endpoint

GET https://api.engy.ai/v2/query/video_generation

Authentication

Send your API key in the Authorization header as a bearer token. For details, see Inference API overview.

Parameters

Query parameters

ParameterTypeRequiredDescription
page_numIntegerNoThe page number, starting at 1. Defaults to 1.
page_sizeIntegerNoThe number of tasks per page, from 1 to 100. Defaults to 10.
statusStringNoReturns only tasks with this status: queued, running, succeeded, failed, or cancelled.
modelStringNoReturns only tasks for this model.
task_idsStringNoReturns only the tasks with these IDs, separated by commas. At most 100 IDs are used.

Response

Response fields

FieldTypeDescription
itemsArrayThe tasks, newest first. Each task has the fields described in Get a video task.
totalIntegerThe total number of matching tasks.
page_numIntegerThe current page number.
page_sizeIntegerThe page size.
base_respObjectThe status object. status_code is 0 on success.

Only tasks created in the last 7 days are listed.

Errors

StatusCause
400The status value is invalid.
401The API key is missing or invalid.

Example

curl "https://api.engy.ai/v2/query/video_generation?status=succeeded&page_size=20" \
  -H "Authorization: Bearer $ENGY_API_KEY"

Response:

{
  "items": [
    {
      "task_id": "9f1c2b7e4d6a4f0b8e3c5a7d9b1f2e4c",
      "model": "MiniMax-H3",
      "status": "succeeded",
      "duration": 6,
      "usage": {"video_seconds": 6.0}
    }
  ],
  "total": 1,
  "page_num": 1,
  "page_size": 20,
  "base_resp": {"status_code": 0, "status_msg": "success"}
}

The task objects in this example are shortened.