Claude Sonnet 4.6
anthropic/claude-sonnet-4.6
Anthropic's workhorse: top-tier coding and agentic, fair pricing.
At a glance
- · $3.00 input / $15.00 output per 1M tokens (provider list price, billed in credits)
- · Context window: 200,000 tokens
- · OpenAI-compatible — model: "anthropic/claude-sonnet-4.6" (provider: anthropic)
- · Best for: Best-in-class for code refactoring and multi-step pull requests
Strengths
- +Best-in-class for code refactoring and multi-step pull requests
- +Very stable tool-use loops — low hallucination on arguments
- +64k output tokens fit whole files in one response
Weaknesses
- −Knowledge cutoff July 2025 — no recent web knowledge
- −No native JSON mode — schema enforcement via tool-call trick
Use cases
- →Agentic coding: Claude Code, Cursor Composer, autonomous PR generation
- →Long-context RAG over code repos and document libraries
- →Structured data extraction with complex schemas
Not the right pick for
- ×Realtime chat with sub-200ms latency — use Haiku or Flash
Benchmarks
| Test | Score | Source |
|---|---|---|
| SWE-bench Verified | 77.2% | www.anthropic.com |
Alternatives in the catalog
How to call it
Drop-in OpenAI-compatible. Just swap the `model` string and you're using this model.
curl https://www.getmorecredits.com/v1/chat/completions \
-H "Authorization: Bearer $GMC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4.6",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Good for
- Code generation — which AI model writes the best code?Top pickRanked #1 in this hub
- Agentic AI — autonomous agents with tool use and multi-step workflowsTop pickRanked #1 in this hub
- Multilingual AI for the European market — GDPR-friendlyRanked #2 in this hub
- RAG (retrieval-augmented generation) — embeddings plus LLM for document searchRanked #3 in this hub
Frequently asked questions
How much does Claude Sonnet 4.6 cost?⌄
Input is $3.00 per million tokens; output is $15.00 per million tokens — provider list price. On getmorecredits.com you pay in credits, no subscription, no minimum spend.
What's the context window of Claude Sonnet 4.6?⌄
Claude Sonnet 4.6 accepts up to 200,000 input tokens, with a maximum of 64,000 output tokens per response. That fits whole code repos or book-length documents into a single call.
What can Claude Sonnet 4.6 do?⌄
Claude Sonnet 4.6 supports image input (vision), tool calling, structured output, reasoning mode. Anthropic's workhorse: top-tier coding and agentic, fair pricing.
Is Claude Sonnet 4.6 OpenAI-compatible?⌄
Yes. On getmorecredits.com you call Claude Sonnet 4.6 with the same request shape as OpenAI: POST /v1/chat/completions with "model": "anthropic/claude-sonnet-4.6". Existing OpenAI SDKs (Python, Node, etc.) work by changing the base URL and API key.