Back to Models

xAI: Grok 4

x-ai/grok-4
Jul 9, 2025256K context$3.00/M in · $15.00/M outReasoningDeprecates 2026-05-15

Upcoming deprecation

This model will be deprecated on 2026-05-15. Please plan to migrate to an alternative model before this date.

Description

Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs. Note that reasoning is not exposed, reasoning cannot be disabled, and the reasoning effort cannot be specified. Pricing increases once the total tokens in a given request is greater than 128k tokens. See more details on the xAI docs

Specifications

Provider
x-ai
Context Length
256K
Max Output
Modality
Inimagetext
Outtext

Pricing

Type128K>128K
Input$3.00$6.00
Output$15.00$30.00
Cache Read$0.75$0.75
Web Search$0.0050 / call

Quick Start

curl https://api.ominigate.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-omg-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
xAI: Grok 4 — Pricing & API on OminiGate