- 系统介绍
- 系统优势
- 补充说明
- 辅助功能
- 按量计费
- 按次计费
- OpenMeta
- GPT 4o Image Generation
- Midjourney Proxy
- Midjourney Chat
- 即梦AI2.0生图
- Recraft Proxy
- Flux.1 Proxy
- SD Proxy
- SD Chat
- 可灵AI
- 谷歌Veo3 视频生成
- Runway-视频生成
- CogVideoX Proxy
- Runway Chat
- Luma Proxy
- Luma Chat
- Pika1.5 Proxy
- Pika1.5 Chat
- Domo Proxy
- 海绵音乐(音乐生成)
- Suno Proxy
- Suno Chat
- Udio Proxy
- Udio Chat
创建文生视频任务
开发环境
https://draw.openai-next.com
开发环境
https://draw.openai-next.com
POST
https://draw.openai-next.com
文生视频
请求参数
Body 参数application/json
model_name
enum<string>
使用的模型版本
枚举值:
kling-v1kling-v1-5kling-v1-6kling-v2-master
默认值:
kling-v1
prompt
string
正向文本提示词
<= 2500 字符
示例值:
一只可爱的小猫在花园里玩耍,阳光明媚
negative_prompt
string
负向文本提示词
<= 2500 字符
示例值:
模糊,低质量,变形
cfg_scale
number
可选
>= 0<= 1
默认值:
0.5
mode
enum<string>
可选
枚举值:
stdpro
默认值:
std
camera_control
object (CameraControl)
摄像机运动控制
type
enum<string>
预定义的运镜类型
枚举值:
simpledown_backforward_upright_turn_forwardleft_turn_forward
config
object
可选
aspect_ratio
enum<string>
视频纵横比
枚举值:
16:99:161:1
默认值:
16:9
duration
enum<string>
视频时长(秒)
枚举值:
510
默认值:
5
callback_url
string <uri>
任务结果回调地址
external_task_id
string
自定义任务ID
示例
{
"model_name": "kling-v1",
"prompt": "一只可爱的小猫在花园里玩耍",
"mode": "std",
"duration": "5",
"aspect_ratio": "16:9"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://draw.openai-next.com/kling/v1/videos/text2video' \
--header 'Content-Type: application/json' \
--data-raw '{
"model_name": "kling-v1",
"prompt": "一只可爱的小猫在花园里玩耍",
"mode": "std",
"duration": "5",
"aspect_ratio": "16:9"
}'
返回响应
🟢200成功
application/json
Body
code
integer
错误码
示例值:
0
message
string
错误信息
示例值:
success
request_id
string
请求ID
示例值:
req_123456789
data
object
可选
task_id
string
任务ID
示例值:
task_abc123def456
task_status
string
任务状态
示例值:
submitted
示例
{
"code": 0,
"message": "success",
"request_id": "req_123456789",
"data": {
"task_id": "task_abc123def456",
"task_status": "submitted"
}
}
🟠400请求有误