查询任务

GET /v1/video/query

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

说明

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

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

概览

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

参数

{
  "query": [
    {
      "required": true,
      "description": "任务ID\n",
      "type": "string",
      "id": "7rOP7JuU9B",
      "enable": true,
      "name": "id",
      "sampleValue": "grok:ea57ae4e-3745-499f-947f-2a7829010d70"
    }
  ],
  "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"
    ]
  },
  "required": false,
  "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\": \"033fa60e-f37c-4ff6-a44d-5585ffea938d\",\r\n    \"status\": \"pending\",\r\n    \"video_url\": null,\r\n    \"enhanced_prompt\": \"```\\nA surreal and whimsical digital painting of a majestic brown cow with large, feathered wings soaring gracefully through a vibrant blue sky. The cow has a joyful expression, its tail streaming behind it as it flies among fluffy white clouds. Below, a patchwork of green farmland stretches into the distance, with tiny farm buildings and a group of astonished farmers looking up in amazement. The scene is bathed in warm golden sunlight, creating a dreamlike and magical atmosphere. Art style inspired by fantasy illustrations with soft brushstrokes and rich, saturated colors.\\n```\",\r\n    \"status_update_time\": 1750323167003\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 608111418
  },
  {
    "name": "成功示例",
    "responseId": 701701990,
    "data": "{\r\n    \"id\": \"grok:299604b7-c5ea-47b5-bc64-c06f300f0d27\",\r\n    \"mode\": \"text\",\r\n    \"type\": \"create\",\r\n    \"error\": \"\",\r\n    \"model\": \"grok-3\",\r\n    \"ratio\": \"3:2\",\r\n    \"prompt\": \"cat fish  --mode=custom\",\r\n    \"status\": \"completed\",\r\n    \"post_id\": \"393ae1ec-1dc7-4f26-bb53-afe361bc3b3a\",\r\n    \"asset_id\": \"393ae1ec-1dc7-4f26-bb53-afe361bc3b3a\",\r\n    \"progress\": 100,\r\n    \"trace_id\": \"4cc3a75aa6d6a0788f86195e0cbad44e\",\r\n    \"upscaled\": false,\r\n    \"video_id\": \"393ae1ec-1dc7-4f26-bb53-afe361bc3b3a\",\r\n    \"video_url\": \"https://soruxgpt-saas-yimeng.soruxgpt.com/file_download/ca10efbb-ae64-426e-99f0-f365bc3cd941.mp4\",\r\n    \"completed_at\": 1764522552,\r\n    \"thumbnail_url\": \"https://soruxgpt-saas-yimeng.soruxgpt.com/file_download/f4fd6fe4-8091-4528-be32-335f4fc9af65.jpg\",\r\n    \"video_file_id\": \"ca10efbb-ae64-426e-99f0-f365bc3cd941\",\r\n    \"thumbnail_file_id\": \"f4fd6fe4-8091-4528-be32-335f4fc9af65\",\r\n    \"status_update_time\": 1764522552,\r\n    \"upscale_on_complete\": false\r\n}",
    "id": "019ad5be-622e-75bf-a6df-010aec0e5cdb"
  }
]