curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-v3-i2i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Restyle the photo as a cinematic cyberpunk portrait",
"image": "https://example.com/portrait.jpg"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-v3-i2i-123",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-v3-i2i-123"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'image' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Kling V3 I2I
[Core Function] Kling V3 I2I is the flagship image-to-image editing model (POST /images/generations, model_name=kling-v3 with image). [Strengths] High-quality style transfer and editing up to 2K. [Best For] Single-reference image editing. [Limitations] Do NOT send negative_prompt when image is present (officially unsupported). No image_fidelity / image_reference on V3. For multi-image fusion or series, use kling-v3-omni-image. [Routing] Default for standard image-to-image.
curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-v3-i2i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Restyle the photo as a cinematic cyberpunk portrait",
"image": "https://example.com/portrait.jpg"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-v3-i2i-123",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-v3-i2i-123"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'image' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
Image editing prompt, supports Chinese and English
1 - 2500"Restyle the photo as a cinematic cyberpunk portrait"
Reference image (URL or Base64 encoded). Kling V3 image-to-image requires one input image.
1"https://example.com/portrait.jpg"
Number of images to generate per request
1 <= x <= 92
Image aspect ratio
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 "3:4"
Output resolution. Kling V3 supports both 1K and 2K output.
1k, 2k "2k"