{"servers":[{"url":"https://api.modellix.ai/api/v1/minimax/minimax-image-01-i2i"}],"post":{"description":"[Core Function] MiniMax Image-01 I2I is an image-to-image editing and variation model. [Strengths] It excels at generating new images based on a text prompt while structurally referencing one or more input images. [Best For] Highly recommended for: style transfer, generating variations of existing artwork, and structurally guided image creation. [Limitations] Do NOT use this model if you want to generate video or if you do not have a reference image. [Routing] Use this model when the user provides a reference image and a text prompt to generate a new image.","operationId":"minimaxImage01I2IAsync","requestBody":{"content":{"application/json":{"examples":{"base64_reference":{"summary":"With Base64 reference image","value":{"aspect_ratio":"1:1","prompt":"Portrait in artistic style","seed":12345,"subject_reference_images":["data:image/jpeg;base64,/9j/4AAQSkZJRg..."]}},"basic":{"summary":"Basic image-to-image generation","value":{"prompt":"A girl in futuristic style","subject_reference_images":["https://example.com/reference.jpg"]}},"custom_resolution":{"summary":"With custom width and height","value":{"height":1024,"prompt":"Cyberpunk style portrait","seed":42,"subject_reference_images":["https://example.com/reference.jpg"],"width":1024}},"multiple_references":{"summary":"Multiple reference images","value":{"aspect_ratio":"4:3","n":3,"prompt":"Group photo in modern office","subject_reference_images":["https://example.com/person1.jpg","https://example.com/person2.jpg"]}},"with_aspect_ratio":{"summary":"With aspect ratio","value":{"aspect_ratio":"16:9","n":2,"prompt":"A girl looking into the distance from a library window","prompt_optimizer":true,"subject_reference_images":["https://example.com/reference.jpg"]}}},"schema":{"properties":{"aspect_ratio":{"default":"1:1","description":"Image aspect ratio. If both aspect_ratio and width/height are provided, aspect_ratio takes priority","enum":["1:1","16:9","4:3","3:2","2:3","3:4","9:16","21:9"],"example":"1:1","type":"string"},"height":{"description":"Image height in pixels (must be used with width). Must be divisible by 8. If aspect_ratio is provided, width/height will be ignored","example":1024,"maximum":2048,"minimum":512,"type":"integer"},"n":{"default":1,"description":"Number of images to generate per request","example":1,"maximum":9,"minimum":1,"type":"integer"},"prompt":{"description":"Image description text, supports Chinese and English","example":"A girl in futuristic style","maxLength":1500,"minLength":1,"type":"string"},"prompt_optimizer":{"default":false,"description":"Enable automatic prompt optimization to improve generation quality","example":false,"type":"boolean"},"seed":{"description":"Random seed for reproducible results. Use the same seed with same parameters to generate identical images","example":42,"minimum":0,"type":"integer"},"subject_reference_images":{"description":"Reference image URLs for image-to-image generation. Supports public HTTPS URLs or Base64 Data URLs","example":["https://example.com/reference.jpg"],"items":{"description":"Image URL or Base64 Data URL (data:image/jpeg;base64,...). Image requirements: JPG/JPEG/PNG format, <10MB, best with single front-facing portrait photo","example":"https://example.com/reference.jpg","type":"string"},"maxItems":10,"minItems":1,"type":"array"},"width":{"description":"Image width in pixels (must be used with height). Must be divisible by 8. If aspect_ratio is provided, width/height will be ignored","example":1024,"maximum":2048,"minimum":512,"type":"integer"}},"required":["prompt","subject_reference_images"],"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-abc123"},"model_id":"model-123","status":"pending","task_id":"task-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-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 'subject_reference_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 'subject_reference' 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 'subject_reference' 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: 10 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 'subject_reference' 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":10,"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 'subject_reference' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"MiniMax Image-01 I2I","x-mint":{"href":"minimax/minimax-image-01-i2i"}}}