ModelRouterModelRouter
⚠️合规提示:本项目仅用于合法授权的 API 网关、内部管理和私有化部署场景。请遵守上游服务条款、平台规则、监管要求和内容安全要求。
接口调用视频模型

可灵 3.0 Turbo

可灵 3.0 快速版,文生视频与图生视频的参数和示例。

可灵 3.0 快速版,出片更快,支持文生视频、首帧 / 首尾帧图生视频。

  • 模型 ID:kling-3.0-turbo
  • 接口:POST https://modelrouter.club/v1/videos(异步任务)
  • 查看价格 · 在线试用(登录后,按自己的余额扣费)

请求参数

Authorizationstring必填

Bearer YOUR_API_KEY,在 控制台的 API 密钥页 创建。

modelstring必填

kling-3.0-turbo

promptstring

画面与运动描述。文生视频必填;图生视频可选。

secondsinteger默认 5

时长:3–15 秒的整数,默认 5。

resolutionstring默认 720P

720P 或 1080P。

aspect_ratiostring

16:9、9:16、1:1。只对文生视频生效;图生视频的比例跟随首帧图片。

input_referencestring | string[]

首帧图片的公网 URL。传两张时,第一张为首帧,第二张为尾帧。

negative_promptstring

不希望出现的内容。

seedinteger

随机种子。

该型号不支持生成音频,请不要传 audio: true。

示例:文生视频

curl https://modelrouter.club/v1/videos \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-3.0-turbo",
    "prompt": "清晨的海边,一只柯基在沙滩上奔跑,镜头缓慢跟随",
    "seconds": 5,
    "resolution": "720P",
    "aspect_ratio": "16:9"
  }'

示例:首尾帧图生视频

curl https://modelrouter.club/v1/videos \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-3.0-turbo",
    "prompt": "花朵从含苞到完全绽放",
    "seconds": 5,
    "input_reference": [
      "https://example.com/first.jpg",
      "https://example.com/last.jpg"
    ]
  }'

响应

提交成功后返回任务对象(示例结构):

{
  "id": "task_xxxxxxxx",
  "object": "video",
  "status": "queued",
  "progress": 0
}

拿到 id 后,按 视频通用说明 查询进度并下载视频。

计费

按秒计费,720P 与 1080P 两档单价。提交时按请求的时长和分辨率预扣,任务失败自动全额退回。

注意
  • 首帧、尾帧只接受公网可访问的 http(s) 图片 URL,不支持上传文件或 Base64。
  • 视频约 7 天内可以下载,过期后返回 410 artifact_gone,请及时下载转存。

实时单价见 模型广场。任务状态、下载方式和常见错误见 视频通用说明。