{"operations":[{"id":"remove-background","method":"POST","path":"/api/v1/remove-background","inputs":["image"],"output":"image/png, image/webp or image/jpeg","tools":["remove-background","remove-white-background","green-screen","change-background-color","transparent-png"],"parameters":[{"name":"mode","type":"string","values":["auto","solid","chroma","rect"],"default":"auto","description":"auto = background touching the border; solid = one flat colour; chroma = green/blue screen; rect = GrabCut inside rect"},{"name":"color","type":"color","description":"solid: background colour (detected when missing); chroma: custom key colour (#rrggbb)"},{"name":"key","type":"string","values":["green","blue"],"default":"green","description":"chroma: screen colour"},{"name":"tolerance","type":"integer","min":0,"max":100,"description":"Defaults: auto 18, solid 12, chroma 40"},{"name":"softness","type":"integer","min":0,"max":100,"default":20,"description":"chroma: width of the soft transition"},{"name":"contiguous","type":"boolean","default":true,"description":"solid: only background connected to the border"},{"name":"rect","type":"list","description":"rect mode (required): x,y,width,height in pixels"},{"name":"grow","type":"integer","min":-50,"max":50,"default":0,"description":"Grow (+) or shrink (−) the kept area (px)"},{"name":"feather","type":"number","min":0,"max":50,"default":0,"description":"Soften the edge (px)"},{"name":"fillHoles","type":"boolean","default":false,"description":"Fill holes enclosed by the object"},{"name":"removeIslands","type":"integer","min":0,"max":1000000,"default":0,"description":"Drop kept specks smaller than this many pixels"},{"name":"bg","type":"string","default":"transparent","description":"transparent, #rrggbb or blur"},{"name":"blur","type":"integer","min":1,"max":50,"default":12,"description":"Blur radius for bg=blur"},{"name":"decontaminate","type":"boolean","default":true,"description":"Remove background colour from semi-transparent edges"},{"name":"trim","type":"boolean","default":false,"description":"Crop to the object (not with bg=blur)"},{"name":"padding","type":"integer","min":0,"max":1000,"default":0,"description":"Margin after trim (px)"},{"name":"format","type":"string","values":["png","webp","jpg"],"default":"png","description":"jpg needs an opaque background"},{"name":"quality","type":"integer","min":1,"max":100,"default":90,"description":"webp/jpg quality"}]},{"id":"strip-metadata","method":"POST","path":"/api/v1/strip-metadata","inputs":["image","pdf","office"],"output":"same format as the input","tools":["remove-exif","remove-pdf-metadata","remove-document-metadata"],"parameters":[{"name":"keepOrientation","type":"boolean","default":true,"description":"Keep the EXIF orientation so photos stay upright"},{"name":"keepColorProfile","type":"boolean","default":true,"description":"Keep the ICC colour profile"}]},{"id":"inspect-metadata","method":"POST","path":"/api/v1/inspect-metadata","inputs":["image","pdf","office"],"output":"application/json","tools":["remove-exif","remove-pdf-metadata","remove-document-metadata"],"parameters":[]},{"id":"pdf-remove-pages","method":"POST","path":"/api/v1/pdf/remove-pages","inputs":["pdf"],"output":"application/pdf","tools":["remove-pdf-pages"],"parameters":[{"name":"pages","type":"list","required":true,"description":"1-based pages and ranges to delete, e.g. 1,3-5"}]},{"id":"pdf-remove-blank-pages","method":"POST","path":"/api/v1/pdf/remove-blank-pages","inputs":["pdf"],"output":"application/pdf (X-Removed-Pages header)","tools":["remove-blank-pages"],"parameters":[]},{"id":"pdf-clean","method":"POST","path":"/api/v1/pdf/clean","inputs":["pdf"],"output":"application/pdf","tools":["remove-pdf-parts","remove-pdf-annotations","remove-pdf-links","remove-pdf-forms","remove-pdf-attachments","remove-pdf-javascript","remove-pdf-bookmarks"],"parameters":[{"name":"parts","type":"list","values":["annotations","links","forms","attachments","javascript","bookmarks","metadata","thumbnails"],"default":"annotations,links,forms,attachments,javascript,metadata","description":"Parts to remove"}]},{"id":"text","method":"POST","path":"/api/v1/text","inputs":["text"],"output":"text/plain; charset=utf-8 (X-Removed-Count header)","tools":["remove-duplicate-lines","remove-empty-lines","remove-line-breaks","remove-extra-spaces","remove-accents","remove-emojis","remove-html-tags","remove-punctuation","remove-numbers","remove-urls","redact-emails-and-phones"],"parameters":[{"name":"ops","type":"list","values":["duplicate-lines","empty-lines","line-breaks","extra-spaces","leading-trailing-spaces","accents","emojis","html-tags","punctuation","numbers","urls","emails","phones","non-ascii"],"required":true,"description":"Operations applied in order"}]}],"limits":{"plan":"pro","monthlyOperations":2000,"maxFileBytes":15728640,"maxImagePixels":16000000,"maxTextBytes":2097152,"perMinute":30},"auth":"Authorization: Bearer asc_… (key from the account page; scopes: convert = processing, usage = GET /api/v1/usage)","docs":"/api/docs (OpenAPI 3.1: /api/openapi.json)"}