创建视频
POST
/v1/videos
- OpenAI 官方 Sora 视频生成接口
- 请求体为
multipart/form-data,必填model与prompt - 支持
sora-2、sora-2-pro等模型 - 官方文档:Videos create
Authorizations
bearer
Type
HTTP (bearer)
Request Body
multipart/form-data
model
string
Required
要使用的视频生成模型(允许的值:sora-2, sora-2-pro)。
prompt
string
Required
描述要生成的视频的文本提示。
seconds
string
剪辑时长(秒)(允许的值:4, 8, 12)。默认为 4 秒。
size
string
输出分辨率格式为宽度 x 高度(允许的值:720x1280,1280x720,1024x1792,1792x1024)。默认值为 720x1280。
sora-2 支持 720x1280,1280x720
sora-2-pro 支持 1024x1792,1792x1024
input_reference
string
可选的图像参考,用于指导生成。
Format
"binary"watermark
string
-ALL模型可用参数
private
string
-ALL模型可用参数
style
string
-ALL模型可用参数 风格只支持:thanksgiving, comic, news, selfie, nostalgic, anime
Responses
application/json
object
id
string
object
string
model
string
status
string
progress
integer
created_at
integer
seconds
string
size
string