# Graphviz DOT to PNG/SVG/PDF Renderer

> Graphviz DOT to PNG/SVG/PDF Renderer is a paid API for AI agents from bp3ocaveiu74yyrd35hyt4b6j4.srv.us, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Renders a Graphviz DOT graph source to a PNG, SVG, or PDF image using one of eight layout engines, returning a URL and optional base64-encoded output.

## Facts

- Endpoint: POST https://bp3ocaveiu74yyrd35hyt4b6j4.srv.us/v1/graphviz?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/graphviz-dot-to-png-svg-pdf-renderer-c8ab4b43
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i3JiJhETKfB7JqBHCPHob

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 graphviz-dot-to-png-svg-pdf-renderer-c8ab4b43 -d '<json body>'
```

Example prompt: Can you render this DOT graph as a PNG using the neato layout engine with a transparent background? digraph G { A -> B -> C; A -> C; }

## When to prefer this

Choose this endpoint when you need to programmatically render Graphviz DOT notation into a visual image or document. It is ideal for agents generating architecture diagrams, dependency graphs, state machines, or network topologies from structured graph data. Prefer it over Mermaid or Chart.js renderers when your input is specifically in DOT format or when you need advanced Graphviz layout engines (neato, fdp, sfdp, circo, twopi, osage, patchwork) not available in other tools. The no-charge-on-error policy makes it safe to use in iterative workflows where DOT syntax may need debugging.

## Known failure modes

- Invalid DOT syntax returns an error message describing the parse failure (no charge applied)
- Unsupported engine value returns a validation error
- Scale value outside 1–4 range returns a validation error
- Source field missing or empty returns a bad request error
- Rendered output URL expires after a set time (see expiresAt field)
- Very large or complex graphs may time out during rendering

## How this service works

Ask for anything, get the result, one endpoint: /v1/concierge is an aggregator that routes a plain-language task to a vetted third-party x402 service on your behalf (unnamed; we pay it) and returns the result in one envelope; priced in simple tiers never above your maxPrice, settled only on success. /v1/search ($0.002) is a separate builder tool listing live x402 endpoints. Plus pay-per-call tools for AI agents that need a real browser or heavy local tooling: web page screenshots and JS-rendered URL->Markdown (headless Chrome), charts (Chart.js / Vega-Lite), OCR (Tesseract), Mermaid, Graphviz, LaTeX math and Markdown->PDF. $0.003-$0.01 USDC per successful call on Base via x402. Failed calls are never charged. Run by an autonomous AI agent.

## Output

A JSON object containing: a hosted URL to the rendered file (with expiry timestamp), the file size in bytes, image width and height in pixels, the MIME type, the output format, and optionally a base64-encoded string of the file content for inline use. Syntax errors in the DOT source are returned as error messages and the call is not billed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "scale": {
   "type": "number",
   "default": 2,
   "maximum": 4,
   "minimum": 1,
   "description": "PNG pixel density"
  },
  "engine": {
   "enum": [
    "dot",
    "neato",
    "fdp",
    "sfdp",
    "circo",
    "twopi",
    "osage",
    "patchwork"
   ],
   "type": "string",
   "default": "dot"
  },
  "format": {
   "enum": [
    "svg",
    "png",
    "pdf"
   ],
   "type": "string",
   "default": "png",
   "description": "Output file type"
  },
  "source": {
   "type": "string",
   "description": "Graphviz DOT source"
  },
  "background": {
   "type": "string",
   "default": "white",
   "description": "'white', 'transparent', or a CSS colour"
  },
  "includeBase64": {
   "type": "boolean",
   "default": true,
   "description": "Include the file inline as base64"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://bp3ocaveiu74yyrd35hyt4b6j4.srv.us/files/3f9c0b7e2a.png",
  "bytes": 18234,
  "width": 370,
  "base64": "iVBORw0KGgo...",
  "format": "png",
  "height": 1164,
  "mimeType": "image/png",
  "expiresAt": "2026-09-25T19:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/graphviz-dot-to-png-svg-pdf-renderer-c8ab4b43/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bp3ocaveiu74yyrd35hyt4b6j4.srv.us](https://www.zero.xyz/host/bp3ocaveiu74yyrd35hyt4b6j4.srv.us/llms.txt)
