跳到主要内容

创建视频 (创建角色用)

OpenAPI Specification

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/videos:
post:
summary: 创建视频 (创建角色用)
deprecated: false
description: ''
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:
type: string
description: 创建角色所用的视频必须由后缀带有test的模型生成
example: sora2-landscape-test
prompt:
description: 提示词
example: 女孩变身直立起飞
type: string
input_reference:
format: binary
type: string
description: 图片文件
example: ''
seconds:
example: '7'
type: string
required:
- model
- prompt
- input_reference
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example: |-
{
"id": "string",
"object": "video",
"model": "sora2-landscape-test",
"status": "queued",
"progress": 0,
"created_at": xxx,
"seconds": "xxx"
}
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/ sora/异步格式
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-401164884-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []