跳转到正文

openai 创建视频,带图片

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/videos:
    post:
      summary: openai 创建视频,带图片
      deprecated: false
      description: ''
      tags:
        - 视频模型/sora 视频生成/OpenAI官方视频格式
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                model:
                  description: 要使用的视频生成模型(允许的值:sora-2, sora-2-pro)。
                  example: sora-2
                  type: string
                prompt:
                  description: 描述要生成的视频的文本提示。
                  example: A calico cat playing a piano on stage
                  type: string
                seconds:
                  description: 剪辑时长(秒)(允许的值:4, 8, 12)。默认为 4 秒。
                  example: '15'
                  type: string
                size:
                  description: >+
                    输出分辨率格式为宽度 x
                    高度(允许的值:720x1280,1280x720,1024x1792,1792x1024)。默认值为
                    720x1280。

                    sora-2 支持 720x1280,1280x720

                    sora-2-pro 支持 1024x1792,1792x1024

                  example: 720x1280
                  type: string
                input_reference:
                  format: binary
                  type: string
                  description: 可选的图像参考,用于指导生成。
                  example: >-
                    file://C:\Users\Administrator\Desktop\fuji-mountain-kawaguchiko-lake-morning-autumn-seasons-fuji-mountain-yamanachi-japan_副本.jpg
                watermark:
                  description: '-ALL模型可用参数'
                  example: 'false'
                  type: string
                private:
                  description: '-ALL模型可用参数'
                  example: 'false'
                  type: string
                style:
                  description: >-
                    -ALL模型可用参数 风格只支持:thanksgiving, comic, news, selfie,
                    nostalgic, anime
                  example: anime
                  type: string
              required:
                - model
                - prompt
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apifox-orders: []
              example:
                id: video_5c6a605a-30c0-4a6a-9dbd-d1d6cfdd9980
                object: video
                model: sora-2
                status: queued
                progress: 0
                created_at: 1761622232
                seconds: '10'
                size: 1280x720
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 视频模型/sora 视频生成/OpenAI官方视频格式
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7937429/apis/api-427877356-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://new.22codex.xyz
    description: 正式环境
security:
  - bearer: []

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