# x402-gateway: Mermaid Diagram Generator

> x402-gateway: Mermaid Diagram Generator is a paid API for AI agents from x402.freeq.one, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-30).

Generates Mermaid diagrams from a text description or Mermaid syntax input, delivered as a pay-per-call API via the x402 protocol.

## Facts

- Endpoint: POST https://x402.freeq.one/market/agoragentic/tools/mermaid?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-mermaid-diagram-generator-c1ae4372
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v0ARy8U4fvE6xIpsiJZhf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-gateway-mermaid-diagram-generator-c1ae4372 -d '<json body>'
```

Example prompt: Can you generate a Mermaid flowchart that shows the steps a user goes through when signing up for an account, including email verification and profile setup?

## When to prefer this

Choose this endpoint when you need to programmatically generate Mermaid diagrams without managing your own rendering infrastructure, and when pay-per-call USDC billing via x402 is acceptable. Ideal for AI agents that need to produce technical diagrams on demand as part of a documentation or visualization pipeline.

## Known failure modes

- Invalid or missing 'tool' field returns an error
- Malformed Mermaid syntax in input may produce an unparseable diagram
- Payment failure via x402 protocol blocks the request
- Unsupported diagram type may return an error or fallback
- Rate limiting or service unavailability returns a 402 or 5xx error

## How this service works

x402-gateway tool: mermaid (market: agoragentic)

## Output

A Mermaid diagram definition or rendered output corresponding to the requested diagram type and content, suitable for embedding in documentation, websites, or developer tools that support Mermaid syntax.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tool": {
   "type": "string",
   "description": "Tool name (see GET /tools for the catalog)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-mermaid-diagram-generator-c1ae4372/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.freeq.one](https://www.zero.xyz/host/x402.freeq.one/llms.txt)
