视频生成 API:创建视频生成任务

[TOC]

OpenAPI Specification

openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v3/contents/generations/tasks:
    post:
      summary: 创建视频生成任务 API
      deprecated: false
      description: >-
        本文介绍 Doubao 视频生成大模型 API
        的输入输出参数,方便您通过接口,向大模型发起视频生成的请求。模型会依据传入的图片及文本信息生成视频,待生成完成后,您可以按条件查询任务并获取生成的视频。
      tags:
        - 视频生成 API
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer {{ARK_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: >-
                    您创建的推理接入点(Endpoint)ID。该推理接入点需部署了视频生成的模型。

                    >
                    如无推理接入点,请参考[创建推理接入点](https://www.volcengine.com/docs/82379/1099522)文档创建。
                content:
                  type: array
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                      text:
                        type: string
                    x-apifox-orders:
                      - type
                      - text
              required:
                - model
                - content
              x-apifox-orders:
                - model
                - content
            example:
              model: <YOUR_MODEL_EP>
              content:
                - type: text
                  text: 戴着帽子的老爷爷面带微笑往前走 --ratio 1:1 --fps 24  --dur 5
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                required:
                  - id
                x-apifox-orders:
                  - id
              example: "{\r\n    \"id\": \"cgt-2024****-**\",\r\n}"
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 视频生成 API
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5937556/apis/api-265914813-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://ark.cn-beijing.volces.com/api/v3
    description: 正式环境
security:
  - bearer: []
    x-apifox:
      required: true
      schemeGroups:
        - id: BttezrgK6TNhVz64PPOnX
          schemeIds:
            - bearer
      use:
        id: BttezrgK6TNhVz64PPOnX