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
[Core Function] Kling Image O1 is a reasoning-enhanced multimodal image model. [Strengths] It performs deep reasoning over prompts and references to handle complex logic, spatial relationships, and intricate multi-image combinations. [Best For] Highly recommended for: complex scenes requiring strict logical or spatial accuracy. [Limitations] Element library IDs and series generation are not exposed. Default aspect_ratio is 1:1 when omitted. Do NOT use for simple artistic generation where V3 is faster and more stylistic. [Routing] Route to this model when the prompt involves complex physical logic or strict spatial reasoning.
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
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.
1 - 10 elementsImage URL or Base64 (JPG/JPEG/PNG, ≤10MB, ≥300px, aspect 1:2.5~2.5:1)
1["https://example.com/image1.jpg"]