Skip to main content

Thai Document to Markdown

Reads a Thai or English document page, a scan or a phone photo, into Markdown. Every table comes back as an HTML table with its merged cells (rowspan and colspan), so the multi-level headers of Thai government forms survive, formulas come back as LaTeX, and every block on the page carries its class and its box. The output can go straight into a search index, a retrieval pipeline or a language model's prompt.

The API runs OpenThai 2.2 OCR Markdown, iApp's open model, with nothing in between: every page is read by the model itself. On 65 Thai government and university pages with tables it scores 95.0, and on printed Thai text 90.55. 0.15 IC per page.

Version 2.2 since 30 November 2026

Since 30 November 2026 the API runs OpenThai 2.2 OCR Markdown, with the same endpoint, request, response and price. The new weights were trained further on steep phone photos and photographed screens. Through the service, before the switch, Thai document tables scored 95.3 (2.1: 93.9) and ThaiOCRBench tables 68.1 (2.1: 70.1); neither difference is significant. See the changelog.

POST/v3/store/ocr/document/markdownTry it

Input

Input image: PDF, JPEG, PNG, WebP, TIFF, BMP · Up to 50 MB · long side 1,000 px or more

OutputPOST /v3/store/ocr/document/markdown

{
  "markdown": "๑ เอกสารแนบ
รายชื่อแบบรายงานที่กำหนดให้ผู้ประกอบธุรกิจรายงาน

<table><tr><th rowspan="2">แบบรายงาน</th> ...</table>",
  "pages": [
    {
      "page": 1, "width": 1696, "height": 1199,
      "markdown": "...",
      "blocks": [
        { "class": "Text", "bbox": [628, 95, 1484, 178], "text": "..." },
        { "class": "Table", "bbox": [136, 182, 1615, 1071], "text": "<table>...</table>" }
      ],
      "truncated": false
    }
  ],
  "time": 1.5,
  "version": "v2.2.2-20261130",
  "iapp": { "page": 1, "char": 2234 }
}

The Markdown and the table are shown in part; the page has 4,001 characters.

Every field, under Response

The table example is the first page of the annex to Bank of Thailand notification 60/2569, on the reports that hire-purchase and leasing businesses must send, published on 6 November 2026. Its PDF has no usable text layer: text copied out of it comes out garbled, so the page can only be read by OCR. Source: Royal Gazette (ราชกิจจานุเบกษา), via open-law-data-thailand/soc-ratchakitcha, CC BY 4.0.

Request​

Response​

Details​

© 2026 iApp Technology Co., Ltd.TermsPrivacyStatussale@iapp.co.th