Claude Sonnet 4's competitors have been quietly putting in work.
Claude Sonnet 4's competitors have been quietly putting in work.
Claude Sonnet 4 is a significant upgrade to Sonnet 3.7, delivering superior coding and reasoning while responding more precisely to instructions. It balances performance and efficiency for various use cases.
fromimport openai OpenAI
client = OpenAI(
"https://openrouter.ai/api/v1" base_url=,
"$OPENROUTER_API_KEY" api_key=,
)
response = client.chat.completions.create(
"anthropic/claude-sonnet-4" model=,
"role""user""content""Hello!" messages=[{: , : }],
)
print(response.choices[0].message.content)Set OPENROUTER_API_KEY with your OpenRouter API key from openrouter.ai/keys.
Also on Amazon Bedrock · Google Vertex AI
The polished project manager who will deliver on spec, on time, with proper documentation and a Gantt chart.
Tackles logic puzzles step-by-step with verification checkmarks. Shows its work like a good student. Adds stage directions and timing notes to comedy routines.
Taste is judged on an uncapped scale, originality first. The space past 100 is craft today's models rarely reach.
Unique words vs. total words. Higher = richer vocabulary.
Average words per sentence.
"Might", "perhaps", "arguably" per 100 words.
**Bold** markers per 1,000 characters.
Bullet and numbered list items per 1,000 characters.
Markdown headings per 1,000 characters.
Emoji per 1,000 characters.
"However", "moreover", "furthermore" per 100 words.
54 outputs from Claude Sonnet 4
Claude Sonnet 4 is a significant upgrade to Sonnet 3.7, delivering superior coding and reasoning while responding more precisely to instructions. It balances performance and efficiency for various use cases.
fromimport openai OpenAI
client = OpenAI(
"https://openrouter.ai/api/v1" base_url=,
"$OPENROUTER_API_KEY" api_key=,
)
response = client.chat.completions.create(
"anthropic/claude-sonnet-4" model=,
"role""user""content""Hello!" messages=[{: , : }],
)
print(response.choices[0].message.content)Set OPENROUTER_API_KEY with your OpenRouter API key from openrouter.ai/keys.
Also on Amazon Bedrock · Google Vertex AI
The polished project manager who will deliver on spec, on time, with proper documentation and a Gantt chart.
Tackles logic puzzles step-by-step with verification checkmarks. Shows its work like a good student. Adds stage directions and timing notes to comedy routines.
Taste is judged on an uncapped scale, originality first. The space past 100 is craft today's models rarely reach.
Unique words vs. total words. Higher = richer vocabulary.
Average words per sentence.
"Might", "perhaps", "arguably" per 100 words.
**Bold** markers per 1,000 characters.
Bullet and numbered list items per 1,000 characters.
Markdown headings per 1,000 characters.
Emoji per 1,000 characters.
"However", "moreover", "furthermore" per 100 words.
54 outputs from Claude Sonnet 4