dLazy AIdLazy AI
模型参考图像模型

kling-image-o1

Kling 图像模型,支持在 prompt 中使用 '<image_1>' 占位符进行参考图绑定。适合多图条件约束与高保真生成。

Kling 图像模型,支持在 prompt 中使用 '<image_1>' 占位符进行参考图绑定。适合多图条件约束与高保真生成。

概览

字段
Model IDkling-image-o1
CLIdlazy kling-image-o1
MCPkling-image-o1(在 Claude Code 中显示为 mcp__dlazy__kling-image-o1
类型image
执行异步任务,默认轮询直到完成(--no-wait 可立即返回 generateId
批量支持 --batch <n> 并行扇出

参数

参数类型必填说明
promptstringYes提示词
imagesarray<url>No参考图;image(接受 URL、本地路径或 data: URL);最多 10 项
clarity"2k" | "4k"No清晰度;默认 "2k"
aspect_ratio"16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "21:9" | "auto"No画幅比例;默认 "16:9"

--input @file.json--input '{...}' 也可一次性提供所有参数;命令行 flag 优先级更高。

CLI 示例

dlazy kling-image-o1 --help
dlazy kling-image-o1 --prompt "请在这里填写提示词" --images "https://example.com/reference1.jpg" "https://example.com/reference2.jpg"
dlazy kling-image-o1 --prompt "请在这里填写提示词" --images "./local-image.png"
dlazy kling-image-o1 --prompt "请在这里填写提示词" --images "https://example.com/reference1.jpg" "https://example.com/reference2.jpg" --dry-run
dlazy kling-image-o1 --prompt "请在这里填写提示词" --images "https://example.com/reference1.jpg" "https://example.com/reference2.jpg" --no-wait
dlazy kling-image-o1 --prompt "请在这里填写提示词" --images "https://example.com/reference1.jpg" "https://example.com/reference2.jpg" --batch 4

与管道组合

dlazy gpt-image-2 --prompt "参考图" \
  | dlazy kling-image-o1 --images - --prompt "请在这里填写提示词"

MCP

MCP 由 AI 客户端调用,无需手写示例。把 dLazy 注册成 MCP server 后,工具会自动出现在客户端的工具列表里——Claude Code 中名字是 mcp__dlazy__kling-image-o1,OpenClaw 等通用客户端按裸 kling-image-o1 调用。

添加 MCP server 见 MCP 集成

输出

{
  "outputs": [
    { "type": "image", "id": "o_...", "url": "https://files.dlazy.com/result.png", "mimeType": "image/png" }
  ]
}

媒体类型工具返回 image / video / audio / file output;可通过 --output url 让 stdout 只保留 URL。

On this page