Claude Sonnet 5 API: 1M context and adaptive thinking
Claude Sonnet 5 (anthropic-claude-sonnet-5) is available on FastMetal. At release it was the most capable model in Anthropic's Sonnet line, and Anthropic claims frontier-level performance on coding, agents and general work. Anthropic has since released Claude Sonnet 5.5, also on FastMetal; Sonnet 5 stays in the catalog.
What you get
- A 1M-token context: send a large codebase or a long document set in one request. Output goes up to 128K tokens.
- Adaptive thinking: set the reasoning depth to low, medium, high or max. Simple requests stay fast and shallow, and hard ones get more thought. The reasoning docs show how to pass the setting.
- Text, image and file input.
- The OpenAI-compatible API: point existing code at it by changing the
modelvalue.
Calling it
curl https://api.fastmetal.ai/v1/chat/completions \
-H "Authorization: Bearer $FASTMETAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic-claude-sonnet-5",
"messages": [{"role": "user", "content": "Hello"}]
}'
Where it fits
Teams usually pick a Sonnet model for its balance of quality and cost. A practical setup is to run most of the work on Sonnet 5 and send only the steps that need deeper reasoning to an Opus model, on the same key.
Sonnet 5 is billed per million input and output tokens; the current rates are on the model page. For a head-to-head, see Claude Sonnet 5 vs GPT-5.6 Sol, and the model catalog lists everything we serve.