AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Insurance › text-extract-api
✦ Free & open sourceInsurance

text-extract-api

FastAPI service to convert documents into structured JSON or Markdown using local vision models and remove PII.

Privacy-first document extraction and PII redaction API

Extract tables, text, and JSON from insurance documents using local vision LLMs and PyTorch OCR.

Free forever · open source · MIT
✓ Needs IT✓ Browser-based✓ Real-time collaboration
6.5
ZEKAI
Powerful local doc parsing API
Free & open source · Insurance
Ease of setup4
Usefulness9
Maintenance5.5
Community7.5
★ 3,188
GITHUB
Dec 2025
UPDATED
MIT
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

This tool is a self-hosted API service for extracting structured data and removing PII from scanned documents and PDFs. Insurance technical teams can process claims, invoices, and medical records entirely on-premise using Ollama and PyTorch vision models. It provides a queue-backed architecture designed for high-throughput backend automation.

Runs on
Cross-platform
Hosting
Self-host
Languages
Python
License
MIT

What it is

It converts PDFs, images, and Office files into clean Markdown or JSON format while handling tabular data and specialized forms. The core service pairs EasyOCR or local vision LLMs with Celery workers and Redis caching to execute extraction pipelines without sending sensitive data outside your network.

Who it's for

It suits insurance developers and data engineers who need to parse sensitive claim forms and anonymize customer records on local hardware. It does not suit non-technical teams looking for a ready-made graphical user interface out of the box.

Key features

Local vision OCR processing

Runs PyTorch OCR models and local LLMs through Ollama to keep sensitive insurance records inside your environment.

Automated PII redaction

Extracts document text while identifying and stripping out personally identifiable information before downstream storage.

Asynchronous queue with Celery

Uses Celery workers and Redis caching to process high-volume document batches concurrently.

Flexible output parsing

Converts complex tables, invoices, and reports into formatted Markdown or structured JSON schemas.

Remote engine integration

Supports external OCR wrappers like Marker-pdf via API endpoints for complex multi-language layouts.

How to start

Up and running in 3 steps

1
Install dependencies including Ollama, Docker, and system libraries like poppler and ghostscript.
2
Clone the repository, initialize your virtual environment, and execute the Makefile setup commands.
3
Pull your target vision model in Ollama and submit documents via the included CLI tool or FastAPI endpoints.
Real talk

Our honest verdict

What's great

  • Zero external cloud dependencies keep sensitive claim files strictly on local infrastructure.
  • Redis caching prevents redundant processing when running repetitive LLM extraction tasks.
  • Supports both standard OCR engines and vision-capable LLMs like Llama 3.2 Vision and MiniCPM-V.
  • Includes a dedicated command-line interface for testing prompt files against complex documents.

Where it falls short

  • Requires dedicated hardware or GPU resources to run vision LLMs with acceptable performance.
  • Setting up workers, Redis, and Ollama models requires significant DevOps and Python expertise.
  • Using GPL-licensed OCR engines like Marker requires separate server deployment to avoid license contamination.
  • Llama 3.2 Vision strategy can be very slow when processing large multi-page document batches.
Cost

Pricing & license

The software is free to use under the MIT license. The only cost comes from operating the compute servers and local GPU resources required to process documents.

Paid work

Open remote AI-training roles

880 open remote AI-training roles, updated November 15, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives
Get more

Use it, or have us set it up

📄 Free PDF: text-extract-api for Insurance
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure text-extract-api for you — and train your team.
Get it done for you ↗
Questions

FAQ

Can I run this without sending data to external cloud providers?

Yes, the complete pipeline including PyTorch OCR, Ollama models, Redis, and FastAPI runs entirely on your own local machine or private server.

How does the tool strip sensitive client data?

You can pass custom prompt files during submission to instruct the integrated LLM to scrub personally identifiable information before returning the JSON output.

Can it parse complex tables in medical or claims reports?

Yes, the underlying vision models and OCR strategies convert complex tabular data into structured Markdown or JSON.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Insurance — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google