← Back to all APIs

Mermaid

$0.005

Render a Mermaid diagram to an image (PNG or SVG). Returns a base64-encoded image. Options: format (png|svg), theme (default|dark|forest|neutral), scale (1-4, PNG only).

POST https://x402.freeq.one/tools/mermaid
Try it (x402 payment flow)
curl -X POST https://x402.freeq.one/tools/mermaid \ -H "Content-Type: application/json" \ -d '{"{param}": "{value}"}'

Without payment, the server returns 402 Payment Required with x402 challenge details. A paying agent signs a USDC transaction on Base and retries with the payment header.