{"slug":"baconservices-com-api-agent-commerce-v1-capabilities-svg-cle-4ae997","title":"Use when an agent needs an SVG made safe and small","host":"baconservices.com","method":"POST","resource":"https://baconservices.com/api/agent-commerce/v1/capabilities/svg-cleanup/execute","category":"code","description":"Use when an agent needs an SVG made safe and small: strips scripts and editor junk, rounds paths, returns the cleaned SVG with a report.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":975,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"keep_ids":false,"precision":3,"simplify":"none","svg_url":"https://baconservices.com/assets/img/ai-vector/bacon-mascot.svg"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"description":"Give exactly one of svg or svg_url. The same request body must be sent again with the PAYMENT-SIGNATURE header.","properties":{"keep_ids":{"default":false,"description":"Keep every id and class, for an SVG a page's own CSS or script uses.","type":"boolean"},"precision":{"default":3,"description":"Decimals kept on coordinates. A drawing under 100 units across keeps one more per factor of ten.","maximum":6,"minimum":1,"type":"integer"},"simplify":{"default":"none","description":"none: the drawing looks the same. light or strong: points on straight runs move within 0.05% or 0.2% of the drawing's diagonal.","enum":["none","light","strong"],"type":"string"},"svg":{"description":"The SVG markup itself, UTF-8, at most 1 MB.","type":"string"},"svg_url":{"description":"A public https URL of an SVG file, at most 1 MB, served as image/svg+xml, application/xml, text/xml, text/plain.","format":"uri","maxLength":2048,"pattern":"^https://","type":"string"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"headers":{"type":"object"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"queryParams":{"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1173,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":490,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1080,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1515,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":975,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":393,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":453,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1197,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1093,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1206,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":576,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":446,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1343,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1194,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":439,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":684,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":545,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":704,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":674,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":670,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":777,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1174,"error":null}],"description_full":"Use when an agent needs an SVG made safe and small: strips scripts and editor junk, rounds paths, returns the cleaned SVG with a report.","last_updated":"2026-11-05T06:34:20.148Z","schemes":["exact"]}