The 200K-Token Cliff That Doubled My Nightly Bill — A count_tokens Preflight to Avoid Long-Context Pricing
Sonnet 5's native 1M context switches the entire request to long-context pricing the moment input crosses 200K tokens. Here's how I caught that silent cost cliff before sending, using the billing-exempt count_tokens API, with working Python and TypeScript code.
Claude Opus 4.6 Complete Feature Guide: 1M Context, Adaptive Thinking & Agent Teams
Claude Opus 4.6 and Sonnet 4.6 released March 25, 2026. Explore 1M context at standard pricing, 128k output, Adaptive Thinking, Dynamic Filtering, Compaction, and Fast Mode with code examples.