Claude Sonnet 5 API focuses on agent workflows: a request can carry a plan, tool definitions and the evidence collected so far. Sonnet 5 supports low, medium and high effort on this endpoint, with medium as the starting point for ordinary agent steps.
Workbench
These examples were written for this endpoint. Replace the prompt and sample media URLs with your own accessible inputs, then check the current quote and model availability before submitting.
- Input types
- Text
- Output types
- Text
- Input
- $2 / 1 million tokens
- Cached input
- $0.20 / 1 million tokens
- Output
- $10 / 1 million tokens
- Context
- 1M
- Max output
- 64K
$2/10per 1 million tokens · input / output
long-session-turn Use this exampleSonnet 5 reads up to 1,000,000 tokens here, but the application must resend the context needed for each new call.
- 1200
- low
- Input types
- Text
- Output types
- Text
- Input
- $2 / 1 million tokens
- Cached input
- $0.20 / 1 million tokens
- Output
- $10 / 1 million tokens
- Context
- 1M
- Max output
- 64K
$2/10per 1 million tokens · input / output
multi-character-scene Use this exampleGive Sonnet 5 a concrete completion criterion, such as a reviewed patch or an extracted record, so a tool loop has a clear stopping point.
- 2000
- high
- Input types
- Text
- Output types
- Text
- Input
- $2 / 1 million tokens
- Cached input
- $0.20 / 1 million tokens
- Output
- $10 / 1 million tokens
- Context
- 1M
- Max output
- 64K
$2/10per 1 million tokens · input / output
tool-driven-session Use this exampleSonnet 5 can propose calls to your functions, but tool execution, permission checks and interpretation of results stay in your application.
- 1500
- medium
This example starts at Input $2 / Output $10 per 1 million tokens. The Playground updates the estimate when you change the settings.
