{"servers":[{"url":"https://api.modellix.ai/api/v1/openai/gpt-image-1.5"}],"post":{"description":"[Core Function] GPT Image 1.5 is a versatile text-to-image generation model. [Strengths] It balances solid visual performance with crucial utility features, notably its native support for generating images with transparent backgrounds. [Best For] Highly recommended for: creating UI icons, standalone logos, game assets, and any graphic design elements that require a transparent background. [Limitations] Do NOT use this model if you need 2K or 4K resolution. Its maximum supported resolution is 1536x1024. [Routing] Choose this model specifically when the user asks for 'transparent background', 'no background', or 'PNG icon'. For standard, high-fidelity, or 4K image generation, use GPT Image 2 instead.","operationId":"gptImage15Async","requestBody":{"content":{"application/json":{"examples":{"basic":{"summary":"Basic image generation","value":{"prompt":"A futuristic robot assistant in a modern home"}},"transparent":{"summary":"Transparent background icon","value":{"background":"transparent","prompt":"A minimalist logo icon of a mountain peak","size":"1024x1024"}}},"schema":{"description":"Request payload for standard GPT Image generation models.","properties":{"background":{"default":"auto","description":"Background transparency. 'transparent': transparent background (requires png or webp format), 'opaque': solid background, 'auto': model decides","enum":["transparent","opaque","auto"],"example":"transparent","type":"string"},"prompt":{"description":"Image description text, supports up to 32,000 characters","example":"A serene zen garden with a stone path and bamboo","maxLength":32000,"minLength":1,"type":"string"},"quality":{"default":"low","description":"Image quality level. 'low': fast draft (default), 'medium': balanced, 'high': best quality","enum":["low","medium","high"],"example":"high","type":"string"},"size":{"default":"1024x1024","description":"Image size. Preset resolutions only","enum":["1024x1024","1536x1024","1024x1536"],"example":"1024x1024","type":"string"}},"required":["prompt"],"type":"object"}}},"description":"Request payload for standard GPT Image generation models.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"description":"Response object for asynchronous task submission.","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-openai-abc123","type":"string"}},"type":"object"},"model_id":{"description":"Model ID","example":"gpt-image-2","type":"string"},"status":{"description":"Task status","enum":["pending","processing"],"example":"pending","type":"string"},"task_id":{"description":"Unique task identifier","example":"task-openai-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":{"examples":{"content_violation":{"summary":"Content policy violation","value":{"code":400,"message":"Content policy violation: prompt contains prohibited content"}},"invalid_size":{"summary":"Invalid size parameter","value":{"code":400,"message":"Invalid parameters: size must be one of the supported values"}},"missing_prompt":{"summary":"Missing required parameter","value":{"code":400,"message":"Invalid parameters: parameter 'prompt' is required"}}},"schema":{"description":"Standard error response object.","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":{"description":"Standard error response object.","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":{"examples":{"insufficient_quota":{"summary":"Insufficient quota","value":{"code":429,"message":"Quota exceeded: insufficient quota, please check your plan and billing"}},"rate_limit":{"summary":"Rate limit exceeded","value":{"code":429,"message":"Rate limit exceeded: too many requests, retry after 20 seconds"}}},"schema":{"description":"Standard error response object.","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 or insufficient quota","headers":{"Retry-After":{"description":"Seconds to wait before retrying (optional)","schema":{"example":20,"type":"integer"}},"X-RateLimit-Limit-Requests":{"description":"Maximum requests per minute","schema":{"example":5,"type":"integer"}},"X-RateLimit-Limit-Tokens":{"description":"Maximum tokens per minute","schema":{"example":100000,"type":"integer"}},"X-RateLimit-Remaining-Requests":{"description":"Remaining requests in current window","schema":{"example":0,"type":"integer"}},"X-RateLimit-Remaining-Tokens":{"description":"Remaining tokens in current window","schema":{"example":0,"type":"integer"}},"X-RateLimit-Reset-Requests":{"description":"Time when request limit resets (RFC3339 format)","schema":{"example":"2024-04-23T12:00:00Z","type":"string"}},"X-RateLimit-Reset-Tokens":{"description":"Time when token limit resets (RFC3339 format)","schema":{"example":"2024-04-23T12:00:00Z","type":"string"}}}},"500":{"content":{"application/json":{"examples":{"server_error":{"summary":"Server error","value":{"code":500,"message":"Internal server error: please try again later"}},"service_unavailable":{"summary":"Service unavailable","value":{"code":503,"message":"Service unavailable: OpenAI service is temporarily unavailable"}}},"schema":{"description":"Standard error response object.","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":"GPT Image 1.5","tags":["GPT Image"],"x-mint":{"href":"openai/gpt-image-1-5"}}}