Skip to main content
Claude Sonnet 4 is a general-purpose model for coding and knowledge work from Anthropic. Call claude-sonnet-4-20250514 through MixRoute’s Anthropic-compatible Messages API; the OpenAI-compatible Chat Completions API is also supported.

Key capabilities

  • Messages API - Native Anthropic request and response format
  • OpenAI-compatible - Also works through Chat Completions
  • Streaming - Incremental output through SSE
  • System prompts - Top-level system instructions
  • Tool use - Supports Anthropic tool definitions

Quick example

Messages API

OpenAI-compatible API

Parameters

Messages API

OpenAI-compatible API