Skip to main content
POST
/
kling-v1.5-i2i
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/image-to-image/kling/kling-v1.5-i2i/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Portrait in cyberpunk style",
  "image": "https://example.com/portrait.jpg"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-i2i-def456",
    "model_id": "kling-v1.5-i2i"
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Image description text, supports Chinese and English

Required string length: 1 - 2500
Example:

"Portrait in cyberpunk style"

image
string
required

Reference image (Base64 encoded or URL). Supported formats: .jpg, .jpeg, .png. Maximum size: 10MB

Minimum string length: 1
Example:

"https://example.com/portrait.jpg"

image_reference
enum<string>

Image reference type (V1.5 exclusive feature). 'subject': character feature reference, 'face': character appearance reference (single face only)

Available options:
subject,
face
Example:

"subject"

image_fidelity
number<float>
default:0.5

Image facial reference strength. Higher values mean stronger reference. Range: 0.0-1.0

Required range: 0 <= x <= 1
Example:

0.6

human_fidelity
number<float>
default:0.45

Facial feature similarity. Only available when image_reference='subject'. Higher values mean stronger reference. Range: 0.0-1.0

Required range: 0 <= x <= 1
Example:

0.8

aspect_ratio
enum<string>
default:16:9

Image aspect ratio

Available options:
16:9,
9:16,
1:1,
4:3,
3:4,
3:2,
2:3,
21:9
Example:

"3:4"

resolution
enum<string>
default:1k

Image resolution. V1.5 I2I only supports 1K

Available options:
1k
Example:

"1k"

n
integer
default:1

Number of images to generate per request

Required range: 1 <= x <= 9
Example:

1

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required