> 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/nanonets-ocr-small.md).

# Nanonets OCR small

### Model

* <https://huggingface.co/nanonets/Nanonets-OCR-s>
* <https://huggingface.co/unsloth/Nanonets-OCR-s-GGUF>

### Custom - HTTP POST

**URL:**&#x20;

* `http://127.0.0.1:1234/v1/chat/completions`

**Content Type:**&#x20;

* `application/json`

**Headers:**&#x20;

* `{}`

**Body:**

{% code overflow="wrap" %}

```json
{
  "model": "nanonets-ocr-s",
  "messages": [
    {
      "role": "system", "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": [        
        {
          "type": "image_url",
          "image_url": {
            "url": "data:image/jpeg;base64,$IMAGE_BASE64"
          }
        },
        { 
          "type": "text", 
          "text": "Extract the text from the image above as if you were reading it naturally. Return only valid words and complete sentences."
        }
      ]
    }
  ],
  "stream": false
}
```

{% endcode %}

**Response Type:**

* `JSON`

**Response Query:**

* `choices[0].message.content`
