Create messages in Anthropic Messages API format with text, images, tools, and extended thinking.

Claude Opus 5
Flagship 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.
Pricing
| Specification | Price |
|---|---|
| Input | $5/ M tokens |
| Output | $25/ M tokens |
| Cache read | $0.5/ M tokens |
| Cache write | $6.25/ M tokens |
| Cache write 1h | $10/ 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/anthropic/v1/messages" \
--header "x-api-key: {API_KEY}" \
--header "anthropic-version: 2023-06-01" \
--header "Content-Type: application/json" \
--data '{
"model": "claude-opus-5",
"max_tokens": 256,
"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/anthropic/v1/messages" \
--header "x-api-key: {API_KEY}" \
--header "anthropic-version: 2023-06-01" \
--header "Content-Type: application/json" \
--data '{
"model": "claude-opus-5",
"max_tokens": 256,
"messages": [
{"role": "user", "content": "Hello"}
],
"stream": true
}'Endpoint
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 Sonnet 5Coding 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.
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.