LLitMediaAPI Docs

Task Status

Every generation task runs asynchronously. Poll the unified status endpoint with the task_id returned at creation to track progress and retrieve the final result URLs.

Query task status

GET /v1/tasks/{task_id}

One endpoint covers both video and image tasks: the server routes the lookup by the task type recorded when the task was created, and the response carries type (video / image) so you can tell them apart. Tasks are scoped to the account that created them; querying another account's task returns a record-not-exist error.

Path parameters

FieldTypeRequiredDescription
task_idstringRequiredThe unique task ID returned by POST /v1/videos or POST /v1/images: tsk_ followed by 32 random hex characters (e.g. tsk_9f2c8a17b34d6e05a1c2d3e4f5067890). It cannot be forged or guessed.

Video task response

RESPONSE
{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "tsk_9f2c8a17b34d6e05a1c2d3e4f5067890",
    "type": "video",
    "status": 1,
    "status_text": "success",
    "video_url": "https://.../output.mp4",
    "error": "",
    "create_at": 1753248000
  }
}

Image task response

RESPONSE
{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "tsk_3b7e0c9d2f1a48e6b5c0d7f8a9e1b2c3",
    "type": "image",
    "status": 1,
    "status_text": "success",
    "image_url": "https://.../output.png",
    "image_urls": ["https://.../output.png", "https://.../output-2.png"],
    "cost_credit": 10,
    "error": "",
    "create_at": 1753248000
  }
}

Response fields

FieldTypeDescription
task_idstringUnique task ID (tsk_ + 32 random hex characters), same value you queried with.
typestringTask type: video or image.
statusintNumeric state: 0/99 generating, 1 success, 2 failed, 3/199 queued.
status_textstringHuman-readable state: processing / success / failed / queued.
video_urlstringResult URL, present only for video tasks when status_text = success.
image_urlstringPrimary result image URL (image tasks only).
image_urlsstring[]All result image URLs when multiple images were requested (image tasks only).
cost_creditintCredits consumed by this task (image tasks only).
errorstringFailure reason, present when the task failed.
create_atintCreation time (Unix seconds).

Polling recommendations

On this page