{"openapi":"3.1.0","info":{"title":"removebg.lol color-removal API","version":"1.1.0","description":"Server-side color matching for flat backgrounds. This API does not run the browser AI model. Matching subject colors may become transparent. The decoded image buffer limit is 25 MB; hosting request-body limits can be lower. The REST route applies a per-instance IP rate limit."},"servers":[{"url":"https://removebg.lol"}],"paths":{"/api/v1/remove":{"post":{"operationId":"removeBackground","summary":"Remove colors close to the background color","description":"Auto mode averages four corners. White, black, and green select a fixed target color. The algorithm changes alpha across the full image; it does not semantically segment objects or correct green spill.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"imageUrl":{"type":"string","format":"uri","description":"Public HTTP/HTTPS image URL; private targets are rejected. Remote download cap: 25 MB."},"imageBase64":{"type":"string","description":"Base64 image data, as an alternative to imageUrl."},"mode":{"type":"string","enum":["auto","white","black","green"],"default":"auto"},"tolerance":{"type":"integer","minimum":5,"maximum":100,"default":24}},"anyOf":[{"required":["imageUrl"]},{"required":["imageBase64"]}]}},"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"},"mode":{"type":"string","enum":["auto","white","black","green"],"default":"auto"},"tolerance":{"type":"integer","minimum":5,"maximum":100,"default":24}}}}}},"responses":{"200":{"description":"PNG at source dimensions. Set Accept: application/json to receive a PNG data URI and metadata.","content":{"image/png":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"width":{"type":"integer"},"height":{"type":"integer"},"format":{"type":"string","const":"png"},"sizeBytes":{"type":"integer"},"dataUri":{"type":"string"}}}}}},"400":{"description":"Missing input, invalid URL, or remote fetch rejected."},"413":{"description":"Input or remote download exceeds the size limit. Hosting may reject large request bodies earlier."},"429":{"description":"Per-instance IP request limit reached; retry after the indicated interval."},"500":{"description":"Decode or processing failure."}}}},"/api/v1/tools":{"get":{"operationId":"listToolAndGuides","summary":"List the shared browser tool and its practical guides","description":"The guide entries do not represent separate processing engines.","responses":{"200":{"description":"One browser tool and four guidance records.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"service":{"type":"string"},"description":{"type":"string"},"totalTools":{"type":"integer","const":1},"totalGuides":{"type":"integer"},"tools":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"modes":{"type":"array","items":{"type":"string"}}}}},"guides":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"category":{"type":"string","enum":["solid","ecommerce","design","photo"]},"description":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}}}}}}}}}}