> For the complete documentation index, see [llms.txt](https://docs.vntranslator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vntranslator.com/user-guide/ocr/ocr-engines/custom-http-post.md).

# Custom - HTTP POST

{% hint style="info" %}
Make sure the OCR engine can handle HTTP POST Requests
{% endhint %}

### Variables

* $IMAGE\_BUFFER
* $IMAGE\_BASE64

***

### Example:

#### 1. Google Cloud Vision

**Docs:**

* <https://cloud.google.com/vision/docs>

**URL:**

* `https://vision.googleapis.com/v1/images:annotate?key=$YOUR_API_KEY`

**Content Type:**&#x20;

* &#x20;`application/json`

**Headers:**

* &#x20;**`{}`**

**Body:**

```
{
  "requests": [ 
    { 
      "image": { "content": "$IMAGE_BASE64" },
      "features": [ 
        { "type": "TEXT_DETECTION", "maxResults": 1 }
      ]
    }
  ]
}
```

**Response Type:**

* &#x20;`JSON`

**Response Query:**

* &#x20;`responses[0].fullTextAnnotation.text`
