跳到主要内容

生成视频(sora-2逆向)

OpenAPI Specification

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/videos:
post:
summary: 生成视频(sora-2逆向)
deprecated: false
description: 注意,此文档为sora-2逆向文档,所有参数务必根据文档所述内容进行填写
tags:
- 模型接口/ sora/异步格式
parameters:
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
default: application/json
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
model:
description: 只支持sora-2
example: sora-2
type: string
prompt:
description: 提示词,注意不要出现nsfw内容,否则会被拦截
example: 女孩跳舞
type: string
input_reference:
format: binary
type: string
description: 上传的图片文件,只支持一张,上传多张只读取第一张,支持string类型使用url上传
example: ''
size:
description: 视频尺寸,只支持1280x720和720x1280
example: 1280x720
type: string
seconds:
description: 视频秒数,只支持10,15s
example: '10'
type: string
required:
- model
- prompt
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
id:
type: string
task_id:
type: string
object:
type: string
model:
type: string
status:
type: string
progress:
type: integer
created_at:
type: integer
seconds:
type: string
size:
type: string
required:
- id
- task_id
- object
- model
- status
- progress
- created_at
- seconds
- size
x-apifox-orders:
- id
- task_id
- object
- model
- status
- progress
- created_at
- seconds
- size
example:
id: string
task_id: string
object: video
model: sora-2
status: queued
progress: 0
created_at: 123
seconds: '15'
size: 1280x720
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/ sora/异步格式
x-apifox-status: developing
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-432207330-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []