kling-image-v1

绘图异步任务

最懂中文的图像生成大模型”:基于LLM大语言模型、数十亿中文语料训练,综合指标超过SDXL/SD3等开源模型和Midjourney等闭源模型,实现中文场景下的SOTA。

官 稳 保
¥--已优惠¥--
----
  • 申请赠送05000000 Tokens

    约¥0/ 5百万Tokens

  • 一元试用11000000 Tokens

    约¥1/百万Token

  • 默认0.025request

    按量计费

  • 国产特价20.02request

    按量计费

· 首次申请送500万Token
  • 使用文档

  • 附件资料

  • 计费明细

模型信息

模型 IDkling-image-v1供应商快手可灵
输入模态未注明输出模态未注明
分类未注明发布时间1970-01-01 07:59:59

调用接口

分组接口渠道方法路径
全部接口文生视频查询任务(免费)本站 AI 中转站GET/kling/v1/images/text2video/{task_id}
全部接口文生音效本站 AI 中转站POST/kling/v1/audio/text-to-audio
全部接口视频生音效本站 AI 中转站POST/kling/v1/audio/video-to-audio
全部接口扩图本站 AI 中转站POST/kling/v1/images/editing/expand
全部接口图像生成本站 AI 中转站POST/kling/v1/images/generations
全部接口多图参考生图本站 AI 中转站POST/kling/v1/images/multi-image2image

GET /kling/v1/images/text2video/{task_id}

请求与响应结构
{
    "summary": "文生视频查询任务(免费)",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "required": [
                            "code",
                            "message",
                            "request_id",
                            "data"
                        ],
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "data": {
                                "type": "object",
                                "properties": {
                                    "task_id": {
                                        "type": "string"
                                    },
                                    "created_at": {
                                        "type": "string"
                                    },
                                    "updated_at": {
                                        "type": "string"
                                    },
                                    "task_result": {
                                        "type": "object",
                                        "properties": {
                                            "videos": {
                                                "type": "array",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "url": {
                                                            "type": "string"
                                                        },
                                                        "duration": {
                                                            "type": "string"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "task_status": {
                                        "type": "string"
                                    },
                                    "task_status_msg": {
                                        "type": "string"
                                    }
                                }
                            },
                            "message": {
                                "type": "string"
                            },
                            "request_id": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [
        {
            "in": "path",
            "name": "task_id",
            "schema": {
                "type": "string",
                "description": "任务ID"
            },
            "required": true,
            "description": "任务ID"
        }
    ],
    "description": ""
}

POST /kling/v1/audio/text-to-audio

### 文生音效
本文档不实时更新,完整版请查看官方文档:

请求与响应结构
{
    "summary": "文生音效",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "required": [
                            "code",
                            "message",
                            "request_id",
                            "data"
                        ],
                        "properties": {
                            "code": {
                                "type": "integer",
                                "description": "错误码;具体定义错误码"
                            },
                            "data": {
                                "type": "object",
                                "required": [
                                    "task_id",
                                    "updated_at",
                                    "created_at",
                                    "task_status"
                                ],
                                "properties": {
                                    "task_id": {
                                        "type": "string",
                                        "description": "任务ID,系统生成"
                                    },
                                    "created_at": {
                                        "type": "integer",
                                        "description": "任务创建时间,Unix时间戳、单位ms"
                                    },
                                    "updated_at": {
                                        "type": "integer",
                                        "description": "任务更新时间,Unix时间戳、单位ms"
                                    },
                                    "task_status": {
                                        "enum": [
                                            "submitted(已提交",
                                            "processing(处理中)",
                                            "succeed(成功)",
                                            "failed(失败)"
                                        ],
                                        "type": "string",
                                        "description": "任务状态,枚举值:submitted(已提交)、processing(处理中)、succeed(成功)、failed(失败)"
                                    }
                                }
                            },
                            "message": {
                                "type": "string",
                                "description": "错误信息"
                            },
                            "request_id": {
                                "type": "string",
                                "description": "请求ID,系统生成,用于跟踪请求、排查问题"
                            }
                        }
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [],
    "description": "### 文生音效\n本文档不实时更新,完整版请查看官方文档:",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "title": "文生音效",
                    "$schema": "",
                    "required": [
                        "prompt",
                        "duration"
                    ],
                    "properties": {
                        "prompt": {
                            "type": "string",
                            "description": "文本提示词  内容长度不超过200字符"
                        },
                        "duration": {
                            "type": "integer",
                            "description": "生成音频的时长  取值范围: ​​3.0秒至10.0秒​​,支持小数点后一位精度"
                        }
                    },
                    "x-apifox-id": "337534133"
                }
            }
        },
        "required": true
    }
}

POST /kling/v1/audio/video-to-audio

### 视频生音效
本文档不实时更新,完整版请查看官方文档:

请求与响应结构
{
    "summary": "视频生音效",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "required": [
                            "code",
                            "message",
                            "request_id",
                            "data"
                        ],
                        "properties": {
                            "code": {
                                "type": "integer",
                                "description": "错误码;具体定义错误码"
                            },
                            "data": {
                                "type": "object",
                                "required": [
                                    "task_id",
                                    "updated_at",
                                    "created_at",
                                    "task_status"
                                ],
                                "properties": {
                                    "task_id": {
                                        "type": "string",
                                        "description": "任务ID,系统生成"
                                    },
                                    "created_at": {
                                        "type": "integer",
                                        "description": "任务创建时间,Unix时间戳、单位ms"
                                    },
                                    "updated_at": {
                                        "type": "integer",
                                        "description": "任务更新时间,Unix时间戳、单位ms"
                                    },
                                    "task_status": {
                                        "enum": [
                                            "submitted(已提交",
                                            "processing(处理中)",
                                            "succeed(成功)",
                                            "failed(失败)"
                                        ],
                                        "type": "string",
                                        "description": "任务状态,枚举值:submitted(已提交)、processing(处理中)、succeed(成功)、failed(失败)"
                                    }
                                }
                            },
                            "message": {
                                "type": "string",
                                "description": "错误信息"
                            },
                            "request_id": {
                                "type": "string",
                                "description": "请求ID,系统生成,用于跟踪请求、排查问题"
                            }
                        }
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [],
    "description": "### 视频生音效\n本文档不实时更新,完整版请查看官方文档:",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "title": "视频生音效",
                    "$schema": "",
                    "properties": {
                        "video_id": {
                            "type": "string",
                            "description": "通过可灵AI生成的视频的ID  与video_url参数二选一填写,不能同时为空,也不能同时有值 仅支持30天内生成并且长度在3.0秒-20.0秒的视频"
                        },
                        "video_url": {
                            "type": "string",
                            "description": "所上传视频的获取链接  与video_id参数二选一填写,不能同时为空,也不能同时有值 视频格式仅支持MP4/MOV,文件大小≤100M, 分辨率支持720p或者1080p, 视频长度在3.0秒-20.0秒"
                        }
                    },
                    "x-apifox-id": "337536217"
                }
            }
        },
        "required": true
    }
}

POST /kling/v1/images/editing/expand

### 扩图
本文档不实时更新,完整版请查看官方文档:

请求与响应结构
{
    "summary": "扩图",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "required": [
                            "code",
                            "message",
                            "request_id",
                            "data"
                        ],
                        "properties": {
                            "code": {
                                "type": "integer",
                                "description": "错误码;具体定义错误码"
                            },
                            "data": {
                                "type": "object",
                                "required": [
                                    "task_id",
                                    "task_status",
                                    "created_at",
                                    "updated_at"
                                ],
                                "properties": {
                                    "task_id": {
                                        "type": "string",
                                        "description": "任务ID,系统生成"
                                    },
                                    "created_at": {
                                        "type": "integer",
                                        "description": "任务创建时间,Unix时间戳、单位ms"
                                    },
                                    "updated_at": {
                                        "type": "integer",
                                        "description": "任务更新时间,Unix时间戳、单位ms"
                                    },
                                    "task_status": {
                                        "enum": [
                                            "submitted(已提交)",
                                            "processing(处理中)",
                                            "succeed(成功)",
                                            "failed(失败)"
                                        ],
                                        "type": "string",
                                        "description": "任务状态,枚举值:submitted(已提交)、process任务创建时间,Unix时间戳、单位msing(处理中)、succeed(成功)、failed(失败)"
                                    }
                                }
                            },
                            "message": {
                                "type": "string",
                                "description": "错误信息"
                            },
                            "request_id": {
                                "type": "string",
                                "description": "请求ID,系统生成,用于跟踪请求、排查问题"
                            }
                        }
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [],
    "description": "### 扩图\n本文档不实时更新,完整版请查看官方文档:",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "title": "扩图",
                    "$schema": "",
                    "required": [
                        "image",
                        "up_expansion_ratio",
                        "down_expansion_ratio",
                        "left_expansion_ratio",
                        "right_expansion_ratio"
                    ],
                    "properties": {
                        "n": {
                            "type": "integer"
                        },
                        "image": {
                            "type": "string"
                        },
                        "prompt": {
                            "type": "string"
                        },
                        "up_expansion_ratio": {
                            "type": "number"
                        },
                        "down_expansion_ratio": {
                            "type": "number"
                        },
                        "left_expansion_ratio": {
                            "type": "number"
                        },
                        "right_expansion_ratio": {
                            "type": "number"
                        }
                    },
                    "x-apifox-id": "337543595"
                }
            }
        },
        "required": true
    }
}

POST /kling/v1/images/generations

### 图像生成
本文档不实时更新,完整版请查看官方文档:

请求与响应结构
{
    "summary": "图像生成",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "required": [
                            "code",
                            "message",
                            "request_id",
                            "data"
                        ],
                        "properties": {
                            "code": {
                                "type": "integer",
                                "description": "错误码;具体定义错误码"
                            },
                            "data": {
                                "type": "object",
                                "required": [
                                    "task_id",
                                    "task_status",
                                    "created_at",
                                    "updated_at"
                                ],
                                "properties": {
                                    "task_id": {
                                        "type": "string",
                                        "description": "任务ID,系统生成"
                                    },
                                    "created_at": {
                                        "type": "integer",
                                        "description": "任务创建时间,Unix时间戳、单位ms"
                                    },
                                    "updated_at": {
                                        "type": "integer",
                                        "description": "任务更新时间,Unix时间戳、单位ms"
                                    },
                                    "task_status": {
                                        "enum": [
                                            "submitted(已提交)",
                                            "processing(处理中)",
                                            "succeed(成功)",
                                            "failed(失败)"
                                        ],
                                        "type": "string",
                                        "description": "任务状态,枚举值:submitted(已提交)、process任务创建时间,Unix时间戳、单位msing(处理中)、succeed(成功)、failed(失败)"
                                    }
                                }
                            },
                            "message": {
                                "type": "string",
                                "description": "错误信息"
                            },
                            "request_id": {
                                "type": "string",
                                "description": "请求ID,系统生成,用于跟踪请求、排查问题"
                            }
                        }
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [],
    "description": "### 图像生成\n本文档不实时更新,完整版请查看官方文档:",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "title": "图像生成",
                    "$schema": "",
                    "required": [
                        "prompt"
                    ],
                    "properties": {
                        "n": {
                            "type": "integer",
                            "maximum": 9,
                            "minimum": 1,
                            "description": "生成图片数量,可选,取值范围:[1,9]"
                        },
                        "image": {
                            "type": "string",
                            "description": "参考图片,可选,支持Base64编码或图片URL,支持.jpg / .jpeg / .png格式,大小不能超过10MB"
                        },
                        "prompt": {
                            "type": "string",
                            "maxLength": 5000,
                            "description": "正向文本提示,必须,不能超过500个字符"
                        },
                        "model_name": {
                            "type": "string",
                            "default": "kling-v1",
                            "description": "kling-v1-5,kling-v2"
                        },
                        "aspect_ratio": {
                            "enum": [
                                "16:9",
                                "9:16",
                                "1:1",
                                "4:3",
                                "3:4",
                                "3:2",
                                "2:3"
                            ],
                            "type": "string",
                            "description": "生成图片的纵横比,可选,枚举值:16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3"
                        },
                        "callback_url": {
                            "type": "string",
                            "description": "本次任务结果回调通知地址,可选"
                        },
                        "image_fidelity": {
                            "type": "number",
                            "maximum": 1,
                            "minimum": 0,
                            "description": "生成过程中对用户上传图片的参考强度,可选,取值范围:[0,1]"
                        },
                        "negative_prompt": {
                            "type": "string",
                            "maxLength": 2000,
                            "description": "负向文本提示,可选,不能超过200个字符"
                        }
                    },
                    "x-apifox-id": "253413273"
                }
            }
        },
        "required": true
    }
}

POST /kling/v1/images/multi-image2image

### 多图参考生图
本文档不实时更新,完整版请查看官方文档:

请求与响应结构
{
    "summary": "多图参考生图",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "required": [
                            "code",
                            "message",
                            "request_id",
                            "data"
                        ],
                        "properties": {
                            "code": {
                                "type": "integer",
                                "description": "错误码;具体定义错误码"
                            },
                            "data": {
                                "type": "object",
                                "required": [
                                    "task_id",
                                    "task_status",
                                    "created_at",
                                    "updated_at"
                                ],
                                "properties": {
                                    "task_id": {
                                        "type": "string",
                                        "description": "任务ID,系统生成"
                                    },
                                    "created_at": {
                                        "type": "integer",
                                        "description": "任务创建时间,Unix时间戳、单位ms"
                                    },
                                    "updated_at": {
                                        "type": "integer",
                                        "description": "任务更新时间,Unix时间戳、单位ms"
                                    },
                                    "task_status": {
                                        "enum": [
                                            "submitted(已提交)",
                                            "processing(处理中)",
                                            "succeed(成功)",
                                            "failed(失败)"
                                        ],
                                        "type": "string",
                                        "description": "任务状态,枚举值:submitted(已提交)、process任务创建时间,Unix时间戳、单位msing(处理中)、succeed(成功)、failed(失败)"
                                    }
                                }
                            },
                            "message": {
                                "type": "string",
                                "description": "错误信息"
                            },
                            "request_id": {
                                "type": "string",
                                "description": "请求ID,系统生成,用于跟踪请求、排查问题"
                            }
                        }
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [],
    "description": "### 多图参考生图\n本文档不实时更新,完整版请查看官方文档:",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "title": "多图参考生图",
                    "$schema": "",
                    "required": [
                        "model_name",
                        "subject_image_list"
                    ],
                    "properties": {
                        "n": {
                            "type": "integer"
                        },
                        "prompt": {
                            "type": "string"
                        },
                        "model_name": {
                            "type": "string"
                        },
                        "aspect_ratio": {
                            "type": "string"
                        },
                        "callback_url": {
                            "type": "string"
                        },
                        "scence_image": {
                            "type": "string"
                        },
                        "negative_prompt": {
                            "type": "string"
                        },
                        "subject_image_list": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        }
                    },
                    "x-apifox-id": "337538792"
                }
            }
        },
        "required": true
    }
}

价格

价格组渠道计费项价格单位
default AI 中转站requestCNY 0.025request
国产特价2 AI 中转站requestCNY 0.02request

服务级错误码参照(error_code):

  错误码 说明
  221301 数据源超时
  221303 认证失败

认证失败,请稍后重试
认证失败,该卡当日连续多次认证不通过被限制校验,次日恢复
  221306 参数错误

参数错误:姓名格式不正确
参数错误:手机号格式不正确
参数错误:身份证格式不正确
参数错误:银行卡号格式不正确
同一银行卡请求过于频繁

系统级错误码参照:

  错误码 说明
  10001 错误的请求KEY
  10002 该KEY无请求权限
  10003 KEY过期
  10004 错误的OPENID
  10005 应用未审核超时,请提交认证
  10007 未知的请求源
  10008 被禁止的IP
  10009 被禁止的KEY
  10011 当前IP请求超过限制
  10012 请求超过次数限制
  10013 测试KEY超过请求限制
  10014 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失)
  10020 接口维护
  10021 接口停用

错误码格式说明(示例:200201):

  2 002 01
  服务级错误(1为系统级错误) 服务模块代码(即数据ID) 具体错误代码

使用文档下载

kling-image-v1
--
今日调用
--
成功率
--
近期调用

推荐API

  • gemini-3.8-flash-thinking-medium

    Gemini 3.8 Flash 是我们最智能的 Flash 模型,专为长远软件工程、自主代理和复杂企业工作流程设计——所有这些都具备 Flash 的速度和成本效益。
  • gemini-3.7-flash-thinking-low

  • gemini-3.8-flash-thinking-low

    Gemini 3.8 Flash 是我们最智能的 Flash 模型,专为长远软件工程、自主代理和复杂企业工作流程设计——所有这些都具备 Flash 的速度和成本效益。
  • gemini-3.7-flash-thinking-medium

  • gemini-3.8-flash-thinking-high

    Gemini 3.8 Flash 是我们最智能的 Flash 模型,专为长远软件工程、自主代理和复杂企业工作流程设计——所有这些都具备 Flash 的速度和成本效益。
  • gemini-3.8-flash

    Gemini 3.8 Flash 是我们最智能的 Flash 模型,专为长远软件工程、自主代理和复杂企业工作流程设计——所有这些都具备 Flash 的速度和成本效益。

API资讯

数 据 驱 动 未 来
Data Drives The Future
数 据 驱 动 未 来
Data Drives The Future