← Back to all generators

anthropic/claude-4-sonnet

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

promptrequiredstring

Input prompt

extended_thinkingboolean

Whether to enable extended thinking mode (only supported for Sonnet 3.7 and Sonnet 4)

Default: false
imagestring

Optional input image. Images are priced as (width px * height px)/750 input tokens

max_image_resolutionnumber

Maximum image resolution in megapixels. Scales down image before sending it to Claude, to save time and money.

Default: 0.5min: 0.001, max: 2
max_tokensinteger

Maximum number of output tokens

Default: 8192min: 1024, max: 64000
system_promptstring

System prompt

Default: ""
thinking_budget_tokensinteger

Maximum number of tokens to use for extended thinking when enabled (only supported for Sonnet 3.7 and Sonnet 4)

Default: 1024min: 1024, max: 64000
Version: 3380fe4ca9caUpdated: 7/25/20262.3M runs