跳转到正文

连续修改生成视频

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/chat/completions:
    post:
      summary: 连续修改生成视频
      deprecated: false
      description: |-
        给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。

        为提供的提示和参数创建完成

        官方文档:https://platform.openai.com/docs/api-reference/chat/create
      tags:
        - 视频模型/sora 视频生成/chat格式
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
        - name: X-Forwarded-Host
          in: header
          description: ''
          required: false
          example: localhost:5173
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - sora-2
                    - sora-2-pro
                  x-apifox-enum:
                    - value: sora-2
                      name: 普通版
                      description: 仅支持 10s 标清
                    - value: sora-2-pro
                      name: 会员版
                      description: 支持 15s 高清
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                      content:
                        type: string
                    required:
                      - role
                      - content
                    x-apifox-orders:
                      - role
                      - content
                stream:
                  type: boolean
              required:
                - model
                - messages
                - stream
              x-apifox-orders:
                - model
                - messages
                - stream
            example:
              model: sora-2
              messages:
                - role: user
                  content: 生成一段高清的,牛马跳舞的视频
                - role: assistant
                  content: >-
                    ```json

                    {
                      "prompt": "生成一段高清的,牛马跳舞的视频",
                      "orientation": "portrait"
                    }

                    ```


                    > ID: `task_01k7dzptgwf2z87wj2c3t36qk0`

                    >[数据预览(示例)](https://example.com/?task-preview=1)
                    |
                    [原始数据(示例)](https://example.com/?task-source=1)

                    > 排队中......

                    > 生成中.


                    >🏃‍ 进度 76..


                    > 生成完成 ✅

                    > sid: s_68ec8accd80c8191ae1fc957af78caaa


                    [预览图(示例)](https://example.com/?video-preview=1)

                    [视频文件(示例)](https://example.com/?video-file=1)
                - role: user
                  content: 让牛的头上顶着光圈,马的脚下踩着祥云
              stream: true
      responses:
        '200':
          description: ''
          content:
            text/event-stream:
              schema:
                type: object
                properties: {}
                x-apifox-orders: []
              example: |-
                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "role": "assistant",
                                "content": ""
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "```"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "json"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\n"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "{\n"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " "
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " \""
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "prompt"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\":"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " \""
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "让"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "牛"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "的"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "头"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "上"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "顶"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "着"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "光"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "圈"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": ","
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "马"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "的"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "脚"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "下"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "踩"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "着"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "祥云"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\",\n"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " "
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " \""
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "orientation"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\":"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " \""
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "portrait"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\",\n"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " "
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " \""
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "sid"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\":"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": " \""
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "s"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "_"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "68"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "ec"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "8"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "acc"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "d"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "80"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "c"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "819"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "1"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "ae"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "1"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "fc"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "957"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "af"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "78"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "c"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "aaa"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\"\n"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "}\n"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "```"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {},
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\n\n> ID: `task_01k7e5w9z5f2d91pekrqy59rwc`\n>[数据预览(示例)](https://example.com/?task-preview=2) | [原始数据(示例)](https://example.com/?task-source=2)\n> 排队中"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\n> 生成中"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\n\n>🏃‍ 进度 36.."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "44.."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "61.."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "69.."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "81.."
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {
                                "content": "\n\n> 生成完成 ✅\n> sid: s_68eca3f141808191b1fd30fea1b731bd\n\n[预览图(示例)](https://example.com/?video-preview=2)\n[视频文件(示例)](https://example.com/?video-file=2)"
                            },
                            "finish_reason": null
                        }
                    ]
                }

                data: {
                    "id": "chatcmpl-89C77NMqv7oh6ajWBZful0xBNsJN1",
                    "object": "chat.completion.chunk",
                    "created": 1760338775,
                    "model": "sora-2",
                    "choices": [
                        {
                            "index": 0,
                            "delta": {},
                            "finish_reason": "stop"
                        }
                    ]
                }

                data: [DONE
                ]
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 视频模型/sora 视频生成/chat格式
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7937429/apis/api-427877355-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://new.22codex.xyz
    description: 正式环境
security:
  - bearer: []

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