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

Grok 4.5
Grok's flagship reasoning model, running an internal chain of thought before responding. Strong performance on coding and STEM tasks, with support for text, image, and file inputs. Suited for technical problem-solving and long-document analysis.
Pricing
| Specification | Price |
|---|---|
| Input | $2/ M tokens |
| Output | $6/ M tokens |
| Cache read | $0.5/ M tokens |
| Cache write | -- |
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": "grok-4.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": "grok-4.5",
"messages": [
{"role": "user", "content": "Hello"}
],
"stream": true
}'Endpoint
Related Models
Grok 4.6Grok's agent-oriented release, built for long-running multi-step work across a codebase. Accepts text, image, and file inputs. Suited for research and interactive or visual output.
Grok 4.3Grok 4.3 is a reasoning model from xAI that supports text and image inputs with text output. It is suited for agentic workflows, instruction following, long-document analysis, and deep research. The model supports a 1M token context window. Requests above 200K total tokens are billed at a higher rate.
Grok 4.20Reasoning-oriented Grok variant built for multi-step problem solving and agentic tool use, with strict prompt adherence and low hallucination.
Grok 4.20 Multi-AgentMulti-agent variant that dispatches sub-agents in parallel for deep research, multi-step reasoning, and tool orchestration.
Grok 4.20 V2 ReasoningReasoning-oriented Grok variant built for multi-step problem solving and agentic tool use, with strict prompt adherence and low hallucination.