# AgentSvc Chart Render

> AgentSvc Chart Render is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-10).

Renders a Chart.js configuration (bar, line, pie, doughnut, scatter, radar, polarArea, bubble) into a PNG image returned as base64.

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/chart-render?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-chart-render-ca8073f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-XKw1aw46dyyw_vzXSheZ

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 agentsvc-chart-render-ca8073f6 -d '<json body>'
```

Example prompt: Can you render a bar chart titled 'Monthly Revenue 2024' with months Jan through Jun on the x-axis and values [12000, 15000, 9800, 17200, 14300, 18900] as 'Revenue (USD)', at 1200 by 600 pixels with a white background, and give me the PNG?

## When to prefer this

Choose this endpoint when you need a server-side rendered chart image (PNG) from structured data or a Chart.js config, without requiring a browser, frontend framework, or chart library on the client. It is ideal for agents generating reports, emails, or documents that need embedded chart images. It supports all major Chart.js chart types and accepts both simplified label/dataset inputs and full Chart.js config objects.

## Known failure modes

- Invalid chart type enum value returns validation error
- Malformed or missing datasets causes rendering failure
- Width or height outside 100–2000 range is rejected
- Conflicting chart type between top-level 'type' and 'config.type' may produce unexpected output
- Very large datasets or complex configs may timeout
- Missing required data arrays produce an empty or broken chart image

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

A JSON object containing the rendered chart as a base64-encoded PNG string, along with the width and height in pixels, file size in bytes, mime type (image/png), and the chart type that was rendered. The agent can decode the base64 string to embed or save the image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "type": {
   "enum": [
    "bar",
    "line",
    "pie",
    "doughnut",
    "scatter",
    "radar",
    "polarArea",
    "bubble"
   ],
   "type": "string"
  },
  "title": {
   "type": "string"
  },
  "width": {
   "type": "integer",
   "default": 800,
   "maximum": 2000,
   "minimum": 100
  },
  "config": {
   "type": "object",
   "description": "Full Chart.js configuration {type, data, options}"
  },
  "height": {
   "type": "integer",
   "default": 500,
   "maximum": 2000,
   "minimum": 100
  },
  "labels": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "datasets": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "data": {
      "type": "array"
     },
     "label": {
      "type": "string"
     }
    }
   }
  },
  "background": {
   "type": "string",
   "default": "white"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "width": 800,
   "format": "png",
   "height": 450,
   "mime_type": "image/png",
   "chart_type": "bar",
   "size_bytes": 9732,
   "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAHC…"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentsvc-chart-render-ca8073f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
