跳转到正文

创建视频(Videos API,带图片)

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/videos:
    post:
      summary: 创建视频 带图片
      deprecated: false
      description: ''
      tags:
        - 视频模型/sora 视频生成/OpenAI官方视频格式
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer YOUR_API_KEY
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: false
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties: {}
            example:
              prompt: 保持人物与场景一致,生成轻微镜头推进和风吹发丝效果。
              model: sora-2
              seconds: '15'
              size: 720x1280
              input_image: https://example.com/demo.png
              async_mode: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 视频模型/sora 视频生成/OpenAI官方视频格式
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/7937429/apis/api-429654112-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://new.22codex.xyz
    description: 正式环境
security:
  - bearer: []

文档内容持续更新,请以控制台可用模型与接口为准。