A Chart.js configuration → finished chart as PNG. All Chart.js types (bar, line, pie, radar, …), rendered server-side.
curl -X POST https://api.bigapi.dev/v1/chart -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"config":{"type":"bar","data":{"labels":["Q1","Q2"],"datasets":[{"data":[10,20]}]}}}' -o chart.png
New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.
| Name | Meaning |
|---|---|
config required | Chart.js configuration {type, data, options}, e.g. type bar, line or pie, as in the Chart.js documentation. |
width | Image width in px, 200 to 3000. Default: 900 |
height | Image height in px, 150 to 3000. Default: 500 |
background | Background as a hex colour like #f5f5f5, or transparent for a PNG without background. Invalid values fall back to white. Default: "#ffffff" |
Returns image/png. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds chart_render on its own.