One request in, text out
No OCR SDK and no page to host: post the image, read the text. Built on Llama 3.2 11B Vision, which reads small and mixed-script print character-for-character.
@cf/meta/llama-3.2-11b-vision-instruct
FastHand Studio · Product
Reading a printed label shouldn't need a human or a cloud vendor. FastHand OCR turns a photo into its text: send an image, get back what is printed on it — labels, ID cards, documents, packaging, signs. One POST request, protected by your API key, answered from the edge.
Workers · Llama 3.2 11B Vision · TypeScript · MIT
What it does
Each card states a fact from the product README, not a promise: this is what happens when your app calls the endpoint.
No OCR SDK and no page to host: post the image, read the text. Built on Llama 3.2 11B Vision, which reads small and mixed-script print character-for-character.
@cf/meta/llama-3.2-11b-vision-instruct
Requests without your secret X-API-Key header are rejected before the model runs. Wrong keys are compared in constant time, so guessing reveals nothing.
X-API-Key · timing-safe compare
“Edge” means the code runs on Cloudflare's global network instead of a server you manage — answers come back fast from whichever location is closest to the caller, and the free tier covers the requests.
Cloudflare Workers
8 MB per request, 6 MB per decoded image, and strict base64 rules (base64: the image bytes written out as plain text so JSON can carry them) stop garbage before it costs anything.
8 MB · 6 MB · strict base64
Languages
The table is the model's supported-script list, taken from the README. Under it: the one condition that decides real-world accuracy.
| Script / language | Example |
|---|---|
| English & other Latin scripts | English, French, Spanish, German, Portuguese |
| Bengali | বাংলাদেশ |
| Arabic | العربية |
| Hindi & Devanagari | हिन्दी |
| Chinese | 中文 |
| Japanese | 日本語 |
| Korean | 한국어 |
| Cyrillic | Русский |
Proof of the claim: verified against a real Bangladesh National ID card — the Bengali-English government header, holder and parents' names, date of birth and NID number all came back correct. Accuracy note: crisp, upright, well-lit images transcribe almost perfectly; blur, glare and heavily stylized text reduce accuracy, and handwriting is less reliable than print.
How it works
The diagram is the whole product — nothing runs outside these five stops. The numbered list repeats the same flow in words.
Figure 2 — a request's full path. Auth and validation (2–3) run before any model time is spent.
How to use it
Four blocks, in reading order: how to call it, what to send, what success looks like, and every way the API says no. All names are placeholders — never put a real key in client-side code.
curl -X POST https://YOUR-DOMAIN.workers.dev/ \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"image": "<base64-encoded-image>"}'Replace YOUR-DOMAIN and YOUR_API_KEY with your Worker's domain and your secret.
{
"image": "<base64-encoded JPEG, PNG or WebP>"
}image takes a base64-encoded picture (the image bytes written as plain text, so JSON can carry them). JPEG, PNG, WebP; a data:image/…;base64, prefix is stripped automatically. Max 8 MB per request, 6 MB per decoded image.
{
"success": true,
"text": "Government of the People's Republic of Bangladesh\nNational ID Card\n...",
"words": [
{ "text": "Government", "confidence": 0.85 },
{ "text": "National", "confidence": 0.85 }
]
}text is the full transcription; words carries each word with a confidence score — Workers AI exposes no real scores, so each one defaults to 0.85.
response · every failure, with its cause
| Status | Cause |
|---|---|
| 401 | Missing or invalid X-API-Key |
| 400 | Missing or invalid image field, or bad base64 |
| 413 | Body over 8 MB, or decoded image over 6 MB |
| 405 | Any method other than POST |
| 500 | Model or processing failure |
How to get it
FastHand OCR is not a hosted service. Clone the repository, set one secret with Wrangler (Cloudflare's command-line deploy tool), and the API is live on your own workers.dev domain.
https://github.com/FastHand-Studio/Fasthand-ocr
Everyone calling your worker uses the same API_KEY value. Rotate it whenever you like — another wrangler secret put with a new value, no code change.
wrangler login
echo "put-a-strong-random-key-here" | wrangler secret put API_KEY
npm run deployNeeds Node 18+ and a Cloudflare account with Workers and Workers AI enabled. The key lives as a Cloudflare secret, never in the repo.
Stack and licence
What the service is made of, and what it costs to run — both quoted from the README.
Pricing, small print
Estimate: about $0.13 per 1,000 scans. The Workers AI free daily allowance (10,000 neurons, roughly $5 of model usage) covers approximately 30,000–40,000 scans a day before anything is billed; exact numbers depend on image size and text density. Full breakdown in the README pricing section.