{"servers":[{"url":"https://api.modellix.ai/api/v1/openai/gpt-image-2.5-sunburst-edit"}],"post":{"description":"[Core Function] GPT Image 2.5 Sunburst Edit is a quality-oriented image editing model. [Strengths] Supports up to 16 input images, optional mask-based local edits, resolution tiers up to 4K, and transparent backgrounds. [Best For] Product image changes, masked object replacements, and edits guided by multiple reference images. [Limitations] Do NOT use this for editing more than 16 input images or selecting arbitrary pixel dimensions. Exact input fidelity control is not exposed. [Routing] Choose this variant when image quality is the priority; use GPT Image 2.5 Flare Edit when speed is the priority.","operationId":"gptImage25SunburstEditAsync","requestBody":{"content":{"application/json":{"examples":{"basic":{"summary":"Basic image editing","value":{"images":["https://example.com/input.png"],"prompt":"Add a watercolor effect to this image"}},"masked_edit":{"summary":"Edit a masked region","value":{"aspect_ratio":"4:5","images":["https://example.com/input.png"],"mask":"https://example.com/mask.png","prompt":"Replace the red square with a green circle","quality":"high","resolution":"1K"}}},"schema":{"additionalProperties":false,"description":"Request payload shared by GPT Image 2.5 Sunburst Edit and Flare Edit.","properties":{"aspect_ratio":{"default":"1:1","description":"Output aspect ratio. Can be set independently of resolution; omitting it uses 1:1.","enum":["1:1","3:2","2:3","3:4","4:3","4:5","5:4","9:16","16:9","21:9"],"example":"16:9","type":"string"},"background":{"default":"auto","description":"Background mode: auto lets the model choose, opaque requests an opaque background, and transparent requests a transparent background with PNG output.","enum":["auto","opaque","transparent"],"example":"transparent","type":"string"},"images":{"description":"Input image URLs as a string array, with 1 to 16 images.","example":["https://example.com/input.png"],"items":{"format":"uri","minLength":1,"type":"string"},"maxItems":16,"minItems":1,"type":"array"},"mask":{"description":"Optional PNG mask URL for local editing. The mask must have an alpha channel and match the first input image's dimensions. Transparent areas indicate the area to edit.","example":"https://example.com/mask.png","format":"uri","minLength":1,"type":"string"},"prompt":{"description":"Description of the desired edits, from 1 to 32,000 Unicode characters.","example":"Replace the red square with a green circle","maxLength":32000,"minLength":1,"type":"string"},"quality":{"default":"low","description":"Output quality level. Defaults to low.","enum":["low","medium","high","xhigh","max"],"example":"high","type":"string"},"resolution":{"default":"1K","description":"Output resolution tier. Can be set independently of aspect_ratio; omitting it uses 1K. Pixel dimensions depend on both parameters: 1:1 + 1K gives 1024x1024, 1:1 + 4K gives 2880x2880, and 16:9 + 4K gives 3840x2160.","enum":["1K","2K","4K"],"example":"4K","type":"string"}},"required":["images","prompt"],"type":"object"}}},"description":"Request payload for GPT Image 2.5 Sunburst Edit.","required":true},"responses":{"200":{"content":{"application/json":{"example":{"code":0,"data":{"get_result":{"method":"GET","url":"https://api.modellix.ai/api/v1/tasks/12345678-1234-4234-8234-123456789abc"},"model_id":"openai/gpt-image-2.5-sunburst-edit","status":"pending","task_id":"12345678-1234-4234-8234-123456789abc"},"message":"success"},"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":{"model_id":{"description":"Model identifier used for this task","example":"gpt-image-2-edit","type":"string"},"status":{"description":"Task status","enum":["pending","processing","completed","failed"],"example":"pending","type":"string"},"task_id":{"description":"Unique task identifier for status polling","example":"task_abc123xyz","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. Poll the URL in data.get_result.url using [Query Task Result](/api/get-task-result) to retrieve the generated image."},"400":{"content":{"application/json":{"schema":{"description":"Standard error response object.","properties":{"code":{"description":"Error code","example":400,"type":"integer"},"details":{"additionalProperties":true,"description":"Additional error details","type":"object"},"message":{"description":"Error message","example":"Invalid request parameters","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Invalid request parameters"},"401":{"content":{"application/json":{"schema":{"description":"Standard error response object.","properties":{"code":{"description":"Error code","example":400,"type":"integer"},"details":{"additionalProperties":true,"description":"Additional error details","type":"object"},"message":{"description":"Error message","example":"Invalid request parameters","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Authentication required or invalid"},"429":{"content":{"application/json":{"schema":{"description":"Standard error response object.","properties":{"code":{"description":"Error code","example":400,"type":"integer"},"details":{"additionalProperties":true,"description":"Additional error details","type":"object"},"message":{"description":"Error message","example":"Invalid request parameters","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Rate limit exceeded"},"500":{"content":{"application/json":{"schema":{"description":"Standard error response object.","properties":{"code":{"description":"Error code","example":400,"type":"integer"},"details":{"additionalProperties":true,"description":"Additional error details","type":"object"},"message":{"description":"Error message","example":"Invalid request parameters","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"GPT Image 2.5 Sunburst Edit","tags":["GPT Image Edit"],"x-mint":{"href":"openai/gpt-image-2-5-sunburst-edit"}}}