FocalAPI 文档
API 参考视频创作

Kling 图生视频

POST
/kling/v1/videos/image2video

使用 Kling 模型从图片生成视频。

支持通过 image 参数传入图片 URL 或 Base64 编码的图片数据。

授权

BearerAuth
授权Bearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

位置: header

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

视频生成请求

响应主体

application/json

application/json

curl -X POST "https://example.com/kling/v1/videos/image2video" \  -H "Content-Type: application/json" \  -d '{    "model": "kling-v1",    "prompt": "人物转身走开",    "image": "https://example.com/image.jpg",    "duration": 5,    "width": 1280,    "height": 720  }'
{  "task_id": "abcd1234efgh",  "status": "queued"}