Skip to content
Anthropic

Claude Sonnet 5

anthropic/claude-sonnet-5

Claude Sonnet 5 is a reasoning model by Anthropic with vision, function calling, web search, prompt caching, structured output — designed for complex, multi-step problem solving where accuracy matters more than speed. It supports a 1M token context window with up to 128K tokens of output. Priced at $2 per million input tokens and $10 per million output tokens. Access Claude Sonnet 5 through Inworld LLM Inference with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.

Input
$2.00
Output
$10.00
Cache read
$0.20
Context
1M
Max output
128K
TextImage→Text
Function CallingWeb SearchReasoningPrompt CachingStructured outputVision
Run on your server. Set INWORLD_API_KEY to your API key. Python requires pip install openai; JavaScript requires Node.js 18+; save it as example.mjs.
curl --fail-with-body https://api.inworld.ai/v1/chat/completions \
  -H "Authorization: Basic $INWORLD_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "anthropic/claude-sonnet-5",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": true
  }'
Model Claude Sonnet 5OpenAI SDK compatible

Pricing and providers

Access Claude Sonnet 5 through Inworld LLM Inference or speech to speech via Anthropic. By using the providers below you agree to their terms, listed under each provider's name in the Legal section.

Modalities
AnthropicThis pageanthropic/claude-sonnet-5
$2.00$10.00$0.20$2.501M128K
TextImage→Text
Prices in USD per 1M tokens.

Start building with Claude Sonnet 5

Access Claude Sonnet 5 and every other model through LLM Inference or speech to speech. Create a free account and start in minutes.