curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-v2-mi2i/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject_images": [
"https://example.com/person1.jpg",
"https://example.com/person2.jpg"
],
"prompt": "Two friends sitting in a cafe",
"n": 2
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-mi2i-pqr678",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-mi2i-pqr678"
}
}
}Combines up to 4 subject images with optional scene and style references into a single cohesive output, supporting subject fusion, scene replacement, and style transfer.
curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-v2-mi2i/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject_images": [
"https://example.com/person1.jpg",
"https://example.com/person2.jpg"
],
"prompt": "Two friends sitting in a cafe",
"n": 2
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-mi2i-pqr678",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-mi2i-pqr678"
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
Note: All parameters are optional, but at least one of prompt, subject_images, scene_image, or style_image should be provided. This model does NOT support: negative_prompt, resolution, image, image_reference, image_fidelity, or human_fidelity parameters.
Image description text, supports Chinese and English. Optional but recommended for better results
1 - 2500"Two friends sitting in a cozy cafe"
List of subject image URLs or Base64 strings. Simplified flattened parameter. Minimum 1 image, maximum 4 images
1 - 4 elementsSubject image URL or Base64 encoded data
1[
"https://example.com/person1.jpg",
"https://example.com/person2.jpg"
]Scene reference image (Base64 encoded or URL). Used for scene replacement. Supported formats: .jpg, .jpeg, .png. Maximum size: 10MB
1"https://example.com/beach-scene.jpg"
Style reference image (Base64 encoded or URL). Used for style transfer. Supported formats: .jpg, .jpeg, .png. Maximum size: 10MB
1"https://example.com/art-style.jpg"
Image aspect ratio
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 "16:9"
Number of images to generate per request
1 <= x <= 91