curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-image-o1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A serene landscape with mountains at sunset"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-omni-vwx234",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-omni-vwx234"
}
}
}{
"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 Image O1
Kling’s reasoning image model for complex layouts and blends of reference subjects. It uses up to 10 reference images and returns up to 9 results at 1K or 2K, including vertical 9:16 and ultrawide 21:9 frames.
POST
/
kling
/
kling-image-o1
curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-image-o1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A serene landscape with mountains at sunset"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-omni-vwx234",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-omni-vwx234"
}
}
}{
"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"
}Body
application/json
Kling Image O1 (POST /images/omni-image, model_name=kling-image-o1). No result_type/series_amount. Element is not exposed. Default aspect_ratio is 1:1 when omitted.
Optional reference images (flattened image_list). Omit for pure text-to-image. If provided, must contain 1-10 non-empty URLs/Base64 strings.
Required array length:
1 - 10 elementsImage URL or Base64 (JPG/JPEG/PNG, ≤10MB, ≥300px, aspect 1:2.5~2.5:1)
Minimum string length:
1Example:
["https://example.com/image1.jpg"]