{"servers":[{"url":"https://api.modellix.ai/api/v1/kling/kling-image-recognize"}],"post":{"description":"[Core Function] Kling Image Recognize is a vision analysis model. [Strengths] It excels at detecting and extracting semantic information (like fashion/clothing details) from images. [Best For] Highly recommended for: visual search, tagging, and clothing detection. [Limitations] Do NOT use this model to generate images; it only returns text data. [Routing] Use this when the user wants to 'analyze', 'detect', or 'recognize' contents of an image.","operationId":"klingImageRecognizeAsync","requestBody":{"content":{"application/json":{"examples":{"base64_format":{"summary":"Base64 encoded image","value":{"image":"iVBORw0KGgoAAAANSUhEUgAAAAUA..."}},"fashion_detection":{"summary":"Fashion/clothing detection","value":{"image":"https://example.com/fashion-photo.jpg"}},"url_format":{"summary":"URL format image","value":{"image":"https://example.com/portrait.jpg"}}},"schema":{"description":"Note: This is a synchronous model that returns recognition results immediately. Returns 4 types of recognition results: object_seg (main subject), head_seg (face with hair), face_seg (face without hair), cloth_seg (clothing). Result images are valid for 30 days only. This model does NOT support: prompt, negative_prompt, n, aspect_ratio, resolution, image_fidelity, image_reference, human_fidelity, or callback_url parameters.","properties":{"image":{"description":"Image to recognize (URL or Base64 encoded, do not include 'data:' prefix for Base64). Supported formats: .jpg, .jpeg, .png. Maximum size: 10MB. Minimum dimensions: 300x300px. Aspect ratio must be between 1:2.5 and 2.5:1","example":"https://example.com/portrait.jpg","minLength":1,"type":"string"}},"required":["image"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"code":0,"data":{"get_result":{"method":"GET","url":"https://api.modellix.ai/api/v1/tasks/task-recognize-abc123"},"model_id":"model-123","status":"pending","task_id":"task-recognize-abc123"},"message":"success"},"schema":{"properties":{"code":{"description":"Response code, 0 indicates success","example":0,"type":"integer"},"data":{"description":"Detailed data about the submitted asynchronous task.","properties":{"get_result":{"description":"API information to query the task result","properties":{"method":{"description":"HTTP method","example":"GET","type":"string"},"url":{"description":"Full URL to query the task result","example":"https://api.modellix.ai/api/v1/tasks/task-abc123","type":"string"}},"type":"object"},"model_id":{"description":"Model ID","example":"model-123","type":"string"},"status":{"description":"Task status","enum":["pending","processing"],"example":"pending","type":"string"},"task_id":{"description":"Unique task identifier","example":"task-abc123","type":"string"}},"required":["status","task_id","model_id"],"type":"object"},"message":{"description":"Response message","example":"success","type":"string"}},"required":["code","message","data"],"type":"object"}}},"description":"Task submitted successfully (returns immediately due to synchronous processing)"},"400":{"content":{"application/json":{"example":{"code":400,"message":"Invalid parameters: parameter 'image' is required"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: parameter 'image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Invalid request parameters"},"401":{"content":{"application/json":{"example":{"code":401,"message":"Authentication failed: invalid API key"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: parameter 'image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Unauthorized - Invalid or missing API Key"},"429":{"content":{"application/json":{"example":{"code":429,"message":"Rate limit exceeded: 100 requests per minute, retry after 60 seconds"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: parameter 'image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Too many requests - Rate limit exceeded","headers":{"X-RateLimit-Limit":{"description":"Maximum requests per minute","schema":{"example":100,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Remaining quota in current window","schema":{"example":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Rate limit window reset time (Unix timestamp)","schema":{"example":1704067260,"type":"integer"}}}},"500":{"content":{"application/json":{"example":{"code":500,"message":"Internal server error"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: parameter 'image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"Kling Image Recognize","x-mint":{"href":"kling/kling-image-recognize"}}}