Turn any photo, scan, or screenshot into clean text in one call. Handles printed and handwritten text and multiple languages. Switch on Markdown mode to preserve document structure — headings, bullet/numbered lists, and tables — ideal for digitizing documents, forms, and whiteboards.
Printed or handwritten — photos, scans, screenshots, and documents.
Set "format":"markdown" to keep headings, lists, and tables as real Markdown.
Auto-detects the language, or pass a language hint.
Returns just the text plus character and word counts — no clutter.
Generous quotas built for high-volume, commodity OCR workloads.
Runs on our own GPU — private, reliable, priced low because our cost is low.
| Field | Type | Required | Description |
|---|---|---|---|
| image_url | string | one of url/b64 | Public URL of the image. |
| image_b64 | string | one of url/b64 | Base64 image bytes (or a data: URI). |
| format | string | optional | text (plain, default) or markdown (layout-aware). |
| language | string | optional | Language hint (e.g. en, es); blank = auto. |
curl -X POST \
"https://smart-ocr-image-document-to-text.p.rapidapi.com/v1/ocr" \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Key: YOUR_KEY" \
-H "X-RapidAPI-Host: smart-ocr-image-document-to-text.p.rapidapi.com" \
-d '{
"image_url": "https://example.com/document.jpg",
"format": "markdown"
}'
{
"text": "# Quarterly Report\n\n| Item | Q1 | Q2 |\n|------|----|----|\n| Revenue | 12 | 15 |",
"format": "markdown",
"char_count": 78,
"word_count": 12
}
| Plan | Price / mo | Quota | Overage |
|---|---|---|---|
| Basic | $0 | 100 req/mo | — |
| Propopular | $9.99 | 5,000 req/mo | $0.0015/req |
| Ultra | $24.99 | 25,000 req/mo | $0.001/req |
| Mega | $79 | 150,000 req/mo | $0.0006/req |