Chart AI
chart_aiGenerate a rendered chart image from a plain-English prompt, with controls for title, dimensions, format, legend, and raw data so you can visualize data without manual chart setup.
Instructions
Chart AI. Describe a chart in plain English via GET and get a rendered image back. Powered by AI. Credit cost: 10 credits per call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "chart_ai"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| share | No | Set share=true to persist the config and receive JSON instead of an image: { id, render_url, view_url, embed_url, expires_in }. Free plan: 3-day expiry with watermark. Paid plan: 6-month expiry, no branding. Default: false. | |
| title | No | Override the chart title generated by AI. | |
| width | No | Image width in pixels (50–4000). Default: 1200. | |
| fields | No | Comma-separated list of fields to keep in the response, with dot notation for nested fields (e.g. name,location.city). Does not change the credit cost. | |
| format | No | Output format. Default: "png". Allowed values: png, svg. Default: "png". | |
| height | No | Image height in pixels (50–4000). Default: 600. | |
| legend | No | Legend position or visibility. Use "false" to hide. Allowed values: top, bottom, left, right, chartArea, false. Default: "top". | |
| prompt | Yes | Describe your chart in plain English (max 1000 chars). Be specific: mention chart type, data topic, colors, style. | |
| raw_data | No | Raw data for the chart. URL-encoded string, CSV, or JSON. AI will parse and structure it. | |
| subtitle | No | Override the chart subtitle. | |
| background | No | Background color as a hex value. Default: #ffffff. | |
| device_pixel_ratio | No | Device pixel ratio for the rendered image. Default: 1. |