Skip to content

docs(benchmark): add Claude Haiku + Sonnet cost savings; verify per-Mtok pricing#434

Merged
manojmallick merged 1 commit into
developfrom
feat/multi-model-cost-pricing
Jul 5, 2026
Merged

docs(benchmark): add Claude Haiku + Sonnet cost savings; verify per-Mtok pricing#434
manojmallick merged 1 commit into
developfrom
feat/multi-model-cost-pricing

Conversation

@manojmallick

Copy link
Copy Markdown
Owner

Closes #433.

Summary

The quality benchmark reported API input-cost savings for GPT-4o only. This adds Claude Sonnet and Claude Haiku, and corrects stale hardcoded Claude pricing — all against current, verified 2026-07 per-1M-token rates.

Pricing verified

Model Input $/1M Source Repo before
GPT-4o $2.50 OpenAI (stable through 2026) $2.50 ✅
Claude Sonnet 5/4.6 $3.00 platform.claude.com $3.00 ✅
Claude Haiku 4.5 $1.00 platform.claude.com $0.80
Claude Opus 4.8 $5.00 platform.claude.com $15.00 ❌ (gain dashboard)

Changes

  • scripts/run-quality-benchmark.mjs: add Claude Haiku to PRICING; per-model aggregate + a "cost savings by model" table.
  • src/tracking/pricing.js: Haiku $0.80→$1.00, Opus $15→$5 (current published rates).
  • docs-vp/guide/quality-benchmark.md: cost table, headline, and frontmatter now show all three models.

Real numbers (this run, 10 calls/day across 21 repos)

GPT-4o $9,949/mo · Claude Sonnet $11,939/mo · Claude Haiku $3,980/mo (doc uses conservative rounded-down "+" figures).

Test plan

  • node scripts/run-quality-benchmark.mjs --save → 3-model table
  • node test/integration/all.js — 104 passed, 0 failed
  • Bundle reproducible from src/; supply-chain gate clean

🤖 Generated with Claude Code

…tok pricing (closes #433)

Quality benchmark now reports API input-cost savings for GPT-4o, Claude Sonnet,
and Claude Haiku (was GPT-4o only). Pricing verified 2026-07: GPT-4o $2.50,
Claude Sonnet 5/4.6 $3.00, Claude Haiku 4.5 $1.00 per 1M input tokens.

- scripts/run-quality-benchmark.mjs: add Claude Haiku to PRICING; per-model
  savings aggregate + a "cost savings by model" markdown table.
- src/tracking/pricing.js: correct stale Claude rates (Haiku 0.80→1.00,
  Opus 15.0→5.00) to current published pricing.
- docs-vp/guide/quality-benchmark.md: cost table + headline + frontmatter now
  show all three models ($9,900+ GPT-4o · $11,900+ Sonnet · $3,900+ Haiku/mo).
Rebuilt bundle; regenerated quality.json.
@manojmallick manojmallick merged commit ae318ac into develop Jul 5, 2026
5 checks passed
@manojmallick manojmallick deleted the feat/multi-model-cost-pricing branch July 5, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant