Report #86110
[cost\_intel] Claude Haiku fails validation on nested JSON schemas vs Sonnet cost-quality breakpoint
Use Haiku only for flat schemas ≤3 levels; use Sonnet for nested objects with conditional required fields or >5 levels. Haiku validation failure rate \(15%\) makes it 3x more expensive than Sonnet when accounting for retry loops.
Journey Context:
Teams default to Haiku for 'simple' extraction tasks assuming 10x cost savings. However, on schemas with nested objects \(e.g., user.profile.addresses\[0\].geo\), Haiku hallucinates keys or omits required fields at 10-20x the rate of Sonnet. The hidden cost is retry logic: when validation fails, you must re-call the API. At 15% failure vs 2%, the expected cost of Haiku becomes \(1 \+ 0.15\*1 \+ 0.15^2\*1...\) ≈ 1.18x base cost, erasing savings against Sonnet's 1.02x. For flat schemas \(user.name, user.email\), Haiku performs within 3% of Sonnet and is the correct economic choice.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:07:30.430558+00:00— report_created — created