{"servers":[{"url":"https://api.modellix.ai/api/v1/kling/kling-video-effects"}],"post":{"description":"[Core Function] Kling Video Effects applies predefined visual effects to images. [Strengths] It automatically transforms 1 or 2 images into engaging short videos using viral/predefined effect templates. [Best For] Highly recommended for: social media trends and quick visual gags. [Limitations] Do NOT use this model for custom narrative generation or prompt-based control. [Routing] Use this when the user explicitly requests an 'effect' or 'trend' template applied to their photos.","operationId":"klingVideoEffectsAsync","requestBody":{"content":{"application/json":{"examples":{"single_image_effect":{"summary":"Single-image effect","value":{"duration":5,"effect_scene":"pet_lion_pro","image":"https://example.com/image.jpg"}},"two_person_effect":{"summary":"Two-person effect","value":{"duration":5,"effect_scene":"hug_pro","images":["https://example.com/image1.jpg","https://example.com/image2.jpg"]}}},"schema":{"oneOf":[{"required":["image"]},{"required":["images"]}],"properties":{"duration":{"description":"Video duration in seconds: 5 or 10. Different effects may support different durations. Optional.","enum":[5,10],"example":5,"type":"integer"},"effect_scene":{"description":"Effect scene name. Supports 212 video effects total: 208 single-image effects (e.g., pet_lion_pro, cute_dance, bullet_time) and 4 two-person effects (cheers_2026, fight_pro, hug_pro, heart_gesture_pro). For complete list, see: https://app.klingai.com/global/dev/document-api/quickStart/productIntroduction/effectsCenter","example":"pet_lion_pro","minLength":1,"type":"string"},"image":{"description":"Reference image for single-image effects. Supports URL or Base64 encoded string. Mutually exclusive with 'images' - use 'image' for single-image effects, 'images' for two-person effects. Supported formats: JPG/JPEG/PNG. Maximum file size: 10MB. Minimum resolution: 300x300px. Aspect ratio should be between 1:2.5 and 2.5:1. Do not include Base64 prefix.","example":"https://example.com/image.jpg","minLength":1,"type":"string"},"images":{"description":"Reference image array for two-person effects. Mutually exclusive with 'image'. Must contain exactly 2 images. The first image will be positioned on the left, the second on the right. Each image supports URL or Base64 encoding. Same format and size requirements as 'image'.","example":["https://example.com/image1.jpg","https://example.com/image2.jpg"],"items":{"minLength":1,"type":"string"},"maxItems":2,"minItems":2,"type":"array"}},"required":["effect_scene"],"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-effects001"},"model_id":"model-123","status":"pending","task_id":"task-effects001"},"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"},"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","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","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","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","example":"Invalid parameters: parameter 'image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"Kling Video Effects","x-mint":{"href":"kling/kling-video-effects"}}}