Skip to main content
POST
/
kling-v2-new-i2i
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/image-to-image/kling/kling-v2-new-i2i/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Futuristic sci-fi scene with neon lighting",
  "image": "https://example.com/city.jpg"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-i2i-jkl012",
    "model_id": "kling-v2-new-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:

"Futuristic sci-fi scene with neon lighting"

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/city.jpg"

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.55

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:

"16:9"

resolution
enum<string>
default:1k

Image resolution. V2 New 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