BiGapiguides
POST /v1/chart · 1 cent per operation

Chart → PNG

A Chart.js configuration → finished chart as PNG. All Chart.js types (bar, line, pie, radar, …), rendered server-side.

Try it

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.

Parameters

NameMeaning
config requiredChart.js configuration {type, data, options}, e.g. type bar, line or pie, as in the Chart.js documentation.
widthImage width in px, 200 to 3000.
Default: 900
heightImage height in px, 150 to 3000.
Default: 500
backgroundBackground as a hex colour like #f5f5f5, or transparent for a PNG without background. Invalid values fall back to white.
Default: "#ffffff"

Result and price

1¢ · 1 cent per operation

Returns image/png. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).

From an agent (MCP)

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.