{"servers":[{"url":"https://api.modellix.ai/api/v1/bytedance/seedream-5.5-edit"}],"post":{"description":"ByteDance's image editing model for consistent visual revisions, reference-guided compositions, and reusable design layers. It blends multiple references, produces transparent assets, and separates a single image into layers with rich-text recognition for regular text.","operationId":"seedream55EditI2iAsync","requestBody":{"content":{"application/json":{"examples":{"automatic_decomposition":{"summary":"Automatic decomposition without a prompt","value":{"image":"https://example.com/poster.png","layer_decomposition":true}},"multi_reference":{"summary":"Combine references into a transparent image","value":{"background":"transparent","image":["https://example.com/product.png","https://example.com/ornament.png"],"output_format":"png","prompt":"Combine the product from Image 1 with the ornament from Image 2 on a transparent background","size":"1.5K"}},"rich_text_ocr":{"summary":"Decompose a poster and preserve text styles","value":{"image":"https://example.com/poster.png","layer_decomposition":true,"layer_decomposition_max_images":100,"layer_decomposition_text_recognition":true,"output_format":"png","prompt":"Separate the text and visual elements into layers","safety_identifier":"hashed-user-1","size":"2K"}},"single_edit":{"summary":"Edit one image","value":{"image":"https://example.com/product.png","prompt":"Retouch the product and preserve its shape"}}},"schema":{"additionalProperties":false,"allOf":[{"not":{"properties":{"background":{"const":"transparent"},"output_format":{"const":"jpeg"}},"required":["background","output_format"]}}],"oneOf":[{"not":{"anyOf":[{"required":["layer_decomposition_max_images"]},{"required":["layer_decomposition_text_recognition"]}]},"properties":{"layer_decomposition":{"const":false},"prompt":{"pattern":"\\S"}},"required":["prompt"]},{"not":{"required":["background"]},"properties":{"image":{"oneOf":[{"minLength":1,"type":"string"},{"items":{"minLength":1,"type":"string"},"maxItems":1,"minItems":1,"type":"array"}]},"layer_decomposition":{"const":true}},"required":["layer_decomposition"]}],"properties":{"background":{"default":"auto","description":"Generation background mode. transparent produces RGBA and requires PNG. Omit this parameter entirely for layer decomposition; its default is not sent in that mode.","enum":["auto","transparent","opaque"],"type":"string"},"image":{"description":"One accessible image URL or an array of 1–10 URLs. Each image: at most 30 MB, aspect ratio 1/16–16. Generation accepts JPEG, PNG, WEBP, BMP, TIFF, GIF, HEIC, HEIF; width and height greater than 14 px and 196–36000000 total pixels. Decomposition accepts one PNG/JPEG only, with 262144–36000000 total pixels.","example":"https://example.com/input.png","oneOf":[{"minLength":1,"type":"string"},{"items":{"minLength":1,"type":"string"},"maxItems":10,"minItems":1,"type":"array"}]},"layer_decomposition":{"default":false,"description":"Split one input image into a base image and up to 99 transparent PNG layers. Omit background in this mode. The prompt becomes optional.","enum":[true,false],"type":"boolean"},"layer_decomposition_max_images":{"default":30,"description":"Maximum total output images including the base. Requires layer_decomposition=true. Mapped to upstream layer_decomposition_options.max_images.","maximum":100,"minimum":2,"type":"integer"},"layer_decomposition_text_recognition":{"default":false,"description":"Request rich-text OCR for regular text layers. Requires layer_decomposition=true. Mapped to upstream layer_decomposition_options.text_recognition.","enum":[true,false],"type":"boolean"},"optimize_prompt_mode":{"default":"standard","description":"Prompt optimization mode. Seedream 5.5 supports standard only.","enum":["standard"],"type":"string"},"output_format":{"default":"png","description":"Output file format. Transparent backgrounds require PNG. In decomposition this affects only the base image; all layers remain PNG.","enum":["png","jpeg"],"type":"string"},"prompt":{"description":"Describe the desired image or editing instruction. Up to 10000 characters. Keep the instructions focused; for automatic layer decomposition this field may be omitted.","example":"A detailed landscape in a 16:9 composition","maxLength":10000,"minLength":1,"type":"string"},"safety_identifier":{"description":"Optional stable English identifier for the end user. Prefer a hash instead of personal information. The upstream value is preserved in the completed result.","maxLength":64,"minLength":1,"pattern":"^[\\x20-\\x7E]+$","type":"string"},"size":{"default":"2K","description":"Output resolution preset. Describe the aspect ratio in the prompt. Custom dimensions, auto, and 4K are rejected, including in layer decomposition.","enum":["1K","1.5K","2K"],"type":"string"}},"required":["image"],"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"}},"summary":"Seedream 5.5 Edit","x-mint":{"href":"bytedance/seedream-5-5-edit"}}}