Claude Sonnet 4
Provider: anthropic · served via OpenCode
Listed as deprecated on OpenCode Zen, deprecation date June 15, 2026.
Sticker prices & cost-per-token
List rates as published by OpenCode, before any volume or enterprise discounts.
$3.00
$15.00
$0.30
$3.75
Tiered / volume pricing
| Condition | Input cost | Output cost | Notes |
|---|---|---|---|
| Above 200,000 input tokens | $6.00 / 1M | $22.50 / 1M |
Get this data free
Want to stay updated on price changes on this model? Pull this data free (no API key required) here:
curl "https://coolhandlabs.com/api/v2/inference_apis?q%5Bmodel_eq%5D=claude-sonnet-4&q%5Bsource_api_eq%5D=opencode"
Pricing History
| Effective | Price |
|---|---|
| Aug 12, 2026 – present | Input cost: $3.00 / 1M, Output cost: $15.00 / 1M, Cached input cost: $0.30 / 1M, Cache creation cost: $3.75 / 1M, 5-minute cache write cost: $0.00 / 1M, 1-hour cache write cost: $0.00 / 1M, Reasoning output cost: $0.00 / 1M, Cache storage cost: $0.00 / 1M/hr |
History
Last change detected August 17, 2026 (24 days ago) by an automated scan.
| Date | Changed by | What changed |
|---|---|---|
| Aug 12, 2026 | Unknown | Initial record created |
Source
https://opencode.ai/docs/zen/ (via https://models.dev/api.json)Comparable models
No comparable models identified yet.
Reliability
No reliability incidents recorded in the last 90 days.
Frequently asked questions
Claude Sonnet 4 (anthropic via OpenCode) costs $3.00 per 1M input tokens and $15.00 per 1M output tokens, as last published by OpenCode.
Yes — anthropic deprecated Claude Sonnet 4 on June 15, 2026. Listed as deprecated on OpenCode Zen, deprecation date June 15, 2026.
anthropic retired Claude Sonnet 4 on June 15, 2026.
Since Claude Sonnet 4 is deprecated, anthropic customers are moving to Claude 3.7 Sonnet (Latest), Claude Fable 5, and Claude Haiku 4.5.
Call GET https://coolhandlabs.com/api/v2/inference_apis?q[source_api_eq]=opencode&q[model_eq]=claude-sonnet-4 — free, no API key required, and scoped to just this model since source_api and model together are unique. See https://coolhandlabs.com/docs for the full REST API reference.
Coolhand also tracks Claude Opus 4.1, Claude Opus 4.1, Claude Opus 4.1, Claude 3 Haiku, Claude Opus 4.1 (latest), and Claude Opus 4 from anthropic. Some may already be deprecated, so check each model's status alongside its current pricing.
| Model | Input cost | Output cost | Status |
|---|---|---|---|
| Claude Opus 4.1 via OpenCode | $15.00/1M $0.0000150000 | $75.00/1M $0.0000750000 |
Deprecated Aug 17, 2026
|
| Claude Opus 4.1 via Azure | $15.00/1M $0.0000150000 | $75.00/1M $0.0000750000 |
Deprecated Aug 13, 2026
|
| Claude Opus 4.1 via Bedrock Anthropic | $15.00/1M $0.0000150000 | $75.00/1M $0.0000750000 |
Deprecated Aug 13, 2026
|
| Claude 3 Haiku via OpenRouter | $0.25/1M $0.0000002500 | $1.25/1M $0.0000012500 |
Deprecated Aug 13, 2026
|
| Claude Opus 4.1 (latest) via OpenRouter | $15.00/1M $0.0000150000 | $75.00/1M $0.0000750000 |
Deprecated Aug 13, 2026
|
| Claude Opus 4 via Vertex | $15.00/1M $0.0000150000 | $75.00/1M $0.0000750000 |
Deprecated Aug 13, 2026
|
Track LLM pricing and deprecations automatically.
Start free