Image Generation

them他Parameters 请see official文档 https://app.klingai.com/cn/dev/document-api/apiReference/updateNotice ParametersYes一致,对接is, 仅need将请求域名, API key 改成we

Endpoint

POST http://v98store.com/kling/v1/images/generations

cURL Command

curl -X POST 'http://v98store.com/kling/v1/images/generations' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "model_name": "kling-v1-5", "prompt": "flow", "negative_prompt": "", "image": "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", "aspect_ratio": "1:1", "human_fidelity": 1, "image_reference": "subject" }'

Parameters

NameInDescriptionRequired
Content-TypeheaderYes
AcceptheaderYes
AuthorizationheaderYes

Request Body

Example

{
  "model_name": "kling-v1-5",
  "prompt": "flow",
  "negative_prompt": "",
  "image": "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",
  "aspect_ratio": "1:1",
  "human_fidelity": 1,
  "image_reference": "subject"
}

Responses

200 -

Example

{
  "code": 0,
  "message": "SUCCEED",
  "request_id": "CjMT7WdSwWcAAAAAALvB3g",
  "data": {
    "task_id": "CjMT7WdSwWcAAAAAALvB3g",
    "task_status": "submitted",
    "created_at": 1733851336696,
    "updated_at": 1733851336696
  }
}