{"servers":[{"url":"https://api.modellix.ai/api/v1/alibaba/wan2.7-image-pro"}],"post":{"description":"[Core Function] Wan 2.7 Image Pro is Alibaba's flagship reasoning-enhanced image generation model. [Strengths] It features built-in chain-of-thought reasoning (Thinking Mode), exceptional prompt accuracy, native 12-language text rendering, and generates ultra-high-resolution 4K images. [Best For] Highly recommended for: print-ready large-format posters, complex logical prompts, and generating images containing specific text/typography. [Limitations] Do NOT use this model if you need to generate batch images rapidly (use Wan 2.7 Image instead) or if you specifically need negative prompts (use Qwen Image 2.0 Pro). [Routing] Use this model by default for high-end, 4K, or text-heavy image generation tasks.","operationId":"wan27ImageProAsync","requestBody":{"content":{"application/json":{"examples":{"basic":{"summary":"Basic text-to-image","value":{"n":1,"prompt":"A cozy flower shop with elegant windows, a beautiful wooden door, and flowers on display"}},"hd4k":{"summary":"4K high-resolution generation","value":{"n":1,"prompt":"Cinematic landscape of a misty mountain range at golden hour","size":"4K","thinking_mode":true}},"sequential":{"summary":"Sequential multi-image generation","value":{"enable_sequential":true,"n":4,"prompt":"A four-panel comic of a stray orange cat through the seasons: spring cherry blossoms, summer shade, autumn leaves, winter snow","size":"2K"}}},"schema":{"properties":{"enable_sequential":{"default":false,"description":"Enable sequential mode for generating multiple coherent images (e.g., comic panels, step-by-step illustrations)","type":"boolean"},"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 description text, supports Chinese and English","example":"A cozy flower shop with elegant windows, a beautiful wooden door, and flowers on display","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, 4K (4K only for text-to-image, non-sequential). Or custom pixels (format: width*height, range [768*768, 4096*4096])","example":"2K","type":"string"},"thinking_mode":{"default":true,"description":"Enable thinking mode for enhanced reasoning and image quality. Only effective when enable_sequential=false (no image input). Increases generation time","type":"boolean"}},"required":["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 'prompt' 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 'prompt' 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 'prompt' 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 'prompt' 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 'prompt' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"Wan 2.7 Image Pro","tags":["Wan 2.7"],"x-mint":{"href":"alibaba/wan-2-7-image-pro"}}}