Skip to main content

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.

Input $2Output $10per 1 million tokensCached input $0.20Cache write $2.50

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

    Sonnet 5 reads up to 1,000,000 tokens here, but the application must resend the context needed for each new call.

    • 1200
    • low
    Use this example
  • 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

    Give 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
    Use this example
  • 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

    Sonnet 5 can propose calls to your functions, but tool execution, permission checks and interpretation of results stay in your application.

    • 1500
    • medium
    Use this example

This example starts at Input $2 / Output $10 per 1 million tokens. The Playground updates the estimate when you change the settings.