# render402 Chart Renderer (Chart.js / Vega-Lite)

> render402 Chart Renderer (Chart.js / Vega-Lite) is a paid API for AI agents from bp3ocaveiu74yyrd35hyt4b6j4.srv.us, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Renders a Chart.js v4 config or Vega-Lite v5 spec into a PNG, SVG, or PDF image, offline and deterministically, using only inline data.

## Facts

- Endpoint: POST https://bp3ocaveiu74yyrd35hyt4b6j4.srv.us/v1/chart?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/render402-chart-renderer-chart-js-vega-lite-4971ceca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-9wmLCmdE7FLgbwcpe2UB

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 render402-chart-renderer-chart-js-vega-lite-4971ceca -d '<json body>'
```

Example prompt: Render this Chart.js config as a PNG — it's a bar chart showing monthly sales data for Q1, 800px wide by 450px tall with a white background: {type:'bar', data:{labels:['Jan','Feb','Mar'], datasets:[{label:'Sales', data:[120,95,140]}]}}

## When to prefer this

Choose this endpoint when you need a fast, deterministic, server-side chart render from a structured Chart.js v4 or Vega-Lite v5 config with inline data — especially when reproducibility matters, no browser is available, or you need the result as a base64 blob for embedding. Prefer it over screenshot-based chart rendering when you already have a chart config rather than a live URL.

## Known failure modes

- Invalid Chart.js config returns the Chart.js library error message (no charge)
- Invalid Vega-Lite spec returns the Vega-Lite library error (no charge)
- SVG format requested with Chart.js (only supported for Vega-Lite) returns an error
- Scale value outside 1–4 range returns a validation error
- External data URLs in spec rejected (only inline data.values supported)
- Image URL expires after the stated expiry timestamp

## 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 URL to the rendered image file (temporary, with expiry timestamp), the image as a base64-encoded string, the output format (png/svg/pdf), MIME type, pixel dimensions (width and height), and file size in bytes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "scale": {
   "type": "number",
   "default": 2,
   "maximum": 4,
   "minimum": 1
  },
  "width": {
   "type": "integer",
   "default": 800,
   "description": "Chart.js canvas width (CSS px)"
  },
  "format": {
   "enum": [
    "png",
    "svg",
    "pdf"
   ],
   "type": "string",
   "default": "png",
   "description": "svg only with vegaLite"
  },
  "height": {
   "type": "integer",
   "default": 450
  },
  "chartjs": {
   "type": "object",
   "description": "Chart.js config {type, data, options} (JSON; no functions)"
  },
  "vegaLite": {
   "type": "object",
   "description": "Vega-Lite spec with inline data.values"
  },
  "background": {
   "type": "string",
   "default": "white"
  },
  "includeBase64": {
   "type": "boolean",
   "default": true
  }
 }
}
```

## 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/render402-chart-renderer-chart-js-vega-lite-4971ceca/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)
