Home / Model Explorer / Grok 4.5

Grok 4.5 API

xAI·1M contextChatReasoningTool callingVision

xAI Previous-Generation Flagship · 1M Context

Overview

About this model

xAI Previous-generation flagship reasoning model: strong deep thinking and multi-step reasoning, native tool calling, and 1M long context. Note: when the context exceeds 200k tokens, the entire request (input, output, and cache) is billed at double the rate.

Capabilities

Capability matrix

TextSupported
VisionSupported
Audio—
ToolsSupported
JSONSupported
ReasoningSupported

Pricing and groups

Routes and pricing

Grok route0.16× official price (save 84%)Collecting data

Supports grok4.7 (context >200k incurs double billing for long contexts; please manage your context usage reasonably).

Input

$0.32 / 1M

Output

$0.96 / 1M

Cache read

$0.048 / 1M

Cache write

— / 1M

All pricing tiers and conditions

Standard

Input length ≤ 200,000 tokens

Input

$0.32 / 1M

Output

$0.96 / 1M

Cache read

$0.048 / 1M

Cache write

— / 1M

Long context

Input length > 200,000 tokens

Input

$0.64 / 1M

Output

$1.92 / 1M

Cache read

$0.096 / 1M

Cache write

— / 1M

Recent availabilityPast 24 hours · Active probes—
24h ago16h ago8h agoNow

Prices are in USD per million tokens. This page shows a public price snapshot. Before sending a request, check the Model Explorer for current prices. The console shows account-specific routes and charges.

How to compare prices · How to interpret performance metrics

Snapshot: . Availability reflects active probes over the past 24 hours; performance reflects actual calls.

API

Integration example

Use a Yomi API key that can access this model and route. Check the endpoint and request parameters when switching models or protocols.

Set the environment variable YOMI_API_KEY.

Quick start · Pricing and billing · Protocol reference · Chat Completions · Responses API

Python · OpenAI SDK
# pip install openai
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.yomiapi.com/v1",
    api_key=os.environ["YOMI_API_KEY"],
)

resp = client.chat.completions.create(
    model="grok-4.5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
curl · OpenAI compatible
curl 'https://api.yomiapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $YOMI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "grok-4.5",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'
curl · Responses API
curl 'https://api.yomiapi.com/v1/responses' \
  -H "Authorization: Bearer $YOMI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "grok-4.5",
  "input": "Hello"
}'

Connect to Grok 4.5 now

Create an API key in the console and select an available route.

Get an API key