81trust / 100

Proxy Chart Render

by Chart Generator PNG in Other

x402 APIPassing, checked 1 h ago

Render a chart to PNG from JSON: bar, line, pie, doughnut, scatter, radar, polarArea or bubble. Pass a full Chart.js config (config) or the shortcut type + labels + datasets [{label, data}] + title. Rendered with Chart.js in headless Chromium, no external requests. Params: config or type/labels/datasets, title, width and height (100 to 2000 px, default 800x500), background (CSS color, default white). Returns image_base64 (PNG).

POST https://agentsvc.io/api/v1/proxy/chart-render

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
29 ms typical, 29 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/chart-render" \
  -H "content-type: application/json" \
  -d '{"datasets":[{"data":[12,19,14,23],"label":"Revenue"}],"labels":["Q1","Q2","Q3","Q4"],"title":"Revenue 2026 (kUSD)","type":"bar"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fchart-render
const res = await pay("https://agentsvc.io/api/v1/proxy/chart-render", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"datasets":[{"data":[12,19,14,23],"label":"Revenue"}],"labels":["Q1","Q2","Q3","Q4"],"title":"Revenue 2026 (kUSD)","type":"bar"}),
});
console.log(await res.json());

Example input

{
  "datasets": [
    {
      "data": [
        12,
        19,
        14,
        23
      ],
      "label": "Revenue"
    }
  ],
  "labels": [
    "Q1",
    "Q2",
    "Q3",
    "Q4"
  ],
  "title": "Revenue 2026 (kUSD)",
  "type": "bar"
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed40231 ms$0.009
6 h agoPassed40229 ms$0.009