查询任务

GET /v1/video/query

MethodGET
Path/v1/video/query
Typehttp
Status1
Module2102810
Folder59498073

说明

给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。

为提供的提示和参数创建完成

概览

MethodGET
Path/v1/video/query
Typehttp
Status1
Module2102810
Folder59498073

参数

{
  "query": [
    {
      "required": true,
      "description": "任务ID\n",
      "type": "string",
      "id": "7rOP7JuU9B",
      "enable": true,
      "name": "id",
      "sampleValue": "veo3.1-fast:1770350082-trii1OXZc3"
    }
  ],
  "path": [],
  "cookie": [],
  "header": [
    {
      "id": "NQs7bxnpZf",
      "name": "Content-Type",
      "required": true,
      "description": "",
      "type": "string",
      "enable": true,
      "sampleValue": "application/json"
    },
    {
      "id": "qb8tEQbCty",
      "name": "Accept",
      "required": true,
      "description": "",
      "type": "string",
      "enable": true,
      "sampleValue": "application/json"
    },
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "gBxcCbXhsa",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    },
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "t8P0euDZvz",
      "enable": false,
      "name": "X-Forwarded-Host",
      "sampleValue": "localhost:5173"
    }
  ]
}

请求体

{
  "type": "multipart/form-data",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "model": {
        "type": "string",
        "description": "枚举值:\nveo2\nveo2-fast\nveo2-fast-frames\nveo2-fast-components\nveo2-pro\nveo3\nveo3-fast\nveo3-pro\nveo3-pro-frames"
      },
      "messages": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "role": {
              "type": "string"
            },
            "content": {
              "type": "string"
            }
          },
          "x-apifox-orders": [
            "role",
            "content"
          ]
        },
        "description": "至今为止对话所包含的消息列表。Python 代码示例。"
      },
      "stream": {
        "type": "boolean",
        "description": "默认为 false 如果设置,则像在 ChatGPT 中一样会发送部分消息增量。标记将以仅数据的服务器发送事件的形式发送,这些事件在可用时,并在 data: [DONE] 消息终止流。Python 代码示例。"
      }
    },
    "required": [
      "model",
      "messages"
    ],
    "x-apifox-orders": [
      "model",
      "messages",
      "stream"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "value": "",
      "mediaType": "application/json"
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 701701990,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "video_url": {
          "type": "null"
        },
        "enhanced_prompt": {
          "type": "string"
        },
        "status_update_time": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "status",
        "video_url",
        "enhanced_prompt",
        "status_update_time"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 701701990,
    "data": "{\r\n    \"id\": \"veo3.1-fast:1770350082-trii1OXZc3\",\r\n    \"detail\": {\r\n        \"id\": \"veo3.1-fast:1770350082-trii1OXZc3\",\r\n        \"req\": {\r\n            \"model\": \"veo3.1-fast\",\r\n            \"images\": [\r\n                \"https://filesystem.site/cdn/20250702/w8AauvxxPhYoqqkFWdMippJpb9zBxN.png\"\r\n            ],\r\n            \"prompt\": \"make animate\",\r\n            \"aspect_ratio\": \"16:9\",\r\n            \"enhance_prompt\": true,\r\n            \"enable_upsample\": true\r\n        },\r\n        \"images\": [\r\n            {\r\n                \"url\": \"https://filesystem.site/cdn/20250702/w8AauvxxPhYoqqkFWdMippJpb9zBxN.png\",\r\n                \"status\": \"completed\",\r\n                \"mediaId\": \"CAMaJGUwOTE4MTA4LWQ3MTgtNDk0OS05ZDNiLTIxMjBkM2M5ZGFkYyIDQ0FFKiQzYzY4MjJhZi05ZTVkLTRhNjktOGQ5NC1jYmNjYWVjNDhkMjM\"\r\n            }\r\n        ],\r\n        \"status\": \"completed\",\r\n        \"running\": false,\r\n        \"video_url\": \"https://pro.filesystem.site/cdn/20260206/9ddbd3bdc67f75a02f766363ebf8eb.mp4\",\r\n        \"created_at\": 1770350082099,\r\n        \"error_sleep\": 5000,\r\n        \"max_retries\": 3,\r\n        \"retry_count\": 3,\r\n        \"completed_at\": 1770350328994,\r\n        \"error_message\": \"[403] Request failed with status code 403 | Message: reCAPTCHA evaluation failed | Code: 403 | Status: PERMISSION_DENIED | Reason: PUBLIC_ERROR_SOMETHING_WENT_WRONG | Type: type.googleapis.com/google.rpc.ErrorInfo | URL: /v1/video:batchAsyncGenerateVideoStartImage\",\r\n        \"video_media_id\": \"CAUSJDU1YzFjNTliLWYxNzctNGYwYy04YTJkLTI3MGFkMWE4YjkyMxokMTZjYjk1NzUtYWY4Yy00MzQzLWI4NjMtNGQ5YWFiZTZmNzMzIgNDQUUqJGQxZjBhOGExLTUxYjYtNDk5Yy04YWJlLWFhZTU0YzZiMjIxZQ\",\r\n        \"enhanced_prompt\": \"Create a vibrant and whimsical animation that features a joyful scene of colorful animals playing together in a sunny meadow, surrounded by blooming flowers and butterflies fluttering by.\",\r\n        \"upsample_status\": \"MEDIA_GENERATION_STATUS_SUCCESSFUL\",\r\n        \"startImageMediaId\": \"CAMaJGUwOTE4MTA4LWQ3MTgtNDk0OS05ZDNiLTIxMjBkM2M5ZGFkYyIDQ0FFKiQzYzY4MjJhZi05ZTVkLTRhNjktOGQ5NC1jYmNjYWVjNDhkMjM\",\r\n        \"status_update_time\": 1770350329098,\r\n        \"upsample_video_url\": \"https://pro.filesystem.site/cdn/20260206/1b50395bad4c6c7bc22e6ada144951.mp4\",\r\n        \"video_generation_id\": \"608c00e8de85d8856554201ae115b7c2\",\r\n        \"veo3StartImageMediaId\": \"CAMaJGUwOTE4MTA4LWQ3MTgtNDk0OS05ZDNiLTIxMjBkM2M5ZGFkYyIDQ0FFKiQzYzY4MjJhZi05ZTVkLTRhNjktOGQ5NC1jYmNjYWVjNDhkMjM\",\r\n        \"needs_safe_enhancement\": true,\r\n        \"upsample_generation_id\": \"d1f0a8a1-51b6-499c-8abe-aae54c6b221e_upsampled\",\r\n        \"video_generation_error\": \"your request contains unsafe prompt or images, such as porn, violence, minors etc., has been rejected by google, please change your prompt or images and try again\",\r\n        \"video_generation_status\": \"MEDIA_GENERATION_STATUS_SUCCESSFUL\"\r\n    },\r\n    \"status\": \"completed\",\r\n    \"video_url\": \"https://pro.filesystem.site/cdn/20260206/1b50395bad4c6c7bc22e6ada144951.mp4\",\r\n    \"status_update_time\": 1770350329098\r\n}",
    "id": "019c3153-2e29-751f-8df0-22a998c5c2b1"
  }
]