Kling 4.0 Flash 关键帧转视频 API: 图像转视频

将首帧图像制作成 Kling 4.0 Flash 视频动画。片段时长为 3-20 秒,分辨率为 720p,并带有原生音频。按次付费,无需订阅。 Kling 4.0 Flash Keyframe-to-Video 可将首帧图像制作成 3-20 秒、720p 的片段,并可在提示词中通过 @firstframe 引用该帧。

交互式模型控制

Kling 4.0 Flash Keyframe-to-Video 可将首帧图像制作成 3-20 秒、720p 的片段,并可在提示词中通过 @first_frame 引用该帧。

📝

概览

关于此模型

Kling 4.0 Flash Keyframe-to-Video 可将首帧图像制作成 3-20 秒、720p 的片段,并带有原生音频。在提示词中使用 @first_frame 提及该帧,并描述场景如何运动;输出会沿用图像的宽高比。不提供首帧时,请求会按纯文本生成视频处理。Flash 仅接受首帧,不支持中间关键帧或尾帧。如需多帧序列、1080p 和 30 秒片段,请使用 Kling 4.0 Keyframe to Video;如需角色和参考素材,请使用 Kling 4.0 Flash Reference to Video。

1图生视频:让产品照片、人像或插画动起来。
2社交媒体:将静态图像制作成适合 Reels 和 Shorts 的快速竖屏片段。
3预览:在高质量渲染前,先用单帧测试运动创意。
4广告:将关键视觉素材转为带原生声音的短镜头。
💰

价格与价值

成本分析

muapiapp$0.094 每秒(每个 5 秒片段 $0.47)

720p 输出视频按每秒 $0.094/s 计费。

** 竞品价格根据相似模型架构和使用层级估算。

⚙️

技术详情

配置参数

提示词string

Video description (max 8000 chars). Mention the first frame with @first_frame.

默认值Animate @first_frame as one continuous shot: the camera slowly pushes in as the skier turns her head toward the sunlit window, gentle cabin sway, ambient wind
First Frame URLstring

First-frame image URL. Mention as @first_frame.

默认值-
时长int

Video length (秒) (3-20).

默认值5
分辨率枚举(1 个选项)

Output resolution (Kling 4.0 Flash is 720p only).

默认值720p
画面比例枚举(4 个选项)

Only used when no first frame is provided (plain text-to-video); otherwise the output follows the first frame.

默认值-
📖

实施指南

开发者文档

如何使用 Kling 4.0 Flash Keyframe to Video

  1. 提供首帧:将 first_frame_url 设为可公开访问的图像地址。

  2. 在提示词中提及该帧:使用 @first_frame,并描述运动、镜头和声音。

  3. 配置输出:设置 duration(3-20 秒)。输出始终为 720p,并沿用图像的宽高比;仅在未提供首帧时,aspect_ratio 才会生效。

  4. 提交并获取结果:轮询 /api/v1/predictions/{request_id}/result,或传入 webhook_url。

curl -X POST https://api.muapi.ai/api/v1/kling-4.0-flash-keyframe-to-video \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"prompt": "Animate @first_frame as one continuous shot: the camera slowly pushes in as she turns toward the window", "first_frame_url": "https://example.com/first.png", "duration": 10}'
❓

常见问题

常见问答

时长和分辨率限制是什么?

每个片段时长为 3 到 20 秒,仅支持 720p。

我可以添加中间关键帧或尾帧吗?

不可以。Flash 仅接受首帧。中间关键帧和尾帧请使用 Kling 4.0 Keyframe to Video。

输出会采用什么宽高比?

提供首帧时,输出会沿用图像的宽高比。未提供首帧时,aspect_ratio(16:9、9:16、1:1、21:9)才会生效。

如何计算价格?

生成视频每秒 $0.094,因此 5 秒片段的费用为 $0.47。

它会生成音频吗?

会,视频会同时生成原生音频。

如何获取结果?

该接口为异步接口。轮询 /api/v1/predictions/{request_id}/result,或传入 webhook_url,以便在视频就绪时收到通知。