{
 "service": "Kitforge Chart API",
 "description": "Chart images (SVG) from a URL or JSON, for emails, PDFs, docs and AI agents. Remote MCP tool make_chart.",
 "openapi_url": "https://kitforge-chart-api.kitforgelabs.workers.dev/openapi.json",
 "llms_txt": "https://kitforge-chart-api.kitforgelabs.workers.dev/llms.txt",
 "example": "https://kitforge-chart-api.kitforgelabs.workers.dev/v1/chart?type=bar&title=Revenue&labels=Jan|Feb|Mar&data=1200,1850,1600&prefix=$",
 "endpoints": {
  "GET /v1/chart?type=bar&labels=A|B|C&data=1,2,3": "SVG chart (Authorization: Bearer <key>; 1 credit per new chart). Response header x-chart-url = signed public URL",
  "GET /v1/chart?…&sig=…": "Signed public chart URL: no key, cacheable, for <img> in emails and docs",
  "POST /v1/chart": "Same from JSON {type, title, labels, data | series:[{name,data}], …}; ?response=json returns {url, svg, credits}",
  "GET /v1/balance": "Remaining credits for your key (shared with the Tech Stack API)",
  "POST /mcp": "Remote MCP server (Streamable HTTP), tools make_chart + check_credits"
 },
 "chart_types": [
  "bar",
  "line",
  "pie",
  "doughnut",
  "sparkline"
 ],
 "auth": "Authorization: Bearer <Kitforge API key>. Free key (50 credits): https://kitforge-techstack.pages.dev/",
 "pricing": {
  "free": "50 credits per free key; MCP: 10 keyless trial charts per day per network",
  "packs": [
   "2,000 charts for $5",
   "10,000 charts for $19",
   "50,000 charts for $79"
  ],
  "note": "One-time, credits never expire, the same chart again is free, signed URLs never cost anything to view.",
  "buy_url": "https://kitforge-license-api.kitforgelabs.workers.dev/api/checkout?product=techstack-api&plan=pack2000"
 }
}