Chart API
HTTP API · MCP server

Chart images from one URL.

Send numbers, get a clean chart image and a public link for emails, Slack, PDFs and READMEs. For scripts, automations and AI agents.

50 free charts No sign-up Same chart again is free
Chart type

Comma-separated.

One series per line. Name it with Web: 3, 5, 4.

More options
Monthly revenueBar chart titled "Monthly revenue". Values: Jan: $1,200, Feb: $1,850, Mar: $1,600, Apr: $2,400, May: $2,950, Jun: $3,100.Monthly revenue$0$1k$2k$3k$4kJanFebMarAprMayJun$1,200$1,850$1,600$2,400$2,950$3,100

Live preview: edit the numbers below.

Request URL
https://kitforge-chart-api.kitforgelabs.workers.dev/v1/chart?type=bar&title=…
Get a free key Send your key as an Authorization: Bearer header. The preview runs in your browser and costs nothing; the API returns exactly this image plus a public link.
Quickstart

One request per chart

Use GET for short charts and POST with JSON for longer ones. The response is the SVG; its x-chart-url header is a signed public link to the same chart. Machine-readable: OpenAPI 3.1 · llms.txt.

GET · curl
curl -H "Authorization: Bearer YOUR_KEY" -D - -o chart.svg \
  "https://kitforge-chart-api.kitforgelabs.workers.dev/v1/chart?type=bar&labels=Jan|Feb|Mar&data=1200,1850,1600&prefix=%24"
# x-chart-url: https://kitforge-chart-api.kitforgelabs.workers.dev/v1/chart?type=bar&...&sig=...   <- public link for <img>
POST JSON · curl
curl -X POST "https://kitforge-chart-api.kitforgelabs.workers.dev/v1/chart?response=json" \
  -H "Authorization: Bearer YOUR_KEY" -H "content-type: application/json" \
  -d '{"type":"line","title":"Weekly users","labels":["W1","W2","W3"],
       "series":[{"name":"Web","data":[320,410,395]},{"name":"Mobile","data":[200,260,240]}]}'
# -> {"url": "…&sig=…", "svg": "<svg …", "charged": true, "credits": {…}}
In an email or web page · HTML
<img src="https://kitforge-chart-api.kitforgelabs.workers.dev/v1/chart?type=bar&labels=Jan%7CFeb%7CMar&data=1200%2C1850%2C1600&sig=…"
     alt="Monthly revenue: Jan $1,200, Feb $1,850, Mar $1,600" width="600" height="360">
ParameterWhat it doesDefault
typebar, line, pie, doughnut, sparklinebar
dataNumbers, comma-separated. Several series: separate with | (3,5,2|4,1,6). Empty = gap.—
labelsCategory / x-axis labels, separated with |.—
seriesSeries names, separated with |. Two or more series get a legend.—
titleShown on top and used as the image's accessible name (max 100 characters).—
stacked · valuesStack bar series · print values (with several series only the max or last point).off
prefix · suffixAround values, e.g. $, %, k.—
themelight or dark.light
width · heightPixels (120–1600 × 32–1000).600 × 360
colorsHex colours per series or slice, separated with |.Kitforge palette
transparentNo background.off
Errors are plain JSON. 400 with a code like missing_data or too_many_points (not charged), 401 missing or invalid key, 402 no_credits with a recharge_url, 403 for a changed signed URL. Limits: 8 series, 60 bars or 200 line points per series; pie slices beyond 7 fold into "Other".
MCP

Charts from Claude, Cursor or any MCP client

Remote server, nothing to install, 10 charts a day without a key. Add it and ask: "Chart last week's signups by day as a bar chart I can paste into Slack." The tool make_chart returns a link, Markdown and the SVG.

Config file · mcp.json
{
  "mcpServers": {
    "kitforge-chart": {
      "type": "http",
      "url": "https://kitforge-chart-api.kitforgelabs.workers.dev/mcp",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}
Claude Code · terminal
claude mcp add --transport http kitforge-chart https://kitforge-chart-api.kitforgelabs.workers.dev/mcp \
  --header "Authorization: Bearer YOUR_KEY"
Pricing

Prepaid credits. No subscription.

Start with 50 free charts (get a free key). Then buy a pack once; credits never expire and work for both Kitforge APIs. Running low? Recharge the same key: nothing to change in your code.

2,000 charts

$5 one-time · $0.0025 per chart
  • Credits never expire
  • Same chart again is free
  • Also pays for Tech Stack API lookups
Buy 2,000 charts

50,000 charts Save 37%

$79 one-time · $0.0016 per chart
  • Credits never expire
  • Same chart again is free
  • Also pays for Tech Stack API lookups
Buy 50,000 charts

Secure checkout by Dodo Payments · Refunds within 14 days of purchase · Your key arrives by email and on the next page

FAQ

Questions

Do I need a separate key?

No. One Kitforge API key works for the Chart API and the Tech Stack API, with one shared balance. Get a free key (50 credits, no sign-up) or buy a pack below.

What does a chart cost?

One credit per new chart. A free key gives you 50 charts (no email, one quick human check), and AI assistants using the MCP server get 10 charts a day without any key. After that, packs start at $5 for 2,000 charts. Rendering the same chart again with the same key is free, viewing a signed chart URL never costs anything, and invalid requests are not charged.

How do I put a chart in an email or Slack message?

Every paid render returns a signed public URL (the x-chart-url header, or url in JSON and MCP results). Put it in an <img> tag or a Markdown image. It needs no key, always shows exactly that chart and is cached for a year. Never put your API key in a URL: the API refuses it.

Who can see my chart?

Anyone who has its signed URL, like any image link. The numbers are part of the URL. We don't store charts or chart data; chart URLs are kept out of search engines (robots.txt). Don't chart data you wouldn't put in an email.

Is there a PNG version?

Not yet: charts are SVG, which every browser, Slack, Notion and most email apps show sharply at any size. Some email apps (notably Outlook on Windows) don't show SVG images; for those, convert the SVG once in your pipeline.

Can my AI assistant use it?

Yes. Add the MCP server (above) to Claude, Cursor or any MCP client and ask for a chart. Without a key you get 10 trial charts a day; the assistant gets a link and the SVG.