Deplot

DEPLOT

DePlot from Google reads a chart or plot image and returns the data table drawn in it.

Vision & Analysischartplot-to-tabledocumentapache-2.0
Deplot: Vision & Analysis model on Kainguru

About Deplot

Reads a chart or plot image and returns the data table drawn in the figure. The table is plain text: one row per line, with | between cells, in the order the model emits them; each row is trimmed of surrounding spaces.

The weights are google/deplot at revision 6e76d62430da16986be3426bae32301fb9115397, published by Google. DePlot was created by Fangyu Liu, Julian Martin Eisenschlos, Francesco Piccinno, Syrine Krichene, Chenxi Pang, Kenton Lee, Mandar Joshi, Wenhu Chen, Nigel Collier and Yasemin Altun. The model card states the licence as Apache-2.0: https://huggingface.co/google/deplot. The weights file model.safetensors is 1,129,177,976 bytes (about 1.1 GB) and is public. The model is Pix2Struct, about 282 million parameters, loaded in fp32.

Limits

Still images of charts and plots only. One image per request. A file over 20 MB, or over 4096 pixels on either side, is refused. The model guesses the table from the drawing. It can drop series, misread axis labels, and invent cells on cluttered or decorative figures. It does not return a spreadsheet file. The model runs on CPU.

Deplot inputs and output

NameTypeRequiredDefaultDetails
imagefileYes—Chart or plot image. PNG, JPEG or WebP, at most 20 MB and 4096 pixels on a side.
image/jpeg, png, webp
max_new_tokensintegerNo512Maximum number of new tokens to generate, from 16 to 1024.
16–1024

Output. Returns plain text.

Run Deplot with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=DEPLOT" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": "https://example.com/input.png",
    "max_new_tokens": 512
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "DEPLOT",
        {
          "image": "https://example.com/input.png",
          "max_new_tokens": 512
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Deplot pricing

Price per request: 0.6 credits ($0.006). The price is shown again before every run; all prices are on the pricing page.

Licence and source

Pix2struct Docvqa Base: Vision & Analysis model on Kainguru
Vision & Analysis

Pix2struct Docvqa Base

Pix2Struct from Google answers a question about a document image such as a scan, form, receipt or slide.

Docling Layout Heron: Vision & Analysis model on Kainguru
Vision & Analysis

Docling Layout Heron

Finds the layout of a document page, such as text blocks, titles, section headers, tables, pictures, captions…

Fine-tunable
EasyOCR: Vision & Analysis model on Kainguru
Vision & Analysis

EasyOCR

EasyOCR finds the lines of text in a photo or a scan and reads each one, returning every line with its box and its…

Fine-tunable
Granite Vision 3.3 2B: Vision & Analysis model on Kainguru
Vision & Analysis

Granite Vision 3.3 2B

IBM Granite Vision 3.3 2B reads documents in pictures: it answers questions about tables, charts, infographics, forms…

Fine-tunable
Grounding DINO Base: Vision & Analysis model on Kainguru
Vision & Analysis

Grounding DINO Base

Finds the things you name in a picture, such as "red car, person with a helmet", and returns a box around each one.

Fine-tunable
Moondream 2: Vision & Analysis model on Kainguru
Vision & Analysis

Moondream 2

Moondream 2 is a small vision model: it answers questions about a picture, writes short, normal or long captions and…

Fine-tunable