---
title: "deplot"
publisher: "google"
type: "endpoint"
updated: "2025-01-14T01:45:20.835Z"
description: "Translate images of plots into tables with one-shot visual language understanding."
canonical: "https://build.nvidia.com/google/google-deplot"
---

# Model Overview

## Description:

The Google DePlot model is a one-shot visual language understanding solution 
that translates images of plots or charts into linearized tables.

## Terms of use

By using this model, you are agreeing to the terms and conditions of the 
[license](https://github.com/google-research/google-research/blob/master/LICENSE), 
[acceptable use policy](https://policies.google.com/terms) and 
[Google Research privacy policy](https://policies.google.com/privacy).

## References(s):

* [DePlot paper](https://arxiv.org/pdf/2212.10505.pdf)
* [DePlot on HuggingFace](https://huggingface.co/google/deplot)

## Model Architecture:
**Architecture Type:** Transformer <br>
**Network Architecture:** Pix2Struct <br>

## Input:
**Input Format:** Red, Green, Blue (RGB) Image + Text <br>
**Input Parameters:** None <br>
**Other Properties Related to Input:** None <br>

## Output: <br>
**Output Format:** Text <br>
**Output Parameters:** temperature, top_p, max_tokens <br>
**Other Properties Related to Output:** stream <br>

## Supported Operating System(s):
Linux

# Inference:
**Engine:** [Triton](https://developer.nvidia.com/triton-inference-server) <br>
**Test Hardware:** Other <br>

## Prototype

```python
import requests

invoke_url = "https://ai.api.nvidia.com/v1/vlm/google/deplot"

headers = {
"Authorization": "Bearer ",
"Accept": "application/json",
}

payload = {
"messages": [
{
"role": "user",
"content": ""
}
]
}

# re-use connections
session = requests.Session()

response = session.post(invoke_url, headers=headers, json=payload)

response.raise_for_status()
response_body = response.json()
print(response_body)
```

```javascript
import fetch from "node-fetch";

const invokeUrl = "https://ai.api.nvidia.com/v1/vlm/google/deplot"

const headers = {
"Authorization": "Bearer ",
"Accept": "application/json",
}

const payload = {
"messages": [
{
"role": "user",
"content": ""
}
]
}

let response = await fetch(invokeUrl, {
method: "post",
body: JSON.stringify(payload),
headers: { "Content-Type": "application/json", ...headers }
});

let response_body = await response.json()

console.log(JSON.stringify(response_body))
```

```bash
invoke_url='https://ai.api.nvidia.com/v1/vlm/google/deplot'

authorization_header='Authorization: Bearer '
accept_header='Accept: application/json'
content_type_header='Content-Type: application/json'

data=$'{
"messages": [
{
"role": "user",
"content": ""
}
]
}'

response=$(curl --silent -i -w "\n%{http_code}" --request POST \
--url "$invoke_url" \
--header "$authorization_header" \
--header "$accept_header" \
--header "$content_type_header" \
--data "$data"
)

echo "$response"
```