← Back to all generators
anthropic/claude-4-sonnet
OfficialView on Replicate →
Claude Sonnet 4 is a significant upgrade to 3.7, delivering superior coding and reasoning while responding more precisely to your instructions
Capabilities
Reference ImagesSystem PromptMax Tokens
Cost
Community model (estimated from hardware time)
Input Parameters
| Name | Type | Description | Default | Constraints |
|---|---|---|---|---|
prompt* | string | Input prompt | — | — |
extended_thinking | boolean | Whether to enable extended thinking mode (only supported for Sonnet 3.7 and Sonnet 4) | false | — |
image | string(uri) | Optional input image. Images are priced as (width px * height px)/750 input tokens | — | — |
max_image_resolution | number | Maximum image resolution in megapixels. Scales down image before sending it to Claude, to save time and money. | 0.5 | min: 0.001, max: 2 |
max_tokens | integer | Maximum number of output tokens | 8192 | min: 1024, max: 64000 |
system_prompt | string | System prompt | "" | — |
thinking_budget_tokens | integer | Maximum number of tokens to use for extended thinking when enabled (only supported for Sonnet 3.7 and Sonnet 4) | 1024 | min: 1024, max: 64000 |
promptrequiredstringInput prompt
extended_thinkingbooleanWhether to enable extended thinking mode (only supported for Sonnet 3.7 and Sonnet 4)
Default:
falseimagestringOptional input image. Images are priced as (width px * height px)/750 input tokens
max_image_resolutionnumberMaximum image resolution in megapixels. Scales down image before sending it to Claude, to save time and money.
Default:
0.5min: 0.001, max: 2max_tokensintegerMaximum number of output tokens
Default:
8192min: 1024, max: 64000system_promptstringSystem prompt
Default:
""thinking_budget_tokensintegerMaximum number of tokens to use for extended thinking when enabled (only supported for Sonnet 3.7 and Sonnet 4)
Default:
1024min: 1024, max: 64000Version:
3380fe4ca9caUpdated: 7/25/20262.3M runs
cinemasetfree.com