Skip to main content
GET
/
services
/
aigc
/
tasks
/
{task_id}
Get video generation task result
curl --request GET \
  --url https://api.aisa.one/apis/v1/services/aigc/tasks/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "output": {
    "task_id": "b3be072e-cc82-4033-8fb7-0b089846544f",
    "task_status": "SUCCEEDED",
    "video_url": "https://cdn.aisa.one/videos/wan2.6/20260418-abc.mp4",
    "orig_prompt": "cinematic close-up, slow push-in, shallow depth of field",
    "submit_time": "2026-04-18 15:16:01.841",
    "scheduled_time": "2026-04-18 15:16:01.867",
    "end_time": "2026-04-18 15:16:42.512"
  },
  "usage": {
    "output_video_duration": 5,
    "video_count": 1,
    "SR": 720
  },
  "request_id": "8a931b13-c44f-9230-a76b-83487d840060"
}
Poll the status and result of a task created by POST /apis/v1/services/aigc/video-generation/video-synthesis. The task_id goes in the path, not the query string.
curl "https://api.aisa.one/apis/v1/services/aigc/tasks/$TASK_ID" \
  -H "Authorization: Bearer $AISA_API_KEY"
The endpoint returns HTTP 200 for every known task — inspect output.task_status to tell states apart:
task_statusMeaning
PENDINGAccepted, queued
RUNNINGActively generating
SUCCEEDEDDone — output.video_url is populated (short-lived, download ASAP)
FAILEDFailed — output.code and output.message explain why. Failed tasks are not billed.
CANCELEDCancelled
UNKNOWNThe provided task_id isn’t recognised (or expired)
See Async Operations for the full polling pattern.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

task_id
string
required

Task ID returned by the video-synthesis create call. Unknown IDs return task_status: "UNKNOWN" (HTTP 200).

Response

Task status response. Always HTTP 200 — inspect output.task_status to tell lifecycle states apart.

output
object
usage
object

Present on SUCCEEDED.

request_id
string