Authorization: Bearer ********************
{
"model_name": "kling-v1-5",
"prompt": "flow",
"negative_prompt": "",
"image": "https://cdn.klingai.com/bs2/upload-kling-api/9471259838/image/Cl6kH2gHPegAAAAAAjveaQ-0_raw_image_0.png",
"aspect_ratio": "1:1",
"human_fidelity": 1,
"image_reference": "subject"
}
curl --location --request POST '/kling/v1/images/generations' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model_name": "kling-v1-5",
"prompt": "flow",
"negative_prompt": "",
"image": "https://cdn.klingai.com/bs2/upload-kling-api/9471259838/image/Cl6kH2gHPegAAAAAAjveaQ-0_raw_image_0.png",
"aspect_ratio": "1:1",
"human_fidelity": 1,
"image_reference": "subject"
}'
{
"code": 0,
"message": "SUCCEED",
"request_id": "CjMT7WdSwWcAAAAAALvB3g",
"data": {
"task_id": "CjMT7WdSwWcAAAAAALvB3g",
"task_status": "submitted",
"created_at": 1733851336696,
"updated_at": 1733851336696
}
}