That trade-off is real, especially at low volume. I would not provision a dedicated GPU for every pipeline, though. The cost-effective pattern is a cascade: run lightweight CPU OCR first, route only low-confidence or layout-heavy pages to the local VLM, batch requests, quantize the model, and share one inference server across workloads. For sporadic traffic, an API is usually cheaper; for sustained volume, strict data residency, or predictable latency, the amortized local stack can win. Local-first is a control and privacy choice, not automatically the cheapest choice in every workload.
Muhammad Azlaan Zubair
Software Engineer | Applied AI Researcher | AI Workflows & Automation
Great read on the local-first architecture! One thing I'm wondering about though: doesn't shifting to locally hosted OCR VLMs and serving models locally significantly increase your infrastructure and inference costs compared to lightweight APIs, especially if you have to provision dedicated GPUs?