x402-gateway
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.
Offering
- Provider
- x402.freeq.one
- Method
- POST
- Offering type
- Api Endpoint
- Transport type
- http
- Category
- Creative
- Delivery
- Not provided
- Pricing model
- Not provided
- x402 version
- 2
Endpoint context
- URL
https://x402.freeq.one/tools/mermaid- MIME type
- application/json
- First seen
- 2026-10-16T01:50:06.715Z
- Last seen
- Tags
- MCP, pay-per-call, X402, USDC, Base
Payment pricing
x402 payment terms are the authoritative price for calling this endpoint.
- Payment option 1
- 0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"payTo": "0x90b0dC893406d6eA63bb077ED59F5e8340f98d84"
}
]Observed health
- Status
- Healthy
- Latest latency
- 97 ms
- Average latency
- 106 ms
- HTTP status
- 204
- Last checked
- Reachability
- 100% over 13 checks
Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.
Input schema
{
"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 schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method",
"bodyType",
"body"
],
"properties": {
"body": {
"type": "object",
"properties": {
"code": {
"type": "string",
"example": "graph TD\n A[Client] -->|402| B[x402 Gateway]\n B -->|settle| C[USDC on Base]\n B -->|forward| D[Upstream API]",
"description": "Mermaid diagram source code, e.g. 'graph TD; A-->B'. Max 50000 chars."
},
"scale": {
"type": "number",
"example": 2,
"description": "Raster scale 1-4, PNG only (default 2)."
},
"theme": {
"enum": [
"default",
"dark",
"forest",
"neutral"
],
"type": "string",
"example": "default",
"description": "Mermaid theme (default 'default')."
},
"format": {
"enum": [
"png",
"svg"
],
"type": "string",
"example": "svg",
"description": "Output format (default png). SVG returns vector text."
}
},
"description": "JSON request body. See GET /tools for the parameter catalog."
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"toolName": {
"type": "string"
},
"transport": {
"type": "string"
},
"description": {
"type": "string"
},
"queryParams": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"mcpServerUrl": {
"type": "string"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"const": "json"
},
"example": {
"type": "object",
"properties": {
"content": {
"type": "array"
},
"isError": {
"type": "boolean"
},
"structuredContent": {
"type": "object"
}
}
}
}
}
}
}