claude-sonnet-4-6 is still in the Claudexia catalog. On November 10, 2026 it costs $0.68 per million input tokens and $2.48 per million output tokens in the Premium channel. claude-sonnet-5 is the newer model of the same class and costs less: $0.52 / $1.98. Nothing forces you to move, but if you want to, swap the ID.
What to change
One change: set model to claude-sonnet-5 instead of claude-sonnet-4-6. The key, base URL and request format stay the same.
from anthropic import Anthropic
client = Anthropic(
api_key="sk_cdx_your_key_here",
base_url="https://api.claudexia.tech",
)
message = client.messages.create(
model="claude-sonnet-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Check this SQL query for N+1."}],
)
print(message.content[0].text)
The OpenAI Chat Completions format works the same way: same key, same https://api.claudexia.tech/v1 endpoint, model set to claude-sonnet-5.
Where else the model ID is set
- Environment variables and
.envfiles:MODEL=orANTHROPIC_MODEL=. - Claude Code settings:
~/.claude/settings.jsonand the project.claude/settings.json, fieldmodel. - Cursor, Cline, Continue and other extensions: the model list of the custom provider.
- Agent configs, eval sets and tests with the model hardcoded.
A repository search finds them fastest:
grep -rnE "claude-sonnet-4[.-]6" .
What to check after switching
If your prompts were tuned for 4.6, run your typical requests on Sonnet 5 and compare against your own metric. Keep the model name in config, not in code, so the next version change is a one-line edit.
The current model and price list is always on the models page.
FAQ
Is claude-sonnet-4-6 still available?
Yes. On November 10, 2026 it is in the Claudexia catalog at $0.68 / $2.48 per million input / output tokens in the Premium channel. If a request with it fails, compare the ID with the one on the models page and read the error text in the response. To switch to the newer model, replace claude-sonnet-4-6 with claude-sonnet-5, nothing else changes.
How much does claude-sonnet-5 cost?
On November 10, 2026 in the Premium channel, $0.52 per million input tokens and $1.98 per million output tokens, against $0.68 / $2.48 for Sonnet 4.6. See the models page for exact prices.
Do I need a new API key?
No. An sk_cdx_... key works with every model in the catalog; only the model field changes.
Which model should replace Sonnet 4.6 for hard tasks?
For heavy long-context work there is Opus: claude-opus-5 and claude-opus-4.8. For everyday coding and agents claude-sonnet-5 is usually enough.