Skip to main content
POST
Kling O3 Video-to-Video Reference

Authorizations

Authorization
string
header
required

所有接口均需要使用Bearer Token进行认证

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:kling-o3-video-to-video-reference
required

kling-o3-video-to-video-reference:参考视频风格/运镜迁移

Example:

"kling-o3-video-to-video-reference"

prompt
string
required

文本提示词

说明:

  • 最长 2500 字符
  • 可使用 @Video1 / @Image1 / @Element1 引用素材
Maximum string length: 2500
Example:

"参考 @Video1 的运动节奏,生成一段雨夜街景短片"

video_url
string
required

参考视频 URL

说明:

  • 支持 .mp4 / .mov
  • 时长 3 - 10
  • 宽高 720 - 2160 px
  • 最大 200MB
  • 在提示词中用 @Video1 引用
Example:

"https://samplelib.com/lib/preview/mp4/sample-5s.mp4"

mode
string
default:standard

生成模式

可选值:

  • standard — 标准质量,输出 720P
  • pro — 高质量,输出 1080P
Example:

"standard"

keep_audio
boolean
default:true

是否保留参考视频原始音频

非必须不要传这个参数。

Example:

true

image_urls
string[] | null

参考图片 URL 列表

说明:

  • 在提示词中使用 @Image1 / @Image2 引用
  • image_urlselements 总数最多 4
Example:
elements
object[] | null

主体元素列表(仅支持图片主体)

说明:

  • 在提示词中使用 @Element1 / @Element2 引用
  • image_urlselements 总数最多 4

非必须不要传这个参数。

Example:
aspect_ratio
string | null

输出视频宽高比

可选值: auto16:99:161:1

Example:

"auto"

duration
integer | null

输出视频时长(秒),3-15

Example:

5

Response

任务创建成功

created
integer

任务创建时间戳

Example:

1757165031

id
string

任务ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

实际使用的模型名称

object
enum<string>

任务的具体类型

Available options:
video.generation.task
progress
integer

任务进度百分比 (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

任务状态

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

异步任务信息

type
enum<string>

任务的输出类型

Available options:
video
Example:

"video"