创建视频 sora-2
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/video/create:
post:
summary: 创建视频 sora-2
deprecated: false
description: ''
tags:
- 视频模型/sora 视频生成/统一视频格式
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
requestBody:
content:
application/json:
schema:
type: object
properties:
images:
type: array
items:
type: string
description: 图片链接
model:
type: string
description: 模型名字
orientation:
type: string
description: |
portrait 竖屏
landscape 横屏
prompt:
type: string
description: 提示词
size:
type: string
description: small 一般720p
duration:
type: integer
description: '支持 10 '
watermark:
type: boolean
description: |
默认为: true 会优先无水印,如果出错,会兜底到有水印
传递 false 的话 会强制让视频无水印,遇到去水印错误的会一直自动重试
private:
type: boolean
description: |
是否隐藏视频,true-视频不会发布,同时视频无法进行 remix(二次编辑), 默认为 false
required:
- images
- model
- orientation
- prompt
- size
- duration
- watermark
- private
x-apifox-orders:
- images
- model
- orientation
- prompt
- size
- duration
- watermark
- private
example:
images: []
model: sora-2
orientation: portrait
prompt: make animate
size: large
duration: 15
watermark: false
private: true
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
id:
type: string
object:
type: string
created:
type: integer
choices:
type: array
items:
type: object
properties:
index:
type: integer
message:
type: object
properties:
role:
type: string
content:
type: string
required:
- role
- content
x-apifox-orders:
- role
- content
finish_reason:
type: string
x-apifox-orders:
- index
- message
- finish_reason
usage:
type: object
properties:
prompt_tokens:
type: integer
completion_tokens:
type: integer
total_tokens:
type: integer
required:
- prompt_tokens
- completion_tokens
- total_tokens
x-apifox-orders:
- prompt_tokens
- completion_tokens
- total_tokens
required:
- id
- object
- created
- choices
- usage
x-apifox-orders:
- id
- object
- created
- choices
- usage
example:
id: sora-2:task_01k9008rhbefnt3rb1g9szxdwr
status: pending
status_update_time: 1762010621323
headers: {}
x-apifox-name: OK
security:
- bearer: []
x-apifox-folder: 视频模型/sora 视频生成/统一视频格式
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-358068995-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []