Anthropic Agent SDK Billing Split and Sonnet 4 / Opus 4 Model Retirement Take Effect

Anthropic

Tools official + media 3 src. ~1 min

Two changes announced May 14 took effect simultaneously on June 15. First: programmatic Claude usage — Agent SDK calls, `claude -p` subprocess invocations, Claude Code GitHub Actions, and third-party SDK automations — now draw from a separate monthly credit pool at standard API list rates. Credit amounts mirror subscription cost: Pro $20/month, Max 5× $100/month, Max 20× $200/month. Interactive Claude Code in terminal/IDE, web chat, and Claude Cowork are unaffected. Second: the versioned model IDs claude-sonnet-4-20250514 and claude-opus-4-20250514 were retired at 9 AM PT; API calls to those IDs return errors. Recommended migration targets are claude-sonnet-4-6 and claude-opus-4-8.

Why it matters

When the new credit pool is exhausted, automated API requests fail immediately with no rate-limit retry behavior — teams relying on subscription parity for CI/CD or scheduled agents must now budget separately or switch to direct API keys. Pinned model-ID references in production code also need updating today to avoid outages.

Importance: 3/5

Two simultaneous breaking changes for all Claude Code and Agent SDK users; retired model IDs cause immediate production failures if not migrated.

Sources