Chart generations
Generate a publication-style chart from a data table
POST /api/v1/charts/generations accepts multipart/form-data. Required scope:
charts:generate. The service reads your table, chooses or applies the requested
chart types, and returns one finished PNG figure. No streaming or intermediate
state is exposed; poll the job like any other.
Form fields
| Field | Type | Required | Default | Rules |
|---|---|---|---|---|
data | file | yes | — | CSV, TSV, TXT, XLSX, or XLS; maximum 5 MB; first row must be unique column names |
prompt | string | no | — | What to show or emphasise, up to 8,000 characters |
chart_types | string | no | automatic | Comma-separated or repeated; up to 4 of the types below |
journal_style | string | no | default | default, nature, science, cell, plos, or acs |
figure_width | string | no | double | single or double column width |
color_palette | string | no | okabe_ito | okabe_ito, wong, tol_bright, or tol_muted |
Files that cannot be parsed, exceed the size limit, or have duplicate or empty
column names return 400 INVALID_REQUEST (HTTP 413 for oversized uploads).

API Docs