Anthropic: Claude Sonnet 4: AI model
Claude Sonnet 4 is a balanced default for production coding, agents and general work from Anthropic, with a 1M-token context window. Reachable from inside Iran through Hormouz.
- Context window:
- 200,000 tokens
- Input:
- $3/1M tokens
- Output:
- $15/1M tokens
- Type:
- text, image
- Vision
- Tools
- Streaming
- Long context
Thinking levels:
Claude Sonnet 4 is the balanced tier of the Claude family, tuned to pair strong coding and reasoning with everyday cost-efficiency. It accepts text and image input and returns text, supports tool calling for building agents and automations, and works with streaming responses. It also supports extended reasoning, so you can trade extra thinking time for higher accuracy on hard problems. The context window is 1M tokens, which suits long documents, large codebases and multi-turn sessions.
Sonnet-class models are commonly used for production coding, agentic workflows, document drafting, data analysis and everyday assistant tasks. Hormouz serves it behind an OpenAI-compatible API, so you can point your base URL at Hormouz, drop in a Hormouz key, and run existing OpenAI SDK code without changes.
Pricing is usage-based: $3 per million input tokens and $15 per million output tokens. There is no fixed monthly fee. You pay only for the tokens you use. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.
Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...
Quickstart
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | Anthropic |
|---|---|
| Type | Text, Image |
| Context window | 200,000 tokens |
| Pricing | $3.00/M in · $15.00/M out |
| API | Chat Completions |
| Capabilities | Streaming · Vision · Tools |
Benchmarks
Reasoning
Coding
Agentic
Source: Artificial Analysis
Design Arena
How Design Arena works ↗Metrics sourced from Design Arena
Code example
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
model="anthropic/claude-sonnet-4",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
model: "anthropic/claude-sonnet-4",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the Anthropic: Claude Sonnet 4 API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches Anthropic: Claude Sonnet 4 and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does Claude Sonnet 4 cost?
- Billing is usage-based: $3 per million input tokens and $15 per million output tokens. There is no fixed monthly fee. You pay only for what you use.
- How do I access Claude Sonnet 4 from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides a stable path to the model from inside Iran, with no foreign credit card or circumvention tooling required.
- Is Claude Sonnet 4 compatible with OpenAI code?
- Yes. Hormouz exposes an OpenAI-compatible API. Point your base URL at Hormouz and swap in your Hormouz key. Your existing SDKs and code run without a rewrite.
- What context window and capabilities does Claude Sonnet 4 have?
- It has a 1M-token context window, accepts text and image input, and supports tool calling and streaming, plus extended reasoning for harder problems. That makes it suitable for long documents, codebases and agentic workflows.
- What is Claude Sonnet 4 good for?
- Typical uses are production coding, agentic workflows, document drafting, data analysis and everyday assistant tasks.
- How does Claude Sonnet 4 compare to other Claude models?
- Claude comes in three tiers: Opus, Sonnet and Haiku. Sonnet is the balanced tier: strong coding and reasoning at a lower cost than Opus, a common production default.
Updated 2026-10-13