Authorization: Bearer ********************
{
"model": "string",
"prompt": "string",
"negative_prompt": "string",
"image": "string",
"image_fidelity": 0,
"n": 0,
"aspect_ratio": "string",
"callback_url": "string"
}
curl --location --request POST 'http://prod-cn.your-api-server.com/kling/v1/images/generations' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"prompt": "string",
"negative_prompt": "string",
"image": "string",
"image_fidelity": 0,
"n": 0,
"aspect_ratio": "string",
"callback_url": "string"
}'
{
"code": 0,
"message": "SUCCEED",
"request_id": "CjMT7WdSwWcAAAAAALvB3g",
"data": {
"task_id": "CjMT7WdSwWcAAAAAALvB3g",
"task_status": "submitted",
"created_at": 1733851336696,
"updated_at": 1733851336696
}
}