Last refreshed 2026-07-26. Next refresh: weekly.
Why use Claude 3 Sonnet on Anthropic?
Anthropic offers Claude 3 Sonnet with pay-as-you-go pricing at $3.00/1M input tokens. Anthropic is a safety-focused AI research company and creator of the Claude model family, offering API access through the Anthropic Console for text generation, analysis, and coding tasks.
Compare Claude 3 Sonnet across 3 providers to find the best fit for your use caseSetup recipe
Python + curlpip install anthropicexport ANTHROPIC_API_KEY=...import anthropic
client = anthropic.Anthropic() # reads ANTHROPIC_API_KEY from env
message = client.messages.create(
model="claude-3-sonnet",claude-3-sonnetRequest example
import anthropic
client = anthropic.Anthropic() # reads ANTHROPIC_API_KEY from env
message = client.messages.create(
model="claude-3-sonnet",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}]
)
print(message.content[0].text)Gotchas
- Use the versioned model ID, e.g. "claude-sonnet-4-6" or "claude-opus-4-7-20251101".
- The examples expect ANTHROPIC_API_KEY; rename it only if your application config maps the new variable.
Compare Claude 3 Sonnet Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| AWS Bedrock | $3.00 | $15.00 |
| GCP Vertex AI | $3.00 | $15.00 |
| Anthropic | $3.00 | $15.00 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $3.00 |
| Output tokens | $15.00 |
Capabilities
About Claude 3 Sonnet
Claude 3 Sonnet by Anthropic is a versatile large language AI model, balancing intelligence and speed for diverse enterprise use cases. It is part of the Claude 3 family, positioned between the powerful Opus and the faster Haiku models. Sonnet excels in nuanced content creation, accurate summarization, and complex scientific query handling while also showcasing proficiency in non-English languages and coding tasks. Additionally, it enhances vision capabilities with exceptional skills in visual reasoning, such as interpreting charts, graphs, and transcribing text from imperfect images, which benefits industries like retail, logistics, and finance.