LLM Strategy
LLM calls are made by OpenClaw only. The Accounting API does not use LLMs.
Primary: Gemini 2.5 Flash
- Fast (~2s per task), cheap (~$0.002/task)
- Native function-calling for routing to API endpoints
- Vision capability for receipt photo extraction
- Available via existing GCP account
Fallback: Claude Haiku
- Better reasoning for ambiguous cases
- PDF understanding for complex invoices
- ~$0.005/task
Usage
Most tasks are simple: extract merchant + amount + date from a receipt, determine which API endpoint to call. Gemini Flash handles this easily.
For complex invoices with multiple line items, VAT calculations, or ambiguous merchant names, the fallback to Claude kicks in.
Cost
At ~100 documents/month for Invotek AS, the LLM cost is under $1/month.