Skip to main content
POST
Kling omni image
  • 路径 POST /kling/v1/images/omni-image
  • 与官网一致:本页所有请求体、字段命名与返回结构与可灵官网保持一致
  • 字段详解:请参考官网权威文档
请求参数 请求体补充说明
  • prompt:支持通过 <<<image_1>>> 引用图片占位符;长度 ≤ 2500 字符
  • model_name 仅支持 kling-image-o1
  • image_list 结构:
    • 字段:image(URL 或 Base64,官方上游字段)
    • 兼容:image_url(平台兼容输入,转发上游时会映射为 image
    • 约束:.jpg/.jpeg/.png;大小 ≤ 10MB;最小边 ≥ 300px;宽高比 1:2.5 ~ 2.5:1
  • element_list 结构:[{ "element_id": <ID> }]
    • 参考图片数量 + 主体数量 ≤ 10
  • resolution:默认 1kn 默认 1
  • aspect_ratio
    • 默认 auto,按输入内容智能生成
    • 当以参考图原始比例生成时,该参数不生效

场景一:图片参考生成

示例响应(创建任务)

Authorizations

Authorization
string
header
required

Authorization: Bearer

Body

application/json

The body is of type object.

Response

200 - application/json

OK

The response is of type object.