异步视频管线
一次 createTask 后轮询 recordInfo,适合队列与批量任务。
在集成前用 Playground 验证提示词与参数,输出与生产 API 一致。
createTask 的 input 字段说明(默认 Tab)。
| 字段 | 类型 | 必填 |
|---|---|---|
| prompt | textarea | 是 |
| aspect_ratio | select (16:9 | 9:16 | 4:3 | 1:1 | 3:4 | 21:9) | 否 |
| resolution | select (480p | 720p) | 否 |
| duration | number | 否 |
| generate_audio | switch | 否 |
典型生成效果预览(实际输出因提示词而异)。

团队选择该模型用于生产工作流的原因。
一次 createTask 后轮询 recordInfo,适合队列与批量任务。
在模型支持时,可组合提示词与参考图、首尾帧或音频。
仅成功任务扣积分,失败可安全重试。
该模型在 ModKie 网关下的核心能力。

Kling 3.0 在人物动作与镜头语言上表现稳定,适合广告与短视频。
图生视频模式下可保持主体特征跨帧稳定。
开发者与产品团队常见的 API 使用场景。
将脚本与提示词转为竖屏短片,用于 Reels、Shorts 与 TikTok。
由产品静图生成轻量动效宣传片段。
用统一的 Kie 兼容 jobs 契约嵌入到你自己的产品中。
按成功任务扣积分;下方为单次任务估算。
共享 API
35 积分 / 次
约 $0.18 USD(按 $0.01 USD/积分 套餐汇率)
成功任务 80 积分/次。
从 API Key 到首次成功任务的三步流程。
创建 API Key
登录后在 设置 → API Keys 创建密钥。
提交 createTask
向 /api/v1/jobs/createTask 发送模型 ID 与 input 载荷。
轮询 recordInfo
轮询 recordInfo 直至任务完成,从响应中获取输出。
createTask 请求示例
curl -X POST https://modkie.com/api/v1/jobs/createTask \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/kling-3-0",
"input": {
"prompt": "Outdoor terrace of a European villa, by a dining table with a blue and white checkered tablecloth, a young white woman in a blue and white striped short-sleeve shirt and khaki shorts, with a brown belt, sits barefoot, opposite a young white man in a white T-shirt.\n\nThe camera zooms in, the woman swirls the juice in a glass, her eyes looking at the distant woods, and says, \"These trees will turn yellow in a month, won'\''t they?\"\n\nClose-up of the man, he lowers his head and says, \"But they'\''ll be green again next summer.\"\n\nThen the woman turns her head, smiles at the man opposite, and says, \"Are you always this optimistic? Or just about summer?\"\n\nThen the man lifts his head, looks at the woman and says, \"Only about summers with you.\"",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720p",
"generate_audio": true
}
}'轮询 GET /api/v1/jobs/recordInfo?taskId=… 直至 success 或 fail。仅成功任务扣积分。
ModKie 不仅是 API 转接 — 还可部署、微调,并将自定义端点注册到同一网关。
一个 API Key 与 jobs 契约,覆盖市场模型与自托管模型。
上线前在浏览器内验证请求载荷。
部署 HuggingFace 或自定义 Worker,经 ModKie 路由流量。
视觉模型微调后将权重注册回网关。
与团队协作完成模型落地、集成与生产上线。