Vincentian picture
Generate images based on text prompt words.
POST
/kling/v1/images/generationsBody Parametersapplication/json
aspect_ratio string
Aspect ratio, e.g. 16:9, 9:16, 1:1
callback_url string
callback URL
image_fidelity number
Image fidelity (picture-to-picture scene)
model_name* string
Image model version
n integer
Generate quantity
negative_prompt string
negative cue word
prompt* string
Image description prompt words
resolution string
Output resolution
Responses
200 Task submitted successfully application/json
response-200 object
properties code integer
Business status code
data object
Data payload (often Base64 or a structured object)
message string
Message text
request_id string
Request trace ID
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"aspect_ratio": "1:1",
3"model_name": "kling-v1-5",
4"n": 1,
5"prompt": "一只可爱的橘猫坐在窗台上,水彩风格",
6"resolution": "1k"
7}
1curl -X POST "https://api.digislash.com/kling/v1/images/generations" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"aspect_ratio": "1:1",
6"model_name": "kling-v1-5",
7"n": 1,
8"prompt": "一只可爱的橘猫坐在窗台上,水彩风格",
9"resolution": "1k"
10}'
1▼{
2"code": 0,
3▼"data": {
4"created_at": 0,
5"task_id": "string",
6"task_status": "submitted",
7"updated_at": 0
8},
9"message": "success",
10"request_id": "string"
11}
