Anthropic API Billing Bug: Sonnet Model Charged at Opus Rates

Bug Details
A significant billing discrepancy has been identified in the Anthropic API for the claude-sonnet-4-6 model. While the API correctly reports the model as Sonnet in the response, the actual billing calculation uses Opus pricing, resulting in higher charges than expected.
Evidence from Raw Event Data
The bug was discovered through analysis of a high-token request with heavy prompt caching. The specific data points from the raw event are:
- Reported Model: claude-sonnet-4-6
- Input Tokens: 6
- Output Tokens: 4,034
- Cache Creation (Write): 61,920 tokens
- Cache Read: 171,391 tokens
- Billed totalCostUsd: $0.5735755
The user noted that this total cost matches exactly what would be expected for Opus pricing, not Sonnet pricing, creating a significant cost difference for API users.
Impact and Context
This bug affects developers using the Anthropic Claude API with the Sonnet model. Since Opus is Anthropic's most expensive model tier, this discrepancy could result in substantially higher costs than anticipated. The bug appears to be in the billing calculation logic rather than the model selection itself, as the API correctly identifies the model as Sonnet in responses.
For developers monitoring API costs, this means current billing reports may be inaccurate for Sonnet usage. The issue was reported on the ClaudeAI subreddit where users are discussing potential workarounds and monitoring for an official fix from Anthropic.
📖 Read the full source: r/ClaudeAI
👀 See Also

Reddit Discussion on Long-Term Risks of Coding Agent Dependency
A Reddit user argues that current coding agents like Claude Code and Copilot create dependency that could lead to vendor lock-in, centralization of software creation, and commoditization of engineering craftsmanship.
Open-sourcing AstaBrief, the fast report-generation model in Asta
Ai2 released AstaBrief 8B, an open-weights model that turns a research question plus retrieved literature excerpts into a cited report. Fast mode averages 51.1 seconds per report vs 178.5 for Thinking mode, and the training data ships alongside the weights.

OpenAI and Rivals Publish Agent Plugins: One Package Format for AI Agents
OpenAI, Amazon, Microsoft, Cursor, and Vercel shipped Agent Plugins 1.0, an open standard for packaging agent extensions. Build once, run across ChatGPT, Codex, Copilot, Cursor, and more.

Agora-1: Open Source Multi-Agent World Model for Real-Time Shared Simulation
Odyssey releases Agora-1, a world model that enables up to four agents (human or AI) to share a real-time generated simulation, using GoldenEye as the test environment.