# Anokha Web Tools – Graphviz Diagram Renderer

> Anokha Web Tools – Graphviz Diagram Renderer is a paid API for AI agents from tools.anokha.space, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Renders a Graphviz DOT source string into an SVG, PNG, or PDF diagram using a chosen layout engine, returning a hosted file URL

## Facts

- Endpoint: POST https://tools.anokha.space/v1/diagram?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anokha-web-tools-graphviz-diagram-renderer-318ab9cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7uQAkt8ho3pZYOCALQCdL

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 anokha-web-tools-graphviz-diagram-renderer-318ab9cf -d '<json body>'
```

Example prompt: Can you render this Graphviz DOT source into an SVG using the dot layout engine? `digraph G { A -> B -> C; A -> C; }` — I need a hosted URL I can embed in a report.

## When to prefer this

Choose this endpoint when you need to programmatically render Graphviz DOT notation into a hosted image or PDF file without managing a Graphviz installation, and you want a pay-per-call model with no API key using USDC on Base. It is ideal for AI agents that generate DOT source dynamically and need an immediately embeddable URL.

## Known failure modes

- Invalid or malformed DOT source causes a parse error response
- Unsupported engine or format enum value results in a 400 bad request
- Payment failure via x402/USDC on Base blocks the call
- Large or complex graphs may time out during rendering
- Expired file URL is returned after the expiry date is reached

## How this service works

Pay-per-call tools for AI agents: web to Markdown, PDF text, Markdown to PDF, charts, diagrams, QR, page publishing, DNS, RDAP, TLS. x402, USDC on Base, no API key.

## Output

A JSON object containing: a hosted URL pointing to the rendered diagram file (SVG, PNG, or PDF), the file size in bytes, an expiry date after which the file is no longer available, and the MIME content type of the output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dot": {
   "type": "string",
   "description": "Graphviz DOT source"
  },
  "engine": {
   "enum": [
    "dot",
    "neato",
    "fdp",
    "circo",
    "twopi"
   ],
   "type": "string"
  },
  "format": {
   "enum": [
    "svg",
    "png",
    "pdf"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://tools.anokha.space/f/abc123def456.svg",
  "bytes": 20480,
  "expires": "2026-10-25T00:00:00Z",
  "content_type": "image/svg+xml"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anokha-web-tools-graphviz-diagram-renderer-318ab9cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.anokha.space](https://www.zero.xyz/host/tools.anokha.space/llms.txt)
