A
AI Infrastructure

AI OCR & ExtractionExtract text from any image or document

The Helix AI OCR API extracts text from images and scanned documents in 100+ languages. It combines Tesseract OCR with HuggingFace TrOCR fallback for handwriting, supports structured output with bounding boxes, and handles receipts, invoices, business cards, and license plates.

  • Free tier with 100 requests/month
  • Fast, cached responses
  • 99.9% uptime target
  • Standard REST + JSON
Interactive Demo
OCR — Extract text from image
To OCR

What is the AI OCR & Extraction API?

The Helix AI OCR API extracts text from images and scanned documents in 100+ languages. It combines Tesseract OCR with HuggingFace TrOCR fallback for handwriting, supports structured output with bounding boxes, and handles receipts, invoices, business cards, and license plates.

How it works

  1. 1POST an image URL or upload a file to /extract — receive the plain text.
  2. 2POST to /extract/structured for bounding boxes around each word/line/block.
  3. 3Specify `lang` (eng, fra, deu, spa, chi_sim, etc.) — 100+ languages.
  4. 4Handwriting? Pass `model=trocr` to use the HuggingFace TrOCR model.
  5. 5Tables and forms are detected automatically — output includes a `tables` array.

Endpoints

3 REST endpoints, all returning consistent JSON.

POST
/extract

Extract text from image URL or upload

POST
/extract/structured

Extract with bounding boxes

GET
/languages

List supported languages

Code in 5 languages

Copy and paste into your project. Replace YOUR_API_KEY with your RapidAPI key.

// AI OCR & Extraction API
const response = await fetch(
  "https://ai-ocr-by-helix-api.p.rapidapi.com/extract",
  {
    method: "POST",
    headers: {
      "X-RapidAPI-Key": "YOUR_API_KEY",
      "X-RapidAPI-Host": "ai-ocr-by-helix-api.p.rapidapi.com",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({ "query": "your input" })
  }
);

const data = await response.json();
console.log(data);

What developers build with this API

Real use cases from production deployments.

1

Receipt Scanning for Expense Apps

Build a Concur/Expensify alternative. Users snap a photo, your app extracts vendor, amount, date, and line items in <2 seconds.

2

Business Card Capture

Scan a card at a trade show → auto-populate your CRM with name, title, company, email, phone. No more typing.

3

Invoice Processing

Pipe scanned PDFs through OCR → extract structured invoice data → push to QuickBooks or Xero. Automate accounts payable end-to-end.

4

License Plate Recognition

Parking lots, drive-throughs, and fleet management. The API is fast enough for real-time ALPR at 5 FPS.

5

Document Digitization

Convert paper archives to searchable text. Combine with our Embeddings API for semantic search over decades of old documents.

Pricing

All tiers include this API. No credit card for free tier.

BASIC

Free

  • 100 reqs/month
  • Hard limit
  • ✓ All endpoints
Most Popular

PRO

$9.99/mo

  • 10,000/month
  • +$0.005 each
  • ✓ All endpoints

ULTRA

$29.99/mo

  • 100,000/month
  • +$0.002 each
  • ✓ All endpoints

MEGA

$99.99/mo

  • 1,000,000/month
  • +$0.001 each
  • ✓ All endpoints

View all 20 APIs included →

Frequently asked questions

Real answers to questions developers ask before integrating.

What image formats are supported?
PNG, JPEG, WebP, TIFF, BMP, and PDF (multi-page). Max 10MB per file on standard plans, 50MB on Ultra+.
How accurate is it?
98%+ on printed text in well-lit images. 85-92% on handwriting (use the TrOCR model). 75-80% on faded receipts or low-resolution photos.
Can I get bounding box coordinates?
Yes — POST /extract/structured returns word, line, paragraph, and block-level bounding boxes.
Does it work on handwriting?
Yes — pass `model=trocr` to use Microsoft's TrOCR model. Best for printed-style handwriting; cursive accuracy varies.
Can I OCR a PDF?
Yes. Upload the PDF and we'll OCR every page. For text-PDFs (already extractable), use our PDF Parser API instead — it's 10x faster.
Is there a confidence score per word?
Yes — structured output includes a 0-100 confidence score per token. Filter low-confidence tokens for cleaner downstream processing.

More AI Infrastructure APIs

Start building with real APIs today

Free tier on every API, a live demo on every page, and a guide for each. No credit card to explore.

Helix-API Newsletter

Get new API launches, integration guides, and code examples in your inbox.