← 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 Images System Prompt Max Tokens

Cost

Community model (estimated from hardware time)

Input Parameters

prompt required string

Input prompt

extended_thinking boolean

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

Default: false
image string

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.

Default: 0.5 min: 0.001, max: 2
max_tokens integer

Maximum number of output tokens

Default: 8192 min: 1024, max: 64000
system_prompt string

System prompt

Default: ""
thinking_budget_tokens integer

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

Default: 1024 min: 1024, max: 64000
Version: 3380fe4ca9ca Updated: 2/26/2026 2.3M runs