创建视频

POST /v1/video/create

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

概览

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

参数

{
  "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": "模型名字jimeng-video-3.0"
      },
      "prompt": {
        "type": "string",
        "description": " 提示词"
      },
      "aspect_ratio": {
        "type": "string",
        "description": "可选为 2:3, 3:2, 1:1,如果垫图,会根据图片来"
      },
      "size": {
        "type": "string",
        "description": "720P"
      },
      "images": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "图片链接"
      }
    },
    "required": [
      "model",
      "prompt",
      "aspect_ratio",
      "size",
      "images"
    ],
    "x-apifox-orders": [
      "model",
      "prompt",
      "aspect_ratio",
      "size",
      "images"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "value": "{\r\n    \"model\": \"jimeng-video-3.0\",\r\n    \"prompt\": \"cat fish\",\r\n    \"aspect_ratio\": \"3:2\",\r\n    \"size\": \"720P\",\r\n    \"images\": []\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
  }
]