Skip to content
AnthropicChatclaude-sonnet-4-5

Claude Sonnet 4.5

Claude Sonnet 4.5 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.

Explore Claude Sonnet 4.5 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses through the unified API. Supported interfaces and current availability are shown below.

  • OpenAI-style Chat Completions
  • Anthropic-style Messages
  • OpenAI-style Responses

Model details

Context window
200K tokens
Max output
64K tokens
Input
Text, images
Output
Text
Capabilities
Reasoning, Vision, Tool calling, Streaming
Interfaces
OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses

Pricing

Prices use the units shown below. No gateway fees. Usage, size and model options may affect the total.

Claude Sonnet 4.5 pricing.
MetricPrice
/ 1M input tokens$3
/ 1M output tokens$15
/ 1M cached input tokens$0.3
/ 1M cache write tokens (5 min)$3.75
/ 1M cache write tokens (1 hour)$6
/ web search$0.01

Why teams pick it

  • Claude Sonnet 4.5 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.

Call Claude Sonnet 4.5

Claude Sonnet 4.5 answers on any of the APIs below — pick the one your code already speaks and just swap in your Cloakray key.

/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/chat/completions \
  -H "Authorization: Bearer ckr_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-4-5",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'
/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.cloakray.com/v1/messages \
  -H "Authorization: Bearer ckr_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-4-5",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'
/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/responses \
  -H "Authorization: Bearer ckr_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-4-5",
  "input": "Hello"
}'

Conversation compaction is also available at POST /v1/responses/compact.

More from Anthropic