创建视频(参考图)

POST /v1/video/create

MethodPOST
Path/v1/video/create
Typehttp
Status1
Module2102810
Folder59498073

概览

MethodPOST
Path/v1/video/create
Typehttp
Status1
Module2102810
Folder59498073

参数

{
  "query": [],
  "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}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "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\nveo3-fast-frames\nveo3-frames"
      },
      "prompt": {
        "type": "string",
        "description": "提示词"
      },
      "images": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "\t支持:首帧、文本\n\t\tveo2、veo2-fast、veo2-pro\n\t支持:首尾帧、首帧、文本\n\t\tveo2-fast-frames\n\t\tveo3、veo3-fast、veo3-pro、veo3-frames、veo3-fast-frames、veo3-pro-frames\n\t\tveo_3_1、veo_3_1-fast\n\t\tveo3.1、veo3.1-fast、veo3.1-pro、veo3.1-4k、veo3.1-pro-4k\n\t支持:参考图(1-3)、文本\n\t\tveo_3_1-components、veo3.1-components、veo3.1-fast-components、veo3.1-components-4k"
      },
      "enhance_prompt": {
        "type": "boolean",
        "description": "由于 veo 只支持英文提示词,所以如果需要中文自动转成英文提示词,可以开启此开关\n"
      },
      "enable_upsample": {
        "type": "string",
        "description": "超分"
      },
      "aspect_ratio": {
        "type": "string",
        "description": "“16:9”或“9:16”"
      },
      "veo_fl_close": {
        "type": "boolean",
        "description": "是否关闭自动首尾帧,默认false"
      }
    },
    "required": [
      "model",
      "prompt",
      "enhance_prompt",
      "enable_upsample",
      "aspect_ratio",
      "veo_fl_close"
    ],
    "x-apifox-orders": [
      "model",
      "prompt",
      "images",
      "enhance_prompt",
      "enable_upsample",
      "aspect_ratio",
      "veo_fl_close"
    ]
  },
  "required": false,
  "mediaType": "",
  "examples": [
    {
      "value": "{\r\n    \"prompt\": \"牛飞上天了\",\r\n    \"model\": \"veo3.1-fast\",\r\n    \"images\": [\r\n        \"https://filesystem.site/cdn/20250612/VfgB5ubjInVt8sG6rzMppxnu7gEfde.png\",\r\n        \"https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png\",\r\n        \"https://iknow-pic.cdn.bcebos.com/5882b2b7d0a20cf4ced1ab5f64094b36adaf99e9\"\r\n    ],\r\n    \"enhance_prompt\": true,\r\n    \"enable_upsample\": true,\r\n    \"aspect_ratio\": \"16:9\",\r\n    \"veo_fl_close\":true\r\n}",
      "mediaType": "application/json"
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 805852402,
    "name": "OK",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "object": {
          "type": "string"
        },
        "created": {
          "type": "integer"
        },
        "choices": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer"
              },
              "message": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  }
                },
                "required": [
                  "role",
                  "content"
                ],
                "x-apifox-orders": [
                  "role",
                  "content"
                ]
              },
              "finish_reason": {
                "type": "string"
              }
            },
            "x-apifox-orders": [
              "index",
              "message",
              "finish_reason"
            ]
          }
        },
        "usage": {
          "type": "object",
          "properties": {
            "prompt_tokens": {
              "type": "integer"
            },
            "completion_tokens": {
              "type": "integer"
            },
            "total_tokens": {
              "type": "integer"
            }
          },
          "required": [
            "prompt_tokens",
            "completion_tokens",
            "total_tokens"
          ],
          "x-apifox-orders": [
            "prompt_tokens",
            "completion_tokens",
            "total_tokens"
          ]
        }
      },
      "required": [
        "id",
        "object",
        "created",
        "choices",
        "usage"
      ],
      "x-apifox-orders": [
        "id",
        "object",
        "created",
        "choices",
        "usage"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 805852402,
    "data": "{\r\n    \"id\": \"veo3.1-components:1762241017-xTL0P9HvGF\",\r\n    \"status\": \"pending\",\r\n    \"status_update_time\": 1762241017286\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 723437018
  }
]