anthropic/claude-4-sonnet πΌοΈππ’β β π
About
Claude Sonnet 4 is a significant upgrade to 3.7, delivering superior coding and reasoning while responding more precisely to your instructions

Example Output
Prompt:
"Give me a recipe for tasty smashed avocado on sourdough toast that could feed all of California."
Output
Here's a recipe to feed all of California (about 39 million people)! π₯
California-Sized Smashed Avocado Toast
Ingredients:
- 780 million avocados (20 per person - hey, it's California!)
- 39 million slices of sourdough bread
- 39 million limes (juiced)
- 19.5 million red onions (finely diced)
- 390,000 pounds of sea salt
- 195,000 pounds of black pepper
- 39 million Roma tomatoes (diced, optional)
- 19.5 million jalapeΓ±os (minced, for the brave)
Instructions:
- Recruit every resident to help prep (mandatory participation law pending)
- Use the entire Central Valley as your prep kitchen
- Mash avocados in swimming pools (cleaned first, obviously)
- Toast bread using solar power from the Mojave Desert
- Assembly line from San Diego to the Oregon border
- Distribute via a fleet of food trucks, drones, and very patient pelicans
Serving suggestion:
Serve on the beaches simultaneously at 12 PM PT for the ultimate California experience!
Estimated cost: Approximately the GDP of a small country
Prep time: 6 months with full state cooperation
Clean-up time: We don't talk about clean-up time
Note: May cause a global avocado shortage and significantly impact the housing market (even more expensive now).
Performance Metrics
7.33s
Prediction Time
7.34s
Total Time
All Input Parameters
{ "prompt": "Give me a recipe for tasty smashed avocado on sourdough toast that could feed all of California.", "max_tokens": 8192, "system_prompt": "You are a helpful assistant", "max_image_resolution": 0.5 }
Input Parameters
- image
- Optional input image. Images are priced as (width px * height px)/750 input tokens
- prompt (required)
- Input prompt
- max_tokens
- Maximum number of output tokens
- system_prompt
- System prompt
- extended_thinking
- Whether to enable extended thinking mode (only supported for Sonnet 3.7 and Sonnet 4)
- max_image_resolution
- Maximum image resolution in megapixels. Scales down image before sending it to Claude, to save time and money.
- thinking_budget_tokens
- Maximum number of tokens to use for extended thinking when enabled (only supported for Sonnet 3.7 and Sonnet 4)
Output Schema
Output
Example Execution Logs
Running prediction... Using model: claude-sonnet-4@20250514
Version Details
- Version ID
3380fe4ca9cac053c89d1df86a5ba850e61cbef1d474a24abded9516e5a73a04
- Version Created
- June 13, 2025