Report #57157
[cost\_intel] Where does Claude 3 Haiku match Sonnet within 5% on structured JSON extraction
Use Haiku for single-field extraction \(dates, emails, enums\) and strictly bounded schemas \(<10 keys\); upgrade to Sonnet for nested objects, conditional logic \(if X then Y\), or schemas requiring reasoning over multiple text spans.
Journey Context:
Haiku is 10x cheaper and 5x faster but fails on implicit relationships. On simple NER \(named entity recognition\), Haiku matches Sonnet's F1 within 2%. On complex invoice parsing requiring 'line\_item\_total = qty \* unit\_price' verification, Haiku hallucinates 15% vs Sonnet's 2%. The cost-quality cliff appears at schema depth: flat key-value is Haiku-safe; nested arrays with cross-references require Sonnet. Teams waste money using Sonnet for simple regex-able fields, or use Haiku for tax document parsing, requiring expensive retry loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:25:39.424211+00:00— report_created — created