Skip to content

Grok 4.5

Deep thinking

xAI

VisionFunction callingReasoningPrompt cachingStructured outputPDF inputWeb search
Input
$2/M
Output
$6/M
Context
500K
Released
Jul 8, 2026
All models

xAI's latest Grok for chat, coding, agentic tools, and lower hallucination risk

Context window
500K
Max output
500K
Released
Jul 8, 2026
Knowledge cutoff
Type
Deep thinking
Family
grok

Capabilities

VisionFunction callingReasoningPrompt cachingStructured outputPDF inputWeb search

Modalities & protocols

textimagepdftext

Call as:
openai-compatible
anthropic-messages
Upstream:
openai-compatible

Pricing · 6 providers

Official
Prompt
$2/M tokens
Completion
$6/M tokens
Cache read
$0.5/M tokens

Price tracks (first match wins)

  1. 1.>200K context

    ×1
    • context > 200K tokens
    Prompt
    ×2
    Completion
    ×2
    Cache read
    ×2
  2. 2.standard

    ×1

    Default track — applies when no earlier track matches.

ProviderInput /MOutput /M
xaiofficial$2/M tokens$6/M tokens
llmgateway$2/M tokens$6/M tokens
opencode$2/M tokens$6/M tokens
openrouter$2/M tokens$6/M tokens
venice$2.27/M tokens$6.8/M tokens
vercel$2/M tokens$6/M tokens

Price history

  1. 2026-07-08Listed in catalog
Full history API →

Parameter support

Supported:frequency_penaltyinclude_reasoninglogprobsmax_tokenspresence_penaltyreasoningresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_p

Reasoning

Always on
Yes

Also known as

grok-4-5x-ai/grok-4.5xai/grok-4.5

Related models

Call this model

curl "$BASE_URL/v1/chat/completions" \
  -H "Authorization: Bearer $API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "grok-4.5",
    "reasoning_effort": "medium",
    "tools": [{ "type": "function", "function": { "name": "get_weather", "description": "Get weather by city", "parameters": { "type": "object", "properties": { "city": { "type": "string" } }, "required": ["city"] } } }],
    "messages": [{ "role": "user", "content": [
        { "type": "image_url", "image_url": { "url": "https://example.com/chart.png" } },
        { "type": "text", "text": "Summarize the attached data." }
      ] }]
  }'

Set $BASE_URL to the vendor endpoint or any compatible gateway (e.g. CCHP).