{"servers":[{"url":"https://api.modellix.ai/api/v1/alibaba/wan2.7-image-edit"}],"post":{"description":"[Core Function] Wan 2.7 Image Edit is a fast, reasoning-enhanced image editing model. [Strengths] Provides the robust editing capabilities of the Wan 2.7 architecture with faster turnaround times. [Best For] Highly recommended for: standard image modifications and style transfers. [Limitations] Do NOT use if you need absolute maximum fidelity or negative prompt support. [Routing] Use for standard, fast image editing tasks.","operationId":"wan27ImageEditAsync","requestBody":{"content":{"application/json":{"examples":{"basic":{"summary":"Basic image editing","value":{"images":["https://example.com/photo.jpg"],"n":1,"prompt":"Transform this photo into a watercolor painting style"}}},"schema":{"properties":{"enable_sequential":{"default":false,"description":"Enable sequential mode for generating coherent multi-image sets from image input","type":"boolean"},"images":{"description":"Input image URLs or Base64 strings (1-9 images). Formats: JPEG, JPG, PNG, BMP, WEBP. Resolution: [240, 8000] px per side, aspect ratio [1:8, 8:1], max 20MB per image","example":["https://example.com/image1.jpg"],"items":{"type":"string"},"maxItems":9,"minItems":1,"type":"array"},"n":{"description":"Number of images. Default mode (enable_sequential=false): 1-4, default 4. Sequential mode (enable_sequential=true): 1-12, default 12. Directly affects cost","example":1,"maximum":12,"minimum":1,"type":"integer"},"prompt":{"description":"Image editing instruction, supports Chinese and English","example":"Apply the graffiti from image 2 onto the car in image 1","maxLength":5000,"minLength":1,"type":"string"},"seed":{"description":"Random seed for reproducible results","maximum":2147483647,"minimum":0,"type":"integer"},"size":{"default":"2K","description":"Output resolution. Preset: 1K, 2K. Or custom pixels (format: width*height, range [768*768, 2048*2048]). Max 2K for image editing","example":"2K","type":"string"}},"required":["images","prompt"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"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 'images' 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 'images' 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 'images' 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 'images' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Too many requests - Rate limit exceeded"},"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 'images' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"Wan 2.7 Image Edit","tags":["Wan 2.7"],"x-mint":{"href":"alibaba/wan-2-7-image-edit"}}}