Claude Sonnet 4.5 API

Anthropic's Sonnet 4.5 with a 200K context window and image input

anthropic/claude-sonnet-4.5
AnthropicConversation

About this model

Claude Sonnet 4.5 is a mid-tier model from Anthropic that comes before Sonnet 4.6. Anthropic’s documentation lists it with a 200K-token context window and up to 64K output tokens, smaller than the 1M-token window of Sonnet 4.6.

It accepts text and image input. Anthropic recommends newer Sonnet models for new work, so Sonnet 4.5 mainly suits cases where you want to keep to a version you have tested and a 200K window is enough.

The catalog lists a 200,000-token context window and vision, matching Anthropic’s documentation.

Use cases

  • Everyday coding
  • Document analysis
  • Agent workflows

Input and output

Input
Text and images
Output
Text, tool calls

Developer

Developer
Anthropic
Type
Conversation
Context
200,000 tokens
Capabilities
Image input

Claude Sonnet 4.5 request example

Use https://gatelum.com/v1 as the base URL and pass anthropic/claude-sonnet-4.5 in the model field. You create the key in your account after signing up.

curl --silent --show-error --fail-with-body \
  --header 'Authorization: Bearer glt_YOUR_KEY' \
  'https://gatelum.com/v1/chat/completions' \
  --header "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "anthropic/claude-sonnet-4.5",
  "messages": [
    {
      "role": "user",
      "content": "Hi! Tell me about yourself in two sentences."
    }
  ]
}
JSON
Claude Code and Anthropic-protocol clients

For clients using the Anthropic protocol, point the address at ANTHROPIC_BASE_URL=https://gatelum.com with no /v1. The model ID does not change.

macOS / Linux
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=anthropic/claude-sonnet-4.5
claude

Where to use Claude Sonnet 4.5

Guides with step-by-step instructions for the tools that support this model: