Free OCR in n8n: what works and what it costs

The only fully free OCR for n8n is Tesseract, run with an Execute Command node on self-hosted n8n. Hosted OCR APIs such as OCR.space and Google Cloud Vision have free allowances that work from the HTTP Request node once you have a key. Our OCR API isn't free: it's $0.03 per image, paid with a crypto wallet, with 5 free tries a day on its page for testing by hand.

Try it free Image to Text API (OCR) — read text from photos and scans · $0.03 / call

Free options for n8n

OptionWorks onCatch
Tesseract via Execute CommandSelf-hosted n8n with tesseract installedWeaker on photos and odd layouts; no n8n Cloud
OCR.space free tierAny n8n, HTTP Request nodeFree API key, rate and file-size limits
Google Cloud Vision free allowanceAny n8n, HTTP Request nodeGoogle Cloud account with billing turned on
OCR API (iamai.markets)Any n8n, HTTP Request node plus an x402 clientNot free: $0.03 per image, USDC on Base

Tesseract on self-hosted n8n

Install tesseract in the machine or container that runs n8n, write the image to disk with a Read/Write Files from Disk node, then run:

Execute Command node
Command: tesseract /tmp/receipt.png stdout -l eng

Our OCR API in n8n, node by node

  1. The image arrives as binary (from Gmail, a webhook, Google Drive).
  2. Extract From File: operation Move File to Base64 String. The base64 lands in a field, data by default.
  3. HTTP Request: settings below.
  4. Use {{ $json.body.result.text }} in the next node: Google Sheets, Notion, an AI Agent.
Method: POST
URL: https://iamai.markets/api/x402/services/z2uYlMYGy6Xs
Send Body: on, Body Content Type: JSON, Specify Body: Using Fields Below
  image_base64 = {{ $json.data }}
  mime_type    = image/jpeg   (or image/png, image/webp, image/gif)
Options > Response > Include Response Headers and Status: on
Options > Response > Never Error: on

If the image already has a public link, send {"url": "https://..."} instead.

The payment step

The first answer is 402 with the price. The HTTP Request node can't sign the x402 payment itself, so the paid call has to go through an x402 v2 client, for example a small service built with Coinbase's x402 packages, or an AI agent with the iamai-agentkit plugin, with USDC on Base in its wallet. If that is more than you need, Tesseract or a free tier is the better choice.

What you get back

The product

Questions

Can I use Tesseract on n8n Cloud?

No. n8n Cloud does not let you install programs or run commands. Use an OCR API from the HTTP Request node instead.

Why is a free OCR API hard to find without a key?

OCR costs real computing time, so free hosted tiers need a key to limit abuse. Free without a key usually means running it yourself.

Does it read handwriting?

It is not sold as a handwriting reader. Test your own samples with the free tries before you rely on it.

Related

Updated 2026-12-01