{"servers":[{"url":"https://api.modellix.ai/api/v1/kling/kling-video-o1"}],"post":{"description":"[Core Function] Kling Video O1 is the world's first reasoning-enhanced video model. [Strengths] It performs deep planning over the prompt before generation, delivering best-in-class physical consistency, complex motion logic, and strict adherence to long-form semantics. [Best For] Highly recommended for: complex physical interactions, logically demanding scenes, and prompts requiring deep reasoning. [Limitations] Do NOT use this model if you need multi-shot generation or 15-second durations (it is capped at 10s). [Routing] Route to this model when the prompt involves complex physics, logical sequences, or intricate physical interactions where standard models hallucinate.","operationId":"klingVideoO1Async","requestBody":{"content":{"application/json":{"examples":{"image_and_video":{"summary":"Video edit with reference images","value":{"audio":"off","images":["https://example.com/reference-frame.jpg"],"prompt":"Keep the subject identity from the reference frame while restyling the source clip","resolution":"720p","videos":["https://example.com/source-video.mp4"]}},"video_edit":{"summary":"Video editing flow","value":{"audio":"original","prompt":"Restyle the source video into a clay-animation look while preserving the original motion feel","resolution":"1080p","videos":["https://example.com/source-video.mp4"]}}},"schema":{"description":"Kling Video O1 V2V. Feature video requires `audio=off`. Duration enum is 3-10 (first-frame-only 5/10 rule applies to the I2V slice, not V2V).","properties":{"aspect_ratio":{"default":"16:9","description":"Video aspect ratio. Optional when a reference video is provided.","enum":["16:9","9:16","1:1"],"example":"16:9","type":"string"},"audio":{"default":"off","description":"Whether to generate audio. Official O1 settings.audio: original | off. Feature video requires off.","enum":["original","off"],"example":"off","type":"string"},"duration":{"default":5,"description":"Video duration in seconds (3-10). Not further restricted when a reference video is provided.","enum":[3,4,5,6,7,8,9,10],"example":5,"type":"integer"},"images":{"description":"Optional reference image list (first/last/refer frames flattened as URLs). Max 4 when a reference video is present.","items":{"description":"Reference image URL or Base64 string.","example":"https://example.com/reference-frame.jpg","minLength":1,"type":"string"},"maxItems":4,"minItems":1,"type":"array"},"prompt":{"description":"Video generation prompt.","example":"Transform the source clip into a cinematic sci-fi sequence","maxLength":2500,"minLength":1,"type":"string"},"resolution":{"default":"720p","description":"Output video resolution.","enum":["720p","1080p"],"example":"1080p","type":"string"},"videos":{"description":"Required reference video list (max 1). Flat URL maps to base video by default.","items":{"description":"Reference video URL or Base64 string.","example":"https://example.com/source-video.mp4","minLength":1,"type":"string"},"maxItems":1,"minItems":1,"type":"array"}},"required":["prompt","videos"],"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-v2v-abc123"},"model_id":"model-123","status":"pending","task_id":"task-v2v-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-v2v-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-v2v-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: prompt is required when multi_shot is false"},"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: prompt is required when multi_shot is false","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: prompt is required when multi_shot is false","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: prompt is required when multi_shot is false","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: prompt is required when multi_shot is false","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"Kling Video O1","x-mint":{"href":"kling/kling-video-o1"}}}