# Saylor Innovations Diagram Renderer

> Saylor Innovations Diagram Renderer is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Renders diagram source code (Mermaid, Graphviz, PlantUML, D2, and more) into SVG or PNG images

## Facts

- Endpoint: GET https://saylorinnovations.com/api/diagram/render?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-diagram-renderer-27638893
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IlmM8dwIV5jpRmWkfuouP

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 saylor-innovations-diagram-renderer-27638893
```

Example prompt: Can you render this Mermaid flowchart source code into an SVG for me? Here's the diagram text: `graph TD; A-->B; A-->C; B-->D; C-->D;`

## When to prefer this

Choose this endpoint when you need to programmatically convert textual diagram source code (Mermaid, Graphviz DOT, PlantUML, D2, C4PlantUML, BPMN, ERD, nomnoml) into a visual SVG or PNG image, especially in agentic or automated pipelines where paying per-call via x402 micropayments is acceptable. Prefer it when you need multi-format diagram support in a single API rather than integrating separate rendering libraries.

## Known failure modes

- Invalid or malformed diagram source syntax returns rendered: false with no image output
- Unsupported diagram type string causes a parameter error
- Missing required 'source' query parameter results in a bad request response
- Very large or complex diagrams may time out or return an error
- Network or upstream rendering engine errors may cause intermittent failures

## How this service works

Render Diagrams: Mermaid, Graphviz, PlantUML, D2 → SVG/PNG — Developer Tools

## Output

Returns a JSON object indicating whether rendering succeeded (rendered: true/false), the SVG markup as a string if applicable, and image_urls containing links to the generated image formats (e.g. PNG). On success the SVG string can be embedded directly into HTML or documentation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST",
      "PUT",
      "PATCH",
      "DELETE",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "type": {
       "type": "string",
       "description": "optional mermaid | graphviz | plantuml | d2 | c4plantuml | bpmn | erd | nomnoml ... default mermaid (query)"
      },
      "source": {
       "type": "string",
       "description": "diagram source text (query)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "rendered"
     ],
     "properties": {
      "svg": {
       "type": "string"
      },
      "rendered": {
       "type": "boolean"
      },
      "image_urls": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-diagram-renderer-27638893/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
