ai-invoice-extractor
v0.3.0
Published
AI-based invoice & receipt data extractor.
Downloads
21
Readme
Features
- 🔍 Extract invoice/receipt data
- 🧠 Choose your AI models (open and mistral for now)
- 🔧 Set AI keys with CLI and environment variables
- ⭐ Pretty print the output
- 🔄 Pipe output with other CLI
Usage
Quick start:
npx ai-invoice-extractor -k [openai-api-key] examples/receipt.pngDocs
Get help with -h:
npx ai-invoice-extractor -h
Usage: ai-invoice-extractor [options] <file-path>
AI-based image/PDF invoices/receipts data extractor.
Arguments:
file-path Invoice/receipt file path (image or PDF)
Options:
-v, --vendor [vendor] AI vendor
-m, --model [model] AI model
-k, --key [key] AI key
-p, --pretty Output pretty JSON (default: false)
-h, --help display help for commandUse also environment variables instead of -v, -m and -k:
# EXTRACTOR_VENDOR="openai" # openai (default value) or mistral
# EXTRACTOR_MODEL="o4-mini" # o4-mini (default with openai)
EXTRACTOR_API_KEY=CLI options take precedence over environment variables. For instance, if 'openai' is configured as an environment variable, but you specify 'mistral' through the CLI, the final AI vendor will be determined as 'mistral'.
Copyright
© WellApp - Under MIT license.
