OCRRouterGet API key

Thai OCR API

Read Thai text, which has no spaces between words and vowels above and below the line.

Result

Your Markdown or JSON shows up here.

What makes Thai hard for OCR

  • No word spacing
  • Stacked vowels and tone marks
  • Looped and loopless font styles

Script: Thai script.

Call it from your code

curl https://api.ocrrouter.com/v1/ocr \
  -H "Authorization: Bearer $OCRROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-flash",
    "file_url": "https://example.com/invoice.pdf",
    "format": "markdown"
  }'

Best models for Thai text

Questions

Other languages