AIAI.comAIAI.com
AI モデル APIVideos

動画生成タスクのステータスを取得

動画生成タスクのステータスと結果を照会します。

タスクステータス:

  • queued: キュー待ち
  • in_progress: 実行中
  • completed: 完了
  • failed: 失敗
GET
/v1/video/generations/{task_id}

Authorization

BearerAuth

AuthorizationBearer <token>

Use Bearer Token authentication. Format: Authorization: Bearer sk-xxxxxx

In: header

Path Parameters

task_id*string

Task ID

Response Body

application/json

application/json

curl -X GET "https://api.aiai.com/v1/video/generations/string"
{
  "task_id": "abcd1234efgh",
  "status": "completed",
  "url": "https://example.com/video.mp4",
  "format": "mp4",
  "metadata": {
    "duration": 5,
    "fps": 30,
    "width": 1280,
    "height": 720,
    "seed": 20231234
  },
  "error": {
    "code": 0,
    "message": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}