All work
Applied AI

Vision Model Evaluation Harness

A cost-aware benchmark that compares nine vision models on extraction accuracy while fetching current per-token pricing at runtime.

Problem

Model quality claims are hard to compare and pricing changes quickly. Selecting a production OCR model required a repeatable test set, a scored baseline, and the real cost of each run rather than a demo-driven choice. The harness turns model selection into an evaluation that can be rerun when models, prompts, or prices change.

Benchmark loop

01

Freeze the task

Use the same representative receipt set and expected structured fields for every model.

02

Run every model

Normalize provider responses into one schema and retain errors instead of dropping failed cases.

03

Score against truth

Compare extracted values with the baseline field by field so one plausible answer cannot hide another miss.

04

Fetch current pricing

Calculate cost from runtime token usage and current provider pricing rather than a stale spreadsheet.

05

Choose by frontier

Compare quality and cost together; the best model is the one that meets the production threshold economically.

Decision / Accuracy is not enough

Treat cost as part of model behavior.

A model that wins a small accuracy margin can lose in production if it costs several times more at real document volume. Fetching prices at runtime keeps that tradeoff visible and makes the recommendation reproducible.

9

models, one scored baseline

Built with

TypeScriptModel EvaluationVision ModelsStructured OutputPricing APIs

Want something like this built?

I take on a few web, SEO and AI automation projects alongside full-time work, and I'm open to remote engineering roles.

More work like this

Production Systems

Bonavista Maintenance Suite

10,334 work orders and 30,201 geofenced check-ins across 95 field staff.

Work Orders
10,334
Work Orders
Case study

Production Systems

Expense Reconciliation System

$2.78M reconciled across 6,539 receipts, with 86.8% auto-matched.

Spend Reconciled
$2.78M
Spend Reconciled
Case study

Node.js · TypeScript · MCP SDK

MCPServer Protocol

Integrations

RentCafe MCP Server

Opened live leasing data to AI agents — no vendor API required.

Server Protocol
MCP
Server Protocol
Case study