Mailroom evaluation reports

Cost comparison — Modal L4 (vLLM) vs hosted API

Data 16–28 Sep 2026 · generated by sandbox reports/dashboard/export_hub_reports.py from the cross-checked reports hub · sources: local-mailroom-sandbox @ 95d89fa8f401 · eval-environment @ 86b4e54fc5a2 · mailroom-ml @ d3ad22263da0

Bottom line.

Cost per document by route and model — Modal L4 (SAND-032) vs hosted API Correspondence Cost per completed document · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.001 0.002 0.003 0.004 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: $0.00014 — n = 50 · sand032-s3-corr50 $0.00014 API · Qwen3.7-Flash API · Qwen3.7-Flash: $0.00045 — n = 50 · 20260928T090253Z-eval-correspondence $0.00045 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: $0.00060 — n = 20 · 20260927T105317Z-eval-correspondence $0.00060 API · Granite-4.2-8B API · Granite-4.2-8B: $0.0015 — n = 20 · 20260927T053647Z-eval-correspondence $0.0015 API · Qwen3-8B API · Qwen3-8B: $0.0030 — n = 20 · 20260927T033031Z-eval-correspondence $0.0030 Insurance claims Cost per completed document · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.0005 0.001 0.0015 0.002 API · Qwen3.7-Flash API · Qwen3.7-Flash: $0.00051 — n = 50 · 20260928T070248Z-eval-insurance_claims $0.00051 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: $0.00054 — n = 50 · sand032-s3-insurance50 $0.00054 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: $0.00068 — n = 20 · 20260927T105400Z-eval-insurance_claims $0.00068 API · Granite-4.2-8B API · Granite-4.2-8B: $0.0012 — n = 20 · 20260927T054211Z-eval-insurance_claims $0.0012 API · Qwen3-8B API · Qwen3-8B: $0.0016 — n = 20 · 20260927T035135Z-eval-insurance_claims $0.0016 Corporate records Cost per completed document · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.001 0.002 0.003 0.004 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: $0.00050 — n = 50 · sand032-s3-corporate50 $0.00050 API · Qwen3.7-Flash API · Qwen3.7-Flash: $0.00079 — n = 50 · 20260928T083627Z-eval-corporate_records $0.00079 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: $0.00098 — n = 20 · 20260927T110828Z-eval-corporate_records $0.00098 API · Granite-4.2-8B API · Granite-4.2-8B: $0.0022 — n = 20 · 20260927T065622Z-eval-corporate_records $0.0022 API · Qwen3-8B API · Qwen3-8B: $0.0030 — n = 20 · 20260927T042239Z-eval-corporate_records $0.0030 Contracts Cost per completed document · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.002 0.004 0.006 API · Qwen3.7-Flash API · Qwen3.7-Flash: $0.0015 — n = 50 · 20260928T063713Z-eval-contracts $0.0015 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: $0.0022 — n = 47 · sand032-s3-contracts50 $0.0022 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: $0.0025 — n = 20 · 20260927T105549Z-eval-contracts $0.0025 API · Granite-4.2-8B API · Granite-4.2-8B: $0.0037 — n = 20 · 20260927T054738Z-eval-contracts $0.0037 API · Qwen3-8B API · Qwen3-8B: $0.0057 — n = 20 · 20260927T035621Z-eval-contracts $0.0057 Merger agreements Cost per completed document · lower is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B 0 0.0025 0.005 0.0075 0.01 API · Qwen3.7-Flash (frozen prompts) API · Qwen3.7-Flash (frozen prompts): $0.0029 — n = 20 · 20260927T022750Z-eval-merger_agreement $0.0029 API · Qwen3.7-Flash API · Qwen3.7-Flash: $0.0032 — n = 50 · 20260928T070803Z-eval-merger_agreement $0.0032 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: $0.0038 — n = 20 · 20260927T110153Z-eval-merger_agreement $0.0038 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: $0.0043 — n = 46 · sand032-s5-merger50-maud $0.0043 API · Granite-4.2-8B API · Granite-4.2-8B: $0.0089 — n = 20 · 20260927T082404Z-eval-merger_agreement $0.0089
Modal L4 vs the cheapest hosted model, cost per document Modal = SAND-032 2×L4 busy-window · API = cheapest hosted model for the class · lower is better Modal L4 cheapest API 0 0.002 0.004 0.006 Contracts Contracts · Modal L4: $0.0022 Contracts · cheapest API: $0.0015 Modal $0.0022 · Qwen3.7-Flash $0.0015 Corporate records Corporate records · Modal L4: $0.00050 Corporate records · cheapest API: $0.00079 Modal $0.00050 · Qwen3.7-Flash $0.00079 Correspondence Correspondence · Modal L4: $0.00014 Correspondence · cheapest API: $0.00045 Modal $0.00014 · Qwen3.7-Flash $0.00045 Insurance claims Insurance claims · Modal L4: $0.00054 Insurance claims · cheapest API: $0.00051 Modal $0.00054 · Qwen3.7-Flash $0.00051 Merger agreements Merger agreements · Modal L4: $0.0043 Merger agreements · cheapest API: $0.0029 Modal $0.0043 · Qwen3.7-Flash · frozen $0.0029
Modal vs the cheapest hosted model

1. How each route is costed#

Modal L4 · vLLM (sandbox, SAND-032) Hosted API · OpenRouter (eval-environment)
Model Qwen3-8B-AWQ, the only model self-hosted: frozen L5 posture (awq_marlin, fp8 KV, thinking off, CUDA graphs) API only, never self-hosted: Qwen3.7-Flash (the pipeline's production model), Qwen3-8B, DeepSeek-V4.1-Flash, Granite-4.2-8B
Unit price $0.80 per L4-hour, 2×L4 = $1.60/h OpenRouter list price × recorded prompt/completion tokens
Cost per document busy-window GPU time ÷ completed documents (excludes cold boot and idle) run cost total ÷ scored documents
Fixed cost cold cycle = L5 boot (216 s deploy→ready) + scale-down tail (120 s) per replica = $0.075 on 1×L4, $0.149 on 2×L4 none
Draw 50 documents per class, mailroom-dataset revision ed7576b6 20 per class (Qwen3.7-Flash: 50), revision 46a4d3c2, train split

Busy-window pricing is a floor for bursty traffic (every scale-up pays the boot, idle replicas are not counted) and close to the true price for a steady queue. Draws, dataset revisions and prompts differ between the legs. See §6.

2. Cost and quality per task#

Task Route · model n Score $/doc $ per 1k docs Run Revision
Correspondence Modal · Qwen3-8B-AWQ 50 0.3004 $0.00014 $0.142 sand032-s3-corr50 ed7576b6
Correspondence API · Qwen3.7-Flash 50 0.4931 $0.00045 $0.449 20260928T090253Z-eval-correspondence 46a4d3c2
Correspondence API · DeepSeek-V4.1-Flash 20 0.4419 $0.00060 $0.603 20260927T105317Z-eval-correspondence 46a4d3c2
Correspondence API · Granite-4.2-8B 20 0.4065 $0.0015 $1.46 20260927T053647Z-eval-correspondence 46a4d3c2
Correspondence API · Qwen3-8B 20 0.5130 $0.0030 $3.02 20260927T033031Z-eval-correspondence 46a4d3c2
Insurance claims API · Qwen3.7-Flash 50 0.7733 $0.00051 $0.506 20260928T070248Z-eval-insurance_claims 46a4d3c2
Insurance claims Modal · Qwen3-8B-AWQ 50 0.6881 $0.00054 $0.539 sand032-s3-insurance50 ed7576b6
Insurance claims API · DeepSeek-V4.1-Flash 20 0.7974 $0.00067 $0.675 20260927T105400Z-eval-insurance_claims 46a4d3c2
Insurance claims API · Granite-4.2-8B 20 0.7135 $0.0012 $1.24 20260927T054211Z-eval-insurance_claims 46a4d3c2
Insurance claims API · Qwen3-8B 20 0.7488 $0.0016 $1.60 20260927T035135Z-eval-insurance_claims 46a4d3c2
Corporate records Modal · Qwen3-8B-AWQ 50 0.4583 $0.00050 $0.500 sand032-s3-corporate50 ed7576b6
Corporate records API · Qwen3.7-Flash 50 0.4178 $0.00079 $0.786 20260928T083627Z-eval-corporate_records 46a4d3c2
Corporate records API · DeepSeek-V4.1-Flash 20 0.4415 $0.00098 $0.984 20260927T110828Z-eval-corporate_records 46a4d3c2
Corporate records API · Granite-4.2-8B 20 0.4156 $0.0022 $2.18 20260927T065622Z-eval-corporate_records 46a4d3c2
Corporate records API · Qwen3-8B 20 0.4004 $0.0030 $3.01 20260927T042239Z-eval-corporate_records 46a4d3c2
Contracts API · Qwen3.7-Flash 50 0.5462 $0.0015 $1.48 20260928T063713Z-eval-contracts 46a4d3c2
Contracts Modal · Qwen3-8B-AWQ 47 0.6011 $0.0022 $2.22 sand032-s3-contracts50 ed7576b6
Contracts API · DeepSeek-V4.1-Flash 20 0.5137 $0.0025 $2.51 20260927T105549Z-eval-contracts 46a4d3c2
Contracts API · Granite-4.2-8B 20 0.4769 $0.0037 $3.70 20260927T054738Z-eval-contracts 46a4d3c2
Contracts API · Qwen3-8B 20 0.6169 $0.0057 $5.70 20260927T035621Z-eval-contracts 46a4d3c2
Merger agreements API · Qwen3.7-Flash (frozen prompts) 20 0.3748 $0.0029 $2.88 20260927T022750Z-eval-merger_agreement 46a4d3c2
Merger agreements API · Qwen3.7-Flash 50 0.5213 $0.0032 $3.22 20260928T070803Z-eval-merger_agreement 46a4d3c2
Merger agreements API · DeepSeek-V4.1-Flash 20 0.2423 $0.0038 $3.76 20260927T110153Z-eval-merger_agreement 46a4d3c2
Merger agreements Modal · Qwen3-8B-AWQ 46 0.0830 $0.0043 $4.28 sand032-s5-merger50-maud ed7576b6
Merger agreements API · Granite-4.2-8B 20 0.4548 $0.0089 $8.87 20260927T082404Z-eval-merger_agreement 46a4d3c2
Extraction quality by route and model — same tasks, same scorer except contracts Correspondence Overall extraction score (0–1) · higher is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.2 0.4 0.6 API · Qwen3-8B API · Qwen3-8B: 0.513 — n = 20 · 20260927T033031Z-eval-correspondence 0.513 API · Qwen3.7-Flash API · Qwen3.7-Flash: 0.493 — n = 50 · 20260928T090253Z-eval-correspondence 0.493 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: 0.442 — n = 20 · 20260927T105317Z-eval-correspondence 0.442 API · Granite-4.2-8B API · Granite-4.2-8B: 0.406 — n = 20 · 20260927T053647Z-eval-correspondence 0.406 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: 0.300 — n = 50 · sand032-s3-corr50 0.300 Insurance claims Overall extraction score (0–1) · higher is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.2 0.4 0.6 0.8 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: 0.797 — n = 20 · 20260927T105400Z-eval-insurance_claims 0.797 API · Qwen3.7-Flash API · Qwen3.7-Flash: 0.773 — n = 50 · 20260928T070248Z-eval-insurance_claims 0.773 API · Qwen3-8B API · Qwen3-8B: 0.749 — n = 20 · 20260927T035135Z-eval-insurance_claims 0.749 API · Granite-4.2-8B API · Granite-4.2-8B: 0.714 — n = 20 · 20260927T054211Z-eval-insurance_claims 0.714 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: 0.688 — n = 50 · sand032-s3-insurance50 0.688 Corporate records Overall extraction score (0–1) · higher is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.2 0.4 0.6 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: 0.458 — n = 50 · sand032-s3-corporate50 0.458 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: 0.442 — n = 20 · 20260927T110828Z-eval-corporate_records 0.442 API · Qwen3.7-Flash API · Qwen3.7-Flash: 0.418 — n = 50 · 20260928T083627Z-eval-corporate_records 0.418 API · Granite-4.2-8B API · Granite-4.2-8B: 0.416 — n = 20 · 20260927T065622Z-eval-corporate_records 0.416 API · Qwen3-8B API · Qwen3-8B: 0.400 — n = 20 · 20260927T042239Z-eval-corporate_records 0.400 Contracts Modal: CUAD category F1 · API: pipeline rubric — not like-for-like Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B 0 0.2 0.4 0.6 0.8 API · Qwen3-8B API · Qwen3-8B: 0.617 — n = 20 · 20260927T035621Z-eval-contracts 0.617 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: 0.601 — n = 47 · sand032-s3-contracts50 0.601 API · Qwen3.7-Flash API · Qwen3.7-Flash: 0.546 — n = 50 · 20260928T063713Z-eval-contracts 0.546 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: 0.514 — n = 20 · 20260927T105549Z-eval-contracts 0.514 API · Granite-4.2-8B API · Granite-4.2-8B: 0.477 — n = 20 · 20260927T054738Z-eval-contracts 0.477 Merger agreements Overall extraction score (0–1) · higher is better Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B 0 0.2 0.4 0.6 API · Qwen3.7-Flash API · Qwen3.7-Flash: 0.521 — n = 50 · 20260928T070803Z-eval-merger_agreement 0.521 API · Granite-4.2-8B API · Granite-4.2-8B: 0.455 — n = 20 · 20260927T082404Z-eval-merger_agreement 0.455 API · Qwen3.7-Flash (frozen prompts) API · Qwen3.7-Flash (frozen prompts): 0.375 — n = 20 · 20260927T022750Z-eval-merger_agreement 0.375 API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: 0.242 — n = 20 · 20260927T110153Z-eval-merger_agreement 0.242 Modal · Qwen3-8B-AWQ Modal · Qwen3-8B-AWQ: 0.083 — n = 46 · sand032-s5-merger50-maud 0.083

Cost per 0.1 of quality (lower is better; $/doc ÷ score × 0.1). This shows what each route pays for the same quality increment:

Task Route · model Score $/doc $ per 0.1 score
Correspondence Modal · Qwen3-8B-AWQ 0.3004 $0.00014 $0.000047
Correspondence API · Qwen3.7-Flash 0.4931 $0.00045 $0.000091
Correspondence API · DeepSeek-V4.1-Flash 0.4419 $0.00060 $0.00014
Correspondence API · Granite-4.2-8B 0.4065 $0.0015 $0.00036
Correspondence API · Qwen3-8B 0.5130 $0.0030 $0.00059
Insurance claims API · Qwen3.7-Flash 0.7733 $0.00051 $0.000065
Insurance claims Modal · Qwen3-8B-AWQ 0.6881 $0.00054 $0.000078
Insurance claims API · DeepSeek-V4.1-Flash 0.7974 $0.00067 $0.000085
Insurance claims API · Granite-4.2-8B 0.7135 $0.0012 $0.00017
Insurance claims API · Qwen3-8B 0.7488 $0.0016 $0.00021
Corporate records Modal · Qwen3-8B-AWQ 0.4583 $0.00050 $0.00011
Corporate records API · Qwen3.7-Flash 0.4178 $0.00079 $0.00019
Corporate records API · DeepSeek-V4.1-Flash 0.4415 $0.00098 $0.00022
Corporate records API · Granite-4.2-8B 0.4156 $0.0022 $0.00052
Corporate records API · Qwen3-8B 0.4004 $0.0030 $0.00075
Contracts API · Qwen3.7-Flash 0.5462 $0.0015 $0.00027
Contracts Modal · Qwen3-8B-AWQ 0.6011 $0.0022 $0.00037
Contracts API · DeepSeek-V4.1-Flash 0.5137 $0.0025 $0.00049
Contracts API · Granite-4.2-8B 0.4769 $0.0037 $0.00078
Contracts API · Qwen3-8B 0.6169 $0.0057 $0.00092
Merger agreements API · Qwen3.7-Flash 0.5213 $0.0032 $0.00062
Merger agreements API · Qwen3.7-Flash (frozen prompts) 0.3748 $0.0029 $0.00077
Merger agreements API · DeepSeek-V4.1-Flash 0.2423 $0.0038 $0.0016
Merger agreements API · Granite-4.2-8B 0.4548 $0.0089 $0.0020
Merger agreements Modal · Qwen3-8B-AWQ 0.0830 $0.0043 $0.0052

3. When does Modal pay off? Break-even and the optimal scenario#

Every comparison here is per completed document, because that is what the mailroom pays for.

Which model runs where. The only model self-hosted on Modal is Qwen3-8B-AWQ (vLLM, 4-bit AWQ). Every hosted model, including the pipeline's production model Qwen3.7-Flash, ran only through the API. §3.1 and §3.3–3.5 therefore compare Modal against the cheapest hosted model, which is a different model; §3.2 holds the model fixed and compares only the route.

Three measured quantities turn that per-document floor into a deployment decision:

Cells marked † apply that measured result to a fleet size the class was not run on.

Modal wins where it is cheaper per document than the cheapest hosted model and scores at least as well as that model, so replacing it loses nothing. It becomes cheaper at either of two break-evens:

3.1 Verdict per class (the scored run in §2)#

Class Modal (Qwen3-8B-AWQ) run · fleet Modal $/doc Modal score Cheapest API API $/doc API score Modal ÷ API Saved per 1,000 docs Verdict
Contracts sand032-s3-contracts50 · 2×L4 $0.0022 0.601 Qwen3.7-Flash $0.0015 0.546 1.50× −$0.737 API cheaper at any volume
Corporate records sand032-s3-corporate50 · 2×L4 $0.00050 0.458 Qwen3.7-Flash $0.00079 0.418 0.64× $0.285 Modal wins on cost and quality
Correspondence sand032-s3-corr50 · 2×L4 $0.00014 0.300 Qwen3.7-Flash $0.00045 0.493 0.32× $0.307 Modal cheaper, lower quality
Insurance claims sand032-s3-insurance50 · 2×L4 $0.00054 0.688 Qwen3.7-Flash $0.00051 0.773 1.07× −$0.033 API cheaper at any volume
Merger agreements sand032-s5-merger50-maud · 2×L4 $0.0043 0.083 Qwen3.7-Flash · frozen $0.0029 0.375 1.49× −$1.40 API cheaper at any volume

3.2 Same model, two routes: Qwen3-8B-AWQ on Modal vs Qwen3-8B via the API#

Class Modal run Modal $/doc Modal score API Qwen3-8B $/doc API score Modal ÷ API API ÷ Modal Warm 1×L4 break-even docs/h Cold batch ≥ N (1×L4)
Contracts sand032-s3-contracts50 $0.0022 0.601 $0.0057 0.617 0.39× 2.6× 140 22
Corporate records sand032-s3-corporate50 $0.00050 0.458 $0.0030 0.400 0.17× 6.0× 266 30
Correspondence sand032-s3-corr50 $0.00014 0.300 $0.0030 0.513 0.05× 21.2× 265 26
Insurance claims sand032-s3-insurance50 $0.00054 0.688 $0.0016 0.749 0.34× 3.0× 499 71

Self-hosting the same model is 2.6–21.2× cheaper per document than renting it through the API on contracts, corporate records, correspondence and insurance claims. A warm fleet breaks even at 5%–39% busy. Both legs ran the production prompt set (on the API, eval-environment's frozen copy of it). The scores still differ because Modal serves the 4-bit AWQ quantization and the two legs drew different documents from different dataset revisions (§6). The API leg has no Qwen3-8B run for merger agreements.

3.3 Every measured Modal configuration against the cheapest API#

Each row's score comes from its own run report. Runs that are not deployable configurations (the ladder rungs, the bf16 control, and the S7 runs whose router sent nearly every request to one replica) are left out.

Class Run Fleet Prompts $/doc Score ÷ cheapest API Verdict
Contracts sand032-s3-contracts50 2×L4 production $0.0022 0.601 1.50× API cheaper at any volume
Contracts sand032-s9-contracts50-bal 2×L4 production $0.0022 0.591 1.50× API cheaper at any volume
Corporate records sand032-s10-corporate75-v2 1×L4 v2 $0.00039 0.469 0.50× Modal wins on cost and quality
Corporate records sand032-s9-corporate50-bal 2×L4 production $0.00043 0.439 0.55× Modal wins on cost and quality
Corporate records sand032-s3-corporate50 2×L4 production $0.00050 0.458 0.64× Modal wins on cost and quality
Correspondence sand032-s3-corr50 2×L4 production $0.00014 0.300 0.32× Modal cheaper, lower quality
Correspondence sand032-s9-corr100-bal 2×L4 production $0.00017 0.287 0.39× Modal cheaper, lower quality
Correspondence sand032-s3-corr50-repeat 2×L4 production $0.00019 0.304 0.42× Modal cheaper, lower quality
Correspondence sand032-l5-graphs 1×L4 production $0.00020 0.284 0.44× Modal cheaper, lower quality
Correspondence sand032-s2b-corr100-2rep 2×L4 production $0.00021 0.297 0.46× Modal cheaper, lower quality
Correspondence sand032-s2a-corr100-1rep 1×L4 production $0.00021 0.289 0.47× Modal cheaper, lower quality
Correspondence sand032-s10-corr75-v2 1×L4 v2 $0.00022 0.345 0.49× Modal cheaper, lower quality
Insurance claims sand032-s10-insurance75-v2 1×L4 v2 $0.00043 0.667 0.85× Modal cheaper, lower quality
Insurance claims sand032-s9-insurance50-bal 2×L4 production $0.00047 0.682 0.93× Modal cheaper, lower quality
Insurance claims sand032-s3-insurance50 2×L4 production $0.00054 0.688 1.07× API cheaper at any volume
Merger agreements sand032-s3-merger50 2×L4 production $0.0035 0.040 1.20× API cheaper at any volume
Merger agreements sand032-s5-merger50-maud 2×L4 MAUD $0.0043 0.083 1.49× API cheaper at any volume

3.4 Break-even volumes#

Each class uses its deciding configuration: the cheapest one that wins, else the cheapest one that undercuts the API, else the cheapest one. The chart draws the same configurations.

Class Configuration Warm 1×L4 break-even docs/h 1×L4 capacity docs/h Warm 2×L4 break-even docs/h 2×L4 capacity docs/h Cold batch ≥ N (1×L4) Cold batch ≥ N (2×L4)
Contracts sand032-s3-contracts50 never: Modal floor is 1.50× the API — — — — —
Corporate records sand032-s10-corporate75-v2 1,018 (50% busy) 2,034 2,037 (50% busy) 4,069† 191 381
Correspondence sand032-s3-corr50 1,780 (32% busy) 5,617† 3,561 (32% busy) 11,233 244 487
Insurance claims sand032-s10-insurance75-v2 1,581 (85% busy) 1,852 3,161 (85% busy) 3,703† 1,008 2,016
Merger agreements sand032-s3-merger50 never: Modal floor is 1.20× the API — — — — —
Self-hosted Qwen3-8B-AWQ (Modal) vs the cheapest API model, cost per document (blue = Modal cheaper; one shared scale) Contracts · sand032-s3-contracts50 vs Qwen3.7-Flash (API) Modal $/doc ÷ cheapest API $/doc · below 1.0 Modal is cheaper · API cheaper at any volume 0 2 4 6 parity warm · 100% busy warm · 100% busy: 1.50× — $0.0022 per doc vs $0.0015 1.50× warm · 50% busy warm · 50% busy: 3.00× — $0.0044 per doc vs $0.0015 3.00× warm · 25% busy warm · 25% busy: 6.00× — $0.0089 per doc vs $0.0015 6.00× cold 1×L4 · 1,000 docs cold 1×L4 · 1,000 docs: 1.55× — cold cycle $0.075 1.55× cold 2×L4 · 1,000 docs cold 2×L4 · 1,000 docs: 1.60× — cold cycle $0.149 1.60× Corporate records · sand032-s10-corporate75-v2 vs Qwen3.7-Flash (API) Modal $/doc ÷ cheapest API $/doc · below 1.0 Modal is cheaper · Modal wins on cost and quality 0 2 4 6 parity warm · 100% busy warm · 100% busy: 0.50× — $0.00039 per doc vs $0.00079 0.50× warm · 50% busy warm · 50% busy: 1.00× — $0.00079 per doc vs $0.00079 1.00× warm · 25% busy warm · 25% busy: 2.00× — $0.0016 per doc vs $0.00079 2.00× cold 1×L4 · 1,000 docs cold 1×L4 · 1,000 docs: 0.60× — cold cycle $0.075 0.60× cold 2×L4 · 1,000 docs cold 2×L4 · 1,000 docs: 0.69× — cold cycle $0.149 0.69× Correspondence · sand032-s3-corr50 vs Qwen3.7-Flash (API) Modal $/doc ÷ cheapest API $/doc · below 1.0 Modal is cheaper · Modal cheaper, lower quality 0 2 4 6 parity warm · 100% busy warm · 100% busy: 0.32× — $0.00014 per doc vs $0.00045 0.32× warm · 50% busy warm · 50% busy: 0.63× — $0.00028 per doc vs $0.00045 0.63× warm · 25% busy warm · 25% busy: 1.27× — $0.00057 per doc vs $0.00045 1.27× cold 1×L4 · 1,000 docs cold 1×L4 · 1,000 docs: 0.48× — cold cycle $0.075 0.48× cold 2×L4 · 1,000 docs cold 2×L4 · 1,000 docs: 0.65× — cold cycle $0.149 0.65× Insurance claims · sand032-s10-insurance75-v2 vs Qwen3.7-Flash (API) Modal $/doc ÷ cheapest API $/doc · below 1.0 Modal is cheaper · Modal cheaper, lower quality 0 2 4 6 parity warm · 100% busy warm · 100% busy: 0.85× — $0.00043 per doc vs $0.00051 0.85× warm · 50% busy warm · 50% busy: 1.71× — $0.00086 per doc vs $0.00051 1.71× warm · 25% busy warm · 25% busy: 3.42× — $0.0017 per doc vs $0.00051 3.42× cold 1×L4 · 1,000 docs cold 1×L4 · 1,000 docs: 1.00× — cold cycle $0.075 1.00× cold 2×L4 · 1,000 docs cold 2×L4 · 1,000 docs: 1.15× — cold cycle $0.149 1.15× Merger agreements · sand032-s3-merger50 vs Qwen3.7-Flash · frozen (API) Modal $/doc ÷ cheapest API $/doc · below 1.0 Modal is cheaper · API cheaper at any volume 0 2 4 6 parity warm · 100% busy warm · 100% busy: 1.20× — $0.0035 per doc vs $0.0029 1.20× warm · 50% busy warm · 50% busy: 2.40× — $0.0069 per doc vs $0.0029 2.40× warm · 25% busy warm · 25% busy: 4.81× — $0.014 per doc vs $0.0029 4.81× cold 1×L4 · 1,000 docs cold 1×L4 · 1,000 docs: 1.23× — cold cycle $0.075 1.23× cold 2×L4 · 1,000 docs cold 2×L4 · 1,000 docs: 1.25× — cold cycle $0.149 1.25×
Modal cost per document relative to the cheapest API

3.5 The optimal scenario#

4. Sorter routes#

Route n Doc-type accuracy $/doc Detail
Modal L4 · Qwen3-8B-AWQ (S6) 457 89.5% $0.0017 macro-F1 0.8635
API · DeepSeek-V4.1-Flash 100 95.0% $0.0010 subclass 64% · ECE 0.062
API · Granite-4.2-8B 100 94.0% $0.0015 subclass 49% · ECE 0.034
API · Qwen3.7-Flash 100 91.0% $0.00085 subclass 56% · ECE 0.019
API · Qwen3-8B (n = 20) 20 70.0% $0.0075 subclass 5% · ECE —
ModernBERT · Arm B (local) 323 95.0% $0.0000010 subclass 58.3% · window ECE 0.0259
Sorter routes: document-type accuracy Every way the mailroom can sort · cost per document in each bar's hover and the table Modal · Qwen3-8B-AWQ API · Qwen3.7-Flash API · DeepSeek-V4.1-Flash API · Granite-4.2-8B API · Qwen3-8B ModernBERT (local) 0 0.25 0.5 0.75 1 Modal L4 · Qwen3-8B-AWQ (S6) Modal L4 · Qwen3-8B-AWQ (S6): 89.5% — $0.0017 per document · n = 457 89.5% API · DeepSeek-V4.1-Flash API · DeepSeek-V4.1-Flash: 95.0% — $0.0010 per document · n = 100 95.0% API · Granite-4.2-8B API · Granite-4.2-8B: 94.0% — $0.0015 per document · n = 100 94.0% API · Qwen3.7-Flash API · Qwen3.7-Flash: 91.0% — $0.00085 per document · n = 100 91.0% API · Qwen3-8B (n = 20) API · Qwen3-8B (n = 20): 70.0% — $0.0075 per document · n = 20 70.0% ModernBERT · Arm B (local) ModernBERT · Arm B (local): 95.0% — $0.0000010 per document · n = 323 95.0%

Reading.

5. What the Modal leg cost, and what tuning bought#

The serving ladder (1×L4, correspondence n = 20, same documents every rung):

Rung Change Score Wall tok/s $/doc Boot Gate
l0-baseline baseline (current AWQ posture) 0.2787 31.9 s 1,261 $0.00035 — PASS
l1-nothink + Qwen3 thinking off 0.2742 26.5 s 1,524 $0.00029 123 s PASS
l2-marlin + awq_marlin kernel 0.2674 26.4 s 1,526 $0.00029 120 s REVERT
l5-graphs + CUDA graphs (eager off) 0.2841 18.0 s 2,238 $0.00020 216 s PASS

Spend.

Bucket USD Detail
Sorter pipeline run (bf16) $7.98 run-50-modal-hf: 50 docs, about 5 LLM calls each, up to 4×L4; metered
Granite specialist legs $2.22 merger $1.287; correspondence-50 $0.330; contracts halt window (low end) $0.400; contracts probes (wall × L4 rate) $0.203
Qwen AWQ specialist runs (9) $1.40 insurance $0.094; correspondence A $0.034; correspondence B $0.125; correspondence c5 $0.114; correspondence c8 $0.056; contracts c4 $0.285; contracts c8 $0.375; corporate $0.152; merger $0.164
API legs (OpenRouter) $0.492 7 eval-environment legs $0.480 + qwen-flash ledger $0.012

6. Caveats#

Sources#

Regenerate: in Exios66/local-mailroom-sandbox, run python reports/dashboard/build_hub.py sync && python reports/dashboard/build_hub.py && python reports/dashboard/export_hub_reports.py --out <mailroom-issues>/reports.