ドキュメントが一新されました!旧ドキュメントは doc.newapi.pro
New APINew API
利用ガイドインストールAPI リファレンスAIアプリケーションヘルプ&サポートビジネス協力

動画生成タスクの状態を取得

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

タスクの状態:

  • queued: キュー中
  • in_progress: 生成中
  • completed: 完了
  • failed: 失敗
GET
/v1/video/generations/{task_id}

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Path Parameters

task_id*string

任务 ID

Response Body

application/json

application/json

curl -X GET "https://docs.newapi.ai/v1/video/generations/string"
{
  "id": "string",
  "status": "queued",
  "progress": 0,
  "video_url": "string",
  "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"
  }
}

このガイドはいかがですか?

最終更新