Base URL, method, and required headers are rendered from the active protocol template for this model.

Claude Sonnet 5
Coding and agent quality approach the frontier, with native reasoning built in, well-suited for complex planning and long-horizon professional tasks that require cross-step consistency.
Pricing
| Specification | Price |
|---|---|
| Input | $3/ M tokens |
| Output | $15/ M tokens |
| Cache read | $0.3/ M tokens |
| Cache write | $3.75/ M tokens |
| Cache write 1h | $6/ M tokens |
Quick Start
Paste and run the sample code below. The Gate.AI API is OpenAI-compatible—most SDKs only need a new base URL. To switch models, change the model ID.
Get your API key
Sign in to the Gate.AI console and create a new key under "API Keys". Keep it safe and send it via the Authorization header on every request.
Create a key in the consoleMake a request
Send a POST request to the Chat Completions endpoint with a model ID and an array of messages to get a reply.
curl --location "https://api.gate.ai/openai/v1/chat/completions" \
--header "Authorization: Bearer {API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"model": "claude-sonnet-5",
"messages": [
{"role": "user", "content": "Hello"}
]
}'Handle the response \\\\\& streaming
By default a full JSON response is returned. Add "stream": true to the request body to receive incremental chunks over SSE.
curl --no-buffer --location "https://api.gate.ai/openai/v1/chat/completions" \
--header "Authorization: Bearer {API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"model": "claude-sonnet-5",
"messages": [
{"role": "user", "content": "Hello"}
],
"stream": true
}'Endpoint
Create messages in Anthropic Messages API format with text, images, tools, and extended thinking.
Related Models
Claude Haiku 5.5Small, fast model for high-volume, latency-sensitive summarization, subagents, and browser use, with stronger coding and computer use than the prior generation.
Claude Sonnet 5.5Sonnet-class model for well-scoped everyday work, with stronger feature building, bug fixing, and office deliverables than the prior generation, suited to responsive agentic loops.
Claude Opus 5.5Successor to Opus 5 for demanding reasoning, coding, and long-horizon agent work; excels at multi-step changes across large codebases and sustained knowledge tasks.
Claude Opus 5Flagship model for demanding reasoning, coding, and long-horizon agentic work, spanning end-to-end software, code review, parallel subagent coordination, visual analysis of charts and documents, and complex office deliverables.
Claude Fable 5Claude Fable 5 is Anthropic’s advanced long-horizon reasoning model, supporting text, image, and file inputs with text output. It features reasoning capabilities and a 1M-token context window, making it suitable for autonomous knowledge work, software development, and complex multi-step tasks.
Claude Opus 4.8Opus family flagship with reasoning. Suited for long-horizon autonomous agents, large-codebase analysis, and multimodal knowledge work.
Claude Opus 4.8 betaOpus family flagship with reasoning. Suited for long-horizon autonomous agents, large-codebase analysis, and multimodal knowledge work.
Claude Opus 4.7 betaBuilt for long-running async agents, excelling at complex multi-step tasks and end-to-end workflow execution.
Claude Opus 4.7Built for long-running async agents, excelling at complex multi-step tasks and end-to-end workflow execution.
Claude Sonnet 4.6Best balance of quality and cost from Anthropic.