Helenis API
Start for free

API reference

Image to Text OCR API

AI OCR for images: handwriting, receipts, documents to text and Markdown tables. Multilingual.

Host
image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com
Base path
/v1/ocr
Auth
X-RapidAPI-Key, X-RapidAPI-Host
For agents
openapi.json · ocr.md

OCR

Image to text, with its layout kept as Markdown.

Extract Text from Image URL

POST /v1/ocr/image

Extract the text of an image from its URL. All the text of a photo, scan or screenshot, in reading order: plain text, plus Markdown keeping headings, lists and tables. Handwriting and any language. Optional translation. 1 credit (2 with translation).

Parameters of Extract Text from Image URL
ParameterInTypeDescription
url required body string Direct link to an image: PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB.
translate_to body string Also translate the text into this language (e.g. 'English', 'fr'). +1 credit.
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"
  }'

Extract Text from Uploaded Image

POST /v1/ocr/image/upload

Extract the text of an uploaded image. Same as /image, for a file sent as multipart/form-data (field `file`).

Parameters of Extract Text from Uploaded Image
ParameterInTypeDescription
file required form file Image, up to 20 MB.
translate_to form string Also translate the text into this language (e.g. 'English', 'fr'). +1 credit.
curl -X POST "https://image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com/v1/ocr/image/upload" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: image-to-text-ocr-handwriting-tables-ai.p.rapidapi.com" \
  -F "file=@./my-file"

Response

{
  "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..."
  }
}

A real response on a public-domain receipt photo, shortened. In text, table cells are separated by tabs.

How it works

  1. Download (or upload) of the image; GIF, BMP, TIFF and very large images are converted to JPEG (3,072 px on the long side at most, enough for small print).
  2. Read by a vision AI model at high resolution, told to transcribe exactly, keep the layout and never add or describe anything.
  3. Return Markdown and the plain text derived from it, plus the translation when asked.

Privacy

Images are downloaded, read and discarded: neither the image nor the text is stored by the API. The AI sub-processor may keep requests temporarily for abuse monitoring.

Errors

{ "error": { "status": 400, "code": "unsupported_file", "message": "The file is not an image (PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF)." } }
Status code Meaning
400 invalid_url, invalid_request Fix the input.
400 site_unreachable, site_blocked, file_too_large The image could not be downloaded (down, protected, over 20 MB).
400 unsupported_file Not an image.
429 daily_limit_reached Daily safety limit of your plan; resets at 00:00 UTC.
503 ai_error, capacity_exhausted Temporary failure. Retry. Not billed.

Use it from an AI agent

Add this MCP server and the Image to Text OCR - Handwriting & Tables actor becomes a tool your agent can call. Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify.

MCP server URL
https://mcp.apify.com?tools=helenisapi/image-to-text-ocr-handwriting-tables

Prefer plain HTTP? Give your agent the OpenAPI document or the Markdown reference.

See the plans Error handling