{"slug":"x402-freeq-one-tools-mermaid-d0b733","title":"Mermaid Diagram Renderer","host":"x402.freeq.one","method":"POST","resource":"https://x402.freeq.one/tools/mermaid","category":"image","description":"Mermaid Diagram Renderer: Render a Mermaid diagram to an image (PNG or SVG). Returns a base64-encoded image (MCP content type image). Options: format (png|svg), theme (default|dark|forest|neutral), scale (1-4, PNG only). Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/merma","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":891,"reported_calls_30d":13,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"code":"graph TD\n  A[Client] -->|402| B[x402 Gateway]\n  B -->|settle| C[USDC on Base]\n  B -->|forward| D[Upstream API]","format":"png","scale":2,"theme":"default"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"description":"JSON request body. See GET /tools for the parameter catalog.","properties":{"code":{"description":"Mermaid diagram source code, e.g. 'graph TD; A-->B'. Max 50000 chars.","example":"graph TD\n  A[Client] -->|402| B[x402 Gateway]\n  B -->|settle| C[USDC on Base]\n  B -->|forward| D[Upstream API]","type":"string"},"format":{"description":"Output format (default png). SVG returns vector text.","enum":["png","svg"],"example":"svg","type":"string"},"scale":{"description":"Raster scale 1-4, PNG only (default 2).","example":2,"type":"number"},"theme":{"description":"Mermaid theme (default 'default').","enum":["default","dark","forest","neutral"],"example":"default","type":"string"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"description":{"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"mcpServerUrl":{"type":"string"},"method":{"enum":["POST"],"type":"string"},"queryParams":{"additionalProperties":{"type":"string"},"type":"object"},"toolName":{"type":"string"},"transport":{"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"result":{"description":"Tool output (JSON)"}},"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":891,"error":null}],"description_full":"Mermaid Diagram Renderer: Render a Mermaid diagram to an image (PNG or SVG). Returns a base64-encoded image (MCP content type image). Options: format (png|svg), theme (default|dark|forest|neutral), scale (1-4, PNG only). Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/mermaid.","last_updated":"2026-09-29T06:04:43.397Z","schemes":["exact"]}