Retiring · 2026-11-24
Anthropic retires Claude Sonnet 4.5 (claude-sonnet-4-5) on its API on 24 November 2026 at 9:00 PT, and warns of reduced availability and rate errors from 30 October. Claude Sonnet 5.5 is the current Sonnet: faster, stronger at coding and agent work, and cheaper at $2 / $10 per million tokens against $3 / $15.
The replacement is Claude Sonnet 5.5. Requests keep working until then. Switch the model id before that date: same endpoint, same key.
Claude Sonnet 4.5 API
Frontier-quality text and reasoning through one OpenAI-compatible endpoint.
Model spec
- Input
- $3.00per 1M tokens
- Output
- $15.00per 1M tokens
- Context
- 200K
Model ID
OpenAI-compatible · api.companyfabric.com/v1
Overview
About Claude Sonnet 4.5
Claude Sonnet 4.5 was the model most coding agents defaulted to: frontier tool-calling reliability, prompt caching, and 200k context at mid-tier pricing. Anthropic retires it on 24 November 2026, and Claude Sonnet 5.5 is its replacement: faster, stronger at coding, and cheaper at $2 / $10 per million tokens. Through CompanyFabric both share one key and one prepaid balance, so moving is a one-string change to the model id. Every model on CompanyFabric shares the same API key, billing balance, and rate-limit envelope, one integration covers the entire library.
Facts
At a glance
Availability
Live
Added 1 Jun 2026
Pricing
$3.00 in · $15.00 out
Per 1M tokens, metered exactly per call
Context window
200K tokens
Commercial use
See license
Commercial output use permitted per Anthropic terms.
Variants
All endpoints
Claude Sonnet 4.5
Retiring$3/Mtok inFrontier-quality text and reasoning through one OpenAI-compatible endpoint.
Chat Completions
Claude Haiku 4.5
$1/Mtok inFast, cheap frontier-family model for high-volume tasks.
Chat Completions
Claude Opus 4.6
$5/Mtok inThe frontier tier for the hardest reasoning and agentic work.
Chat Completions
Claude Fable 5
$10/Mtok inAnthropic's first Mythos-class model, the new flagship tier above Opus, tuned for the hardest reasoning and agentic work.
Chat Completions
Claude Opus 5
$5/Mtok inThe Claude 5 generation's deep-work model, maximum-capability reasoning for research, architecture, and hard agentic tasks.
Chat Completions
Claude Opus 5.5
$4/Mtok inFirst of the Claude 5.5 generation: Fable-class agentic coding and computer use at 20% below Opus 5.
Chat Completions
Claude Sonnet 5.5
$2/Mtok inThe fast Claude 5.5: near-Opus coding and knowledge work, 30%+ faster than Sonnet 5, at half Opus 5.5's price.
Chat Completions
Claude Fable 5.1
$10/Mtok inAnthropic's top generally available model, tied for first on the Artificial Analysis Intelligence Index.
Chat Completions
Claude Haiku 5.5
$0.1/Mtok inAnthropic's cheapest and fastest Claude: a big step up from Haiku 4.5 in coding, computer use and knowledge work, at $0.10 / $0.50 per 1M tokens for prompts up to 100K.
Chat Completions
Prompt library
Example runs
Summarize the three biggest risks in this launch plan, then rewrite the executive summary in half the words.
1. Timeline compression assumes zero provider churn…
This exact run cost $0.014
Review this pull request for correctness bugs. Explain each finding with the failing input.
1. `parseWindow()` returns NaN when `end` precedes `start`…
This exact run cost $0.019
Turn these 12 support tickets into a prioritized product backlog with effort estimates.
P0, Billing page 500s on annual plans (7 tickets)…
This exact run cost $0.012
Quickstart
How to use the Claude Sonnet 4.5 API
- 1
Create a free CompanyFabric account, starter credits are included, no card required.
- 2
Copy your API key from the dashboard. One key covers every model in the library.
- 3
Point any OpenAI SDK at api.companyfabric.com/v1 and set model to "anthropic/claude-sonnet-4-5".
- 4
Read the exact metered cost of the call from the response, the same number shown in the playground.
Use cases
What teams build with it
Coding agents
The main loop of agentic coding tools, reliable tool calls, low hallucination rate on file edits, strong repo comprehension.
claude codecoding agenttool use
Long-document analysis
Contracts, specs, and research packs up to 200k tokens with dependable citation of the source text.
long contextdocument analysis
Production copilots
Customer-facing assistants that must stay on policy, strong instruction hierarchy and refusal behavior.
copilotassistantproduction
Get better output
Prompting tips
- Give it a role and an output contract up front; Sonnet holds structure across very long outputs.
- For agents, prefer many small tools over one mega-tool, tool-choice accuracy is a strength, use it.
- Turn on prompt caching for agent loops, repeated system prompts drop to a tenth of the input price.
Exact, metered, prepaid
Claude Sonnet 4.5 pricing
Claude Sonnet 4.5 pricing is per token: $3 / M input · $15 / M output. Output tokens cost 5× input tokens, so long generations, not long prompts, are what actually drive most bills. A typical call with a 2k-token prompt and a 1k-token answer costs about $0.0210.
Every call is metered exactly and attributed to your key, the dashboard, the API usage response, and your invoice all read from the same ledger row. Cap any key's monthly spend with a budget cap, and bring your own provider key (BYOK) at 0% platform fee if you already have a direct contract.
| Endpoint | Type | Price |
|---|---|---|
| Claude Sonnet 4.5 | Chat | $3 / M input · $15 / M output |
| Claude Haiku 4.5 | Chat | $1 / M input · $5 / M output |
| Claude Opus 4.6 | Chat | $5 / M input · $25 / M output |
| Claude Fable 5 | Chat | $10 / M input · $50 / M output |
| Claude Opus 5 | Chat | $5 / M input · $25 / M output |
| Claude Opus 5.5 | Chat | $4 / M input · $20 / M output |
| Claude Sonnet 5.5 | Chat | $2 / M input · $10 / M output |
| Claude Fable 5.1 | Chat | $10 / M input · $50 / M output |
| Claude Haiku 5.5 | Chat | $0.1 / M input · $0.5 / M output · $0.01 / M cached input |
Starter credits
Use Claude Sonnet 4.5 free
Your CompanyFabric starter credits cover your first Claude Sonnet 4.5 calls at no cost, create a free account, no card required, and the credits apply to Claude Sonnet 4.5 and every other model on the key. When they run out, prepaid credits or BYOK (0% fee) take over with no plan to pick.
Production-grade
Code samples
import OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://api.companyfabric.com/v1",
apiKey: process.env.COMPANYFABRIC_API_KEY,
})
const res = await client.chat.completions.create({
model: "anthropic/claude-sonnet-4-5",
max_tokens: 1024,
temperature: 0.7,
messages: [{ role: "user", content: "Say hello from the fabric." }],
})
console.log(res.choices[0].message.content)Playground
Try it in the browser
Comparisons
Claude Sonnet 4.5 vs the alternatives
Claude Sonnet 4.5 vs GPT-5.5
GPT-5.5 wins on raw reasoning benchmarks and cheap input tokens; Sonnet 4.5 wins on tool-calling reliability and sustained code-edit quality. Most teams route the agent loop to Sonnet and heavy one-shot analysis to GPT-5.5, with one key, that split is a config line, not a second vendor contract.
Full comparison: Claude Sonnet 4.5 vs GPT-5.5 →Claude Sonnet 4.5 vs Gemini 3.1 Pro (preview)
Gemini 3.1 Pro brings a bigger context window and strong multimodal input; Sonnet 4.5 is the steadier hand inside agent loops. Route by shape of work: massive-context analysis to Gemini, iterative tool-driven execution to Sonnet.
Full comparison: Claude Sonnet 4.5 vs Gemini 3.1 Pro (preview) →Compare
Claude Sonnet 4.5 head to head
FAQ
Frequently asked questions
How much does the Claude Sonnet 4.5 API cost?
$3 / M input · $15 / M output. Every call is metered exactly and shown before you run it.
How do I get a Claude Sonnet 4.5 API key?
Create a CompanyFabric account, and one key unlocks Claude Sonnet 4.5 and every other model in the library. Free starter credits are included, no subscription, no card required to try it.
Why use Claude Sonnet 4.5 on CompanyFabric instead of going direct?
One key, one prepaid balance, and one rate-limit envelope across the whole library, at pricing at parity with or below the direct API. Model switching is a one-line change, and BYOK routing is 0% fee.
Is the API OpenAI-compatible?
Yes, point any OpenAI SDK at api.companyfabric.com/v1 and set model to "anthropic/claude-sonnet-4-5".
Can I use the output commercially?
Commercial output use permitted per Anthropic terms.
How does billing work?
Prepaid credits via card, or BYOK with your own provider keys at 0% platform fee. No subscription required; balances never expire.
Is Claude Sonnet 4.5 being deprecated?
Yes. Anthropic retires claude-sonnet-4-5 on its API on 24 November 2026 at 9:00 PT, and warns of reduced availability and rate errors from 30 October. Until then it works through CompanyFabric as before. Switch to anthropic/claude-sonnet-5-5: same endpoint, same key, and a lower price ($2 / $10 per million tokens instead of $3 / $15).
What replaces Claude Sonnet 4.5?
Claude Sonnet 5.5, Anthropic's current Sonnet. It is faster than Sonnet 5, scores far higher on agentic coding, and costs less than Sonnet 4.5. Change the model id to anthropic/claude-sonnet-5-5; nothing else in your integration changes.
Does the Claude Sonnet API support tool use and streaming through CompanyFabric?
Yes, tools, streaming, vision, and prompt caching pass through the OpenAI-compatible endpoint unchanged. Anthropic-native /v1/messages is also on the roadmap.
Provider
About Anthropic
Anthropic publishes the claude family. Also in this family: Claude Haiku 4.5, Claude Opus 4.6, Claude Fable 5, Claude Opus 5, Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, Claude Haiku 5.5. License: Commercial output use permitted per Anthropic terms.
One key. Every model. Exact prices.
Run Claude Sonnet 4.5 with free starter credits. Free starter credits included, no subscription required.