Back to Models
anthropic logo
anthropic/claude-sonnet-4-6

Claude Sonnet 4.6

Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It excels at iterative development, complex codebase navigation, end-to-end project management with memory, polished document creation, and confident computer use for web QA and workflow automation.

2/17/2026
1,000,000 tokens
#13 Text (Coding)
Input: ¥554.4/M
Output: ¥2,772/M
Specifications

Modalities

Input
text
image
Output
text

Supported Parameters

include_reasoning
max_tokens
reasoning
response_format
stop
structured_outputs
temperature
tool_choice
tools
top_k
top_p
verbosity

Max Output Tokens

128,000
Code Examples
curl https://api.fastmetal.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "anthropic-claude-sonnet-4-6",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

How Claude Sonnet 4.6 actually answers

Real responses to our standard prompts, recorded on FastMetal.

Count the number of 'r's in 'strawberry'

Count the number of 'r's in 'strawberry'. Explain your reasoning step by step.

## Counting the letter 'r' in 'strawberry' Let me go through the word letter by letter: | Position | Letter | Is it 'r'? | |----------|--------|------------| | 1 | s | No | | 2 | t | No | | 3 | r | ✅ Yes | | 4 | a | No | | 5 | w | No | | 6 | b | No | | 7 | e | No | | 8 | r | ✅ Yes | | 9 | r | ✅ Yes | | 10 | y | No | ## Result There are **3 r's** in 'strawberry'.
2.2s response181 output tokens
Debug This Error

I'm getting the following error in my Node.js application: TypeError: Cannot read properties of undefined (reading 'map') at UserList (/app/components/UserList.js:12:25) at renderWithHooks (/app/node_modules/rea…

## Problem Analysis The error occurs because `users` is `undefined` when the component renders. You're calling `.map()` on `undefined`, which throws a `TypeError`. **Common causes:** - The prop isn't passed by the parent component - Data is still loading asynchronously when the component first renders - The parent passes `undefined` or a misspelled prop name --- ## Solutions ### Option 1: Default Parameter Value (Simplest Fix) ```javascript function UserList({ users = [] }) { return ( <ul> {users.map(user => <li key={user.id}>{user.name}</li>)} </ul> ); } ``` This assigns an empty array if `users` is `undefined`, so `.map()` always has an array to work with. --- ###…
9.4s response798 output tokens
Code Review

Please review the following Python function and suggest improvements for readability, performance, and best practices: def get_data(url, retries=3): import requests import time for i in range(retries):…

## Code Review and Improvements ### Issues Identified 1. **Imports inside function** – should be at module level 2. **Bare `except`** – catches everything including `KeyboardInterrupt`, `SystemExit` 3. **`== True` comparison** – not Pythonic 4. **No logging/error visibility** – silent failures make debugging hard 5. **Magic numbers** – hardcoded `2`, `10` with no explanation 6. **No distinction between retriable/non-retriable errors** – e.g., 404 should not be retried 7. **Inefficient list building** – list comprehension is cleaner 8. **No exponential backoff** – fixed sleep is naive for real-world retry logic 9. **Missing type hints and docstring** --- ### Improved Version ```python im…
14.4s response1099 output tokens

Compare these answers side by side with other models →

Try Claude Sonnet 4.6 right now

Claude Sonnet 4.6 is available on FastMetal through one API key. Start in the browser, or call it from the OpenAI SDK.

Leaderboard
Text
🏆OverallELO: 1,472
#29
🇯🇵JapaneseELO: 1,444
#27
🇨🇳ChineseELO: 1,507
#33
🇰🇷KoreanELO: 1,438
#17
🇬🇧EnglishELO: 1,484
#16
frenchELO: 1,482
#37
germanELO: 1,446
#48
spanishELO: 1,467
#19
russianELO: 1,465
#41
💻CodingELO: 1,527
#13
🧮MathELO: 1,463
#42
✍️Creative WritingELO: 1,452
#24
📝Instruction FollowingELO: 1,477
#16
🌶️Hard PromptsELO: 1,504
#16
💬Multi-TurnELO: 1,482
#26
Vision
🏆OverallELO: 1,275
#24
Code
🏆OverallELO: 1,523
#20