Claude Opus 4 is Anthropic's most powerful model yet and the best coding model in the world, leading on SWE-bench (72.5%) and Terminal-bench (43.2%). It delivers sustained performance on long-running tasks that require focused effort and thousands of steps, with the ability to work continuously for several hours—dramatically outperforming all Sonnet models and significantly expanding what AI agents can accomplish.
import { streamText } from 'ai'
const result = streamText({ model: 'anthropic/claude-opus-4', prompt: 'What is the history of the San Francisco Mission-style burrito?'})Try out Claude Opus 4 by Anthropic. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Anthropic
Context 200K
Input Tokens $15.00/M
Output Tokens $75.00/M
Cache Read Tokens $1.50/M
Cache Write Tokens $18.75/M
Web Search Calls $10.00/K
Amazon Bedrock
Context 200K
Input Tokens $15.00/M
Output Tokens $75.00/M
Cache Read Tokens $1.50/M
Cache Write Tokens $18.75/M
The upgraded Claude 3.5 Sonnet is now state-of-the-art for a variety of tasks including real-world software engineering, agentic capabilities and computer use. The new Claude 3.5 Sonnet delivers these advancements at the same price and speed as its predecessor.