
Pix2struct Docvqa Base
Pix2Struct from Google answers a question about a document image such as a scan, form, receipt or slide.
DEPLOTDePlot from Google reads a chart or plot image and returns the data table drawn in it.

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.
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.
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
image | file | Yes | — | Chart or plot image. PNG, JPEG or WebP, at most 20 MB and 4096 pixels on a side. image/jpeg, png, webp |
max_new_tokens | integer | No | 512 | Maximum number of new tokens to generate, from 16 to 1024. 16–1024 |
Output. Returns plain text.
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 -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"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)Price per request: 0.6 credits ($0.006). The price is shown again before every run; all prices are on the pricing page.

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

Finds the layout of a document page, such as text blocks, titles, section headers, tables, pictures, captions…
Fine-tunable
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
IBM Granite Vision 3.3 2B reads documents in pictures: it answers questions about tables, charts, infographics, forms…
Fine-tunable
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 is a small vision model: it answers questions about a picture, writes short, normal or long captions and…
Fine-tunable