POST /v1/messages using the model ID claude-sonnet-5-5.
Key capabilities
- 1M context window — Supports up to 1M context tokens and 128K output tokens according to Anthropic’s model specification
- Adaptive thinking — On by default; use
output_config.effortto control depth - Coding and agents — Suited to multi-step implementation, tool use, and analysis
- Text and vision — Accepts text and image inputs and returns text
- Model ID — Use
claude-sonnet-5-5in requests
Quick example
Parameters
At
low, medium, or high effort, thinking: {"type":"between_tools"} skips thinking before the first tool call while allowing it between calls. Sonnet 5.5 does not support thinking.type values disabled or manual enabled, or forced tool_choice modes any and named tool; AnyFast returned 400 for any in a live test. Omit custom temperature, top_p, and top_k values. Replay thinking blocks unchanged when continuing a tool conversation.In a tested AnyFast text response, the request ID
claude-sonnet-5-5 appeared as model: "claude-sonnet-5.5". The response also included request_id, billing.billed_cost_usd as a string, and usage.service_tier. Keep using the hyphen-form ID in requests; read response content blocks by type.API Reference
Review the Claude Sonnet 5.5 request and response fields.