{"servers":[{"url":"https://api.modellix.ai/api/v1/alibaba/qwen-image-2.0"}],"post":{"description":"[Core Function] Qwen Image 2.0 is a fast, photorealistic image generation model. [Strengths] Balances speed and cost while delivering high-quality 2K generation and standard Qwen 2.0 text rendering. [Best For] Recommended for: cost-effective photorealism and fast concept art. [Limitations] Lacks the absolute finest detail rendering of the Pro version. [Routing] Use this when the user needs standard Qwen generation without Pro-level fidelity.","operationId":"qwenImage20Async","requestBody":{"content":{"application/json":{"examples":{"basic":{"summary":"Basic image generation","value":{"prompt":"A serene Japanese garden with cherry blossoms"}},"batch":{"summary":"Batch generation with multiple images","value":{"n":4,"prompt":"Abstract digital art with vibrant colors and geometric shapes","prompt_extend":true,"seed":12345,"size":"2688*1536"}}},"schema":{"properties":{"n":{"default":1,"description":"Number of images to generate (1-6)","example":1,"maximum":6,"minimum":1,"type":"integer"},"negative_prompt":{"description":"Negative prompt describing unwanted content","example":"blurry, low quality","maxLength":500,"type":"string"},"prompt":{"description":"Image description text, supports Chinese and English","example":"A serene Japanese garden with cherry blossoms","maxLength":800,"minLength":1,"type":"string"},"prompt_extend":{"default":true,"description":"Enable intelligent prompt rewriting","example":true,"type":"boolean"},"seed":{"description":"Random seed for reproducible results","example":42,"maximum":2147483647,"minimum":0,"type":"integer"},"size":{"default":"2048*2048","description":"Image size (format: width*height). Supports larger resolutions than plus/max series","enum":["2688*1536","2368*1728","2048*2048","1728*2368","1536*2688"],"example":"2048*2048","type":"string"}},"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":"Qwen Image 2.0","tags":["Qwen Image"],"x-mint":{"href":"alibaba/qwen-image-2-0"}}}