kling-4.0。| 类型 | settings.skill | 参考图 | 长度 |
|---|---|---|---|
| 电商详情页 | ecommerce | refer_image 必填 1~3 张 | settings.length 可选,默认 medium |
| 网页设计 | webpage | style_refer_image、subject_refer_image 各最多 1 张,可不传 | 不支持,请勿传 settings.length |
contents 中必须包含一项提示词。settings.skill、settings.resolution 必填。Authorization: Bearer ********************{
"contents": [
{
"type": "prompt",
"text": "为 @product 中的咖啡机设计完整电商详情页长图,包含主视觉、核心卖点和使用场景;仅使用提供的商品事实,不编造参数"
},
{
"type": "refer_image",
"url": "https://p2-kling.klingai.com/kcdn/cdn-kcdn112452/Coffee_machine.png",
"id": "product"
}
],
"settings": {
"skill": "ecommerce",
"length": "medium",
"resolution": "2k"
}
}curl --location 'https://api.gpt.ge/task/kling/long-image-generation/kling-4.0' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"type": "prompt",
"text": "为 @product 中的咖啡机设计完整电商详情页长图,包含主视觉、核心卖点和使用场景;仅使用提供的商品事实,不编造参数"
},
{
"type": "refer_image",
"url": "https://p2-kling.klingai.com/kcdn/cdn-kcdn112452/Coffee_machine.png",
"id": "product"
}
],
"settings": {
"skill": "ecommerce",
"length": "medium",
"resolution": "2k"
}
}'{
"code": 0,
"message": "SUCCEED",
"request_id": "26889859-78e9-4168-afc6-0d6498d44742",
"data": {
"id": "893605946402811985",
"status": "submitted",
"create_time": 1781080778802,
"update_time": 1781080778802
}
}