Documents & media
Documents & media · AI-assisted
Image to Text OCR API
AI OCR for images: handwriting, receipts, documents to text and Markdown tables. Multilingual.
Base URLhttps://image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com/v1/ocropenapi.json
- Free plan
- 3 credits a day
- Paid plans
- from $4.99 a month
- One credit
- 1 credit per image, +1 with translation.
- Endpoints
- 2, on
/v1/ocr
Example call
curl -X POST "https://image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com/v1/ocr/image" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"url": "https://upload.wikimedia.org/wikipedia/commons/6/69/Sahan_Supermarket_receipt%2C_Hillegersberg%2C_Rotterdam_%282021%29_01.jpg",
"translate_to": "English"
}'
import requests
url = "https://image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com/v1/ocr/image"
payload = {
"url": "https://upload.wikimedia.org/wikipedia/commons/6/69/Sahan_Supermarket_receipt%2C_Hillegersberg%2C_Rotterdam_%282021%29_01.jpg",
"translate_to": "English"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com",
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
const res = await fetch("https://image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com/v1/ocr/image", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://upload.wikimedia.org/wikipedia/commons/6/69/Sahan_Supermarket_receipt%2C_Hillegersberg%2C_Rotterdam_%282021%29_01.jpg",
"translate_to": "English"
}),
});
console.log(await res.json());
{
"source": "https://upload.wikimedia.org/.../Sahan_Supermarket_receipt...jpg",
"mime_type": "image/jpeg",
"languages": ["nl"],
"handwriting": false,
"has_text": true,
"text": "SAHAN Supermarkt\nBergweg 170\n3036 BL Rotterdam\n...\nOmschrijving\tBedrag\nMIRAS OLIJFOLIE (GLAS) 1L\t3,99\n...",
"markdown": "SAHAN Supermarkt\nBergweg 170\n...\n| Omschrijving | Bedrag |\n| :--- | ---: |\n| MIRAS OLIJFOLIE (GLAS) 1L | 3,99 |\n| MERAY TRAKYA POMPOENPIT 200 | 1,99 |\n...",
"translation": {
"language": "English",
"markdown": "SAHAN Supermarket\n...\n| Description | Amount |\n| :--- | :--- |\n| MIRAS OLIVE OIL (GLASS) 1L | 3.99 |\n...",
"text": "SAHAN Supermarket\n...\nDescription\tAmount\nMIRAS OLIVE OIL (GLASS) 1L\t3.99\n..."
}
}
Extract Text from Image URL: POST /v1/ocr/image. A real call and its real response, with long values shortened.
What the Image to Text OCR API returns
Photos, scans, screenshots, receipts, menus, handwritten notes, signs: send an image link or upload the image, get back all its text in reading order and the same text as Markdown that keeps headings, lists and real tables. Ask for a translation in the same call.
- Handwriting
- Notes, letters, forms; unreadable words are marked
[illegible], never guessed - Tables stay tables
- Receipts, invoices, menus and price lists keep each item on its row
- Multilingual
- Text kept in its original language;
languageslists what was found - Translation
- The same Markdown in the language you choose
- Two formats
textfor search and NLP,markdownfor documents and LLM pipelines
Endpoints
Host image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com, header X-RapidAPI-Key. Parameters and examples for each one are in the API reference.
OCR
Image to text, with its layout kept as Markdown.
Use cases
- Expense apps. Read receipts and invoices into rows
- Note taking. Digitise handwritten notes and whiteboards
- E-commerce & real estate. Read text on product photos, labels and listings
- Archives. Turn scanned letters and forms into searchable text
- Accessibility & translation. Read and translate signs, menus and posters
Tutorial
Documents & media
Pricing
1 credit per image, +1 with translation. Failed calls are never billed.
| Plan | Price | Credits included | Above the quota |
|---|---|---|---|
| BASIC | Free | 3 / day | resets every day |
| PRO | $4.99/mo | 1,100 / month | $0.05 per credit |
| ULTRA | $14.99/mo | 3,500 / month | $0.05 per credit |
| MEGA | $49.99/mo | 11,000 / month | $0.05 per credit |
Subscribe on RapidAPI (opens in a new tab)
No code: the Apify actor
The Image to Text OCR - Handwriting & Tables actor runs the same engine on a list of inputs and exports a table (JSON, CSV, Excel, Google Sheets). It is billed per result; free-plan users get 10 images per run.
| Event | Charged for | Price |
|---|---|---|
image-ocr | Each image read | $0.004 |
translation | Each image translated | $0.004 |
Questions about the Image to Text OCR API
Bounding boxes?
Does it describe the picture?
has_text: false.





