# md.fastdb.in Chart Image Generator

> md.fastdb.in Chart Image Generator is a paid API for AI agents from md.fastdb.in, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Converts a Chart.js v4 JSON config into a PNG chart image (line, bar, pie, doughnut, scatter, radar) with no watermark

## Facts

- Endpoint: POST https://md.fastdb.in/shot/chart?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/md-fastdb-in-chart-image-generator-6b2125ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JsOwxuiwExRVc5TilCR9y

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 md-fastdb-in-chart-image-generator-6b2125ab -d '<json body>'
```

Example prompt: Can you turn this Chart.js bar chart config into a PNG image — the data is monthly sales figures for Jan–Jun 2024: labels ['Jan','Feb','Mar','Apr','May','Jun'], values [12000,15000,11000,18000,21000,17000]?

## When to prefer this

Choose this endpoint when you need a clean, watermark-free PNG chart image rendered from a Chart.js v4 config without setting up a charting library or browser environment. It is ideal for AI agents producing automated reports, dashboard screenshots, or social media visuals where a ready-to-embed PNG is required. Prefer it over screenshot-based approaches when you already have structured Chart.js data and want a lightweight, low-cost per-call solution.

## Known failure modes

- Invalid or malformed Chart.js JSON config returns an error
- Unsupported chart type (outside line, bar, pie, doughnut, scatter, radar) may fail
- Missing required chart data fields cause rendering errors
- Payment failure (insufficient USDC balance or x402 protocol error) blocks the request
- Extremely large datasets may cause timeout or oversized output

## How this service works

Turn a plain Chart.js v4 config (type, data, options as JSON) into a PNG chart image — line, bar, pie, doughnut, scatter, radar. No accounts, no watermark; made for agents producing reports, dashboards and social posts. $0.005 per call via x402.

## Output

A PNG image file of the rendered chart, produced from the supplied Chart.js v4 config (type, data, options). No watermark is applied. The image can be embedded directly in reports, dashboards, or social posts.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "chart"
     ],
     "properties": {
      "chart": {
       "type": "object",
       "description": "Chart.js v4 config: { type, data, options? } (JSON only, max 512 KB)"
      },
      "scale": {
       "enum": [
        1,
        2
       ],
       "type": "number",
       "description": "Device scale factor, default 2 (crisp)"
      },
      "width": {
       "type": "integer",
       "maximum": 1920,
       "minimum": 100,
       "description": "Chart width px, default 800"
      },
      "height": {
       "type": "integer",
       "maximum": 1920,
       "minimum": 100,
       "description": "Chart height px, default 400"
      },
      "response": {
       "enum": [
        "json",
        "binary"
       ],
       "type": "string",
       "description": "json (default) wraps base64; binary returns raw PNG bytes"
      },
      "transparent": {
       "type": "boolean",
       "description": "Transparent background instead of white"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "b64": "<base64-encoded image>",
  "bytes": 48213,
  "width": 1280,
  "height": 800,
  "sha256": "9f7d…",
  "tookMs": 1450,
  "contentType": "image/png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/md-fastdb-in-chart-image-generator-6b2125ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from md.fastdb.in](https://www.zero.xyz/host/md.fastdb.in/llms.txt)
