{"success":true,"data":{"id":"svc_diagram_render_01","slug":"diagram-render","name":"Diagram Rendering (Mermaid)","description":"Render Mermaid diagram code to SVG and/or PNG: flowchart, sequence, class, state, ER, gantt, pie, mindmap, timeline and more. Invalid syntax returns HTTP 400 with the Mermaid parse error (not charged), so an agent can fix and retry. Params: code (Mermaid source, required), format (svg default, png or both), theme (default, dark, neutral, forest, base), width (200 to 4000, default 1200), background.","category":"visual","endpoint":"https://agentsvc.io/api/v1/proxy/diagram-render","price_usdc":0.006,"latency_p99_ms":6000,"input_schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"Mermaid diagram source"},"format":{"type":"string","enum":["svg","png","both"],"default":"svg"},"theme":{"type":"string","enum":["default","dark","neutral","forest","base"],"default":"default"},"width":{"type":"integer","minimum":200,"maximum":4000,"default":1200},"background":{"type":"string"}}},"output_schema":{"type":"object","properties":{"diagram_type":{"type":"string"},"theme":{"type":"string"},"svg":{"type":"string"},"svg_bytes":{"type":"integer"},"format":{"type":"string"}},"required":["diagram_type","format"],"example":{"diagram_type":"flowchart","theme":"default","svg":"<svg id=\"dccuoprioa\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 948.234375px;\" …","svg_bytes":13690,"format":"svg"}},"is_active":true,"provider":"agentsvc.io","tags":["mermaid","diagram","flowchart","svg","visualization"],"method":"POST","example_input":{"code":"flowchart LR\n  A[Agent] -->|HTTP 402| B(agentsvc.io)\n  B --> C{Paid?}\n  C -->|yes| D[JSON result]","format":"svg"},"price_atomic":"6000","price_display":"$0.006 USDC","try_url":"https://agentsvc.io/api/v1/try/diagram-render","try_limit_per_day":1,"info_url":"https://agentsvc.io/api/v1/services/diagram-render","page_url":"https://agentsvc.io/services/diagram-render","curl_example":"curl -X POST https://agentsvc.io/api/v1/proxy/diagram-render -H \"Content-Type: application/json\" -d '{\"code\":\"flowchart LR\\n  A[Agent] -->|HTTP 402| B(agentsvc.io)\\n  B --> C{Paid?}\\n  C -->|yes| D[JSON result]\",\"format\":\"svg\"}'","status":{"ok":true,"latency_ms":1314,"checked_at":"2026-10-06T16:26:25.724Z"}},"payment":{"protocol":"x402","x402_versions_accepted":[1,2],"scheme":"exact","network":"eip155:8453","network_v1":"base","chain_id":8453,"asset":"USDC","asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_decimals":6,"eip712_domain":{"name":"USD Coin","version":"2","chainId":8453,"verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"pay_to":"0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402","request_header_v2":"PAYMENT-SIGNATURE","request_header_v1":"X-PAYMENT","requirements_v2":"base64 JSON in the PAYMENT-REQUIRED response header of the 402","requirements_v1":"JSON body of the 402 (accepts[0])","receipt_header":"PAYMENT-RESPONSE (and X-PAYMENT-RESPONSE): base64 JSON with transaction hash","accounts_required":false,"api_keys_required":false,"settlement":"per call, on-chain, after the service succeeded. Failed calls are never charged."},"links":{"catalog":"https://agentsvc.io/api/v1/services","openapi":"https://agentsvc.io/openapi.json","llms_txt":"https://agentsvc.io/llms.txt","llms_full_txt":"https://agentsvc.io/llms-full.txt","agents_md":"https://agentsvc.io/AGENTS.md","skill_md":"https://agentsvc.io/SKILL.md","status":"https://agentsvc.io/api/v1/status","docs":"https://agentsvc.io/docs","mcp_server":"https://agentsvc.io/mcp-server.mjs","discovery":"https://agentsvc.io/.well-known/x402","agent_card":"https://agentsvc.io/.well-known/agent-card.json"}}