anthropic/claude-4-sonnet πŸ–ΌοΈπŸ“πŸ”’βœ“ β†’ πŸ“

⭐ Official ▢️ 954.9K runs πŸ“… May 2025 βš™οΈ Cog 0.15.5
code-generation image-analysis image-captioning image-to-text text-generation visual-understanding

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:

  1. Recruit every resident to help prep (mandatory participation law pending)
  2. Use the entire Central Valley as your prep kitchen
  3. Mash avocados in swimming pools (cleaned first, obviously)
  4. Toast bread using solar power from the Mojave Desert
  5. Assembly line from San Diego to the Oregon border
  6. 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 Type: string
Optional input image. Images are priced as (width px * height px)/750 input tokens
prompt (required) Type: string
Input prompt
max_tokens Type: integerDefault: 8192Range: 1024 - 64000
Maximum number of output tokens
system_prompt Type: stringDefault:
System prompt
extended_thinking Type: booleanDefault: false
Whether to enable extended thinking mode (only supported for Sonnet 3.7 and Sonnet 4)
max_image_resolution Type: numberDefault: 0.5Range: 0.001 - 2
Maximum image resolution in megapixels. Scales down image before sending it to Claude, to save time and money.
thinking_budget_tokens Type: integerDefault: 1024Range: 1024 - 64000
Maximum number of tokens to use for extended thinking when enabled (only supported for Sonnet 3.7 and Sonnet 4)
Output Schema

Output

Type: array β€’ Items Type: string

Example Execution Logs
Running prediction... 

Using model: claude-sonnet-4@20250514
Version Details
Version ID
3380fe4ca9cac053c89d1df86a5ba850e61cbef1d474a24abded9516e5a73a04
Version Created
June 13, 2025
Run on Replicate β†’