Grok 4

Text & chatRetiredUnavailable
by xAIModel ID: grok-4

xAI's flagship reasoning model with vision and tool use. 256k context, strong at complex reasoning and STEM tasks.

Status
Unavailable
Context
256,000 tokens
Max. output
16,384 tokens
Input β†’ output
Text + Image β†’ Text
Developer
xAI
Updated
September 24, 2026

Grok 4 is currently unavailable

Currently unavailable: this model has been deactivated.

You can still read the details on this page. Pick one of the available alternatives below to run a comparable model right away.

Go to alternatives

The provider has retired this model.

01

Comparable models

All in this category
  • Anthropic's model for the most demanding reasoning and long-horizon agentic work. 1M-token context window, up to 128K output tokens, adaptive thinking that is always on.

    $12.00/1M in

  • The most capable model of Anthropic's Opus 4 series. State of the art on long-horizon agentic work, coding and knowledge tasks, with a 1M-token context window at standard pricing.

    $6.00/1M in

  • Anthropic's current Opus model for long-running agentic coding and knowledge work. 1M-token context window, up to 128K output tokens, adaptive thinking that is always on.

    $4.80/1M in

02

Playground

Try Grok 4

Input & output

Currently unavailable

Currently unavailable: this model has been deactivated.

The playground is disabled. You can find comparable models in the same category: Browse alternatives

Try Grok 4

0 / 16,000

User message

Advanced settings (4)

0 / 8,000

Optional system instruction

Output
The answer appears here.

This run

No price – currently unavailable.

New here?

10 free credits ($0.10) when you sign up with Google

Usable 24 hours after sign-up, up to 5 runs per day and at most 2 credits per run. Other sign-in methods start without credits.

03

About Grok 4

TL;DRAs of September 24, 2026

Grok 4 is a model by xAI in the Text & chat category. Grok 4 is currently not available on Railwail. The context window holds 256,000 tokens, and one response can be up to 16,384 tokens long.

Background

About xAI

Founded 2023 Β· Palo Alto, USA

xAI was founded in March 2023 by Elon Musk together with researchers from DeepMind, OpenAI, Google Research, Microsoft Research and Tesla including Igor Babuschkin and Tony Wu. The company's stated mission is to build maximally truth-seeking AI. Its flagship product is Grok, an LLM-based assistant deeply integrated into X (formerly Twitter) and available via a standalone app and API. Grok 1 weights were released under Apache 2.0 in November 2023 (314B-parameter MoE), Grok 1.5 added 128K context and vision in early 2024, Grok 2 shipped in mid-2024, Grok 3 launched in February 2025 trained on the Colossus supercluster, and Grok 4 followed in mid-2025 as the next frontier flagship with enhanced reasoning. xAI raised over $12 billion in 2024 across two financing rounds with backers including Andreessen Horowitz, Sequoia, Valor Equity, Lightspeed and Saudi funds. Beyond Grok the company operates the Colossus cluster in Memphis, regarded as the world's largest dedicated AI training site at launch.

Visit xAI

Architecture

Decoder-only Transformer (frontier reasoning successor to Grok 3)

Grok 4 is xAI's successor to Grok 3, released in mid-2025 as the lab's frontier reasoning model. It was trained on the expanded Colossus supercluster in Memphis, which grew from roughly 100,000 NVIDIA H100 GPUs at Grok 3 launch to a target of 200,000+ GPUs by Grok 4. xAI describes the training compute as approximately 10x that of Grok 3. The model is a decoder-only Transformer pretrained on a multi-trillion-token mixture of web text, code, scientific papers, math content and the continuously growing feed of public posts on the X platform. Post-training relies heavily on large-scale reinforcement learning against verifiable rewards, particularly for math, coding and tool-use trajectories, building on the Think and high-effort reasoning modes introduced in Grok 3. Grok 4 ships with an upgraded DeepSearch agent that performs multi-step web and X-platform retrieval before reasoning over the gathered evidence, and supports native tool use, function calling and image input. Context window is increased to 256K tokens. xAI positions Grok 4 as competitive with OpenAI o3 and Gemini 2.5 Pro on math and science benchmarks, with the differentiator being real-time access to X data and a lower refusal rate.

Parameters
Undisclosed (estimated multi-hundred billion parameters)
Context
256,000 tokens

Capabilities

  • 256K token context window
  • Reinforcement-learning-trained reasoning modes with adjustable thinking budget
  • Upgraded DeepSearch agent for X + web retrieval
  • Trained on ~200K H100 Colossus cluster
  • Strong AIME, GPQA and ARC-AGI scores at launch
  • Vision input for images and screenshots
  • Function calling and structured JSON output
  • Native integration with X timeline and DMs in the X app
  • Available via xAI API, X Premium+ and the Grok mobile app
  • Real-time fresh data through built-in retrieval
  • Best for: agentic research, real-time question answering, math/code reasoning, X-platform assistants.

Training & license

Multi-trillion-token pretraining mixture of web text, code, math, scientific papers and X public posts. Knowledge cutoff updated continuously through retrieval. Post-training applies RLHF and large-scale reinforcement learning against verifiable rewards on math, code and tool-use tasks.

License: Proprietary commercial license via xAI API, X Premium+ and the Grok app. Weights not publicly released for Grok 2, 3 or 4.

Safety testing: xAI publishes a risk-evaluation summary on x.ai. The model is intentionally less restrictive than competitor frontier models; external evaluations are limited.

Known limitations

  • Lower refusal rate increases risk of harmful or biased output
  • Limited published third-party safety evaluations
  • Real-time retrieval depends heavily on the X corpus
  • Regional availability constrained by X service availability
  • Weights not released; reproducibility limited
04

Pricing

Currently unavailable: this model has been deactivated. There is no price for this model at the moment, so it cannot be run.

05

API

Call Grok 4 with your Railwail API key. Use this model ID in the request:

No verified API example

The public API passes a different input format than this model needs. Use the playground above.

06

Specifications

Model ID
grok-4
Developer
xAI
Category
Text & chat
Input
Text, Image
Output
Text
Context window
256,000 tokens
Max. output
16,384 tokens
Lifecycle
Retired
Model size
Undisclosed (estimated multi-hundred billion parameters)
License
Proprietary commercial license via xAI API, X Premium+ and the Grok app. Weights not publicly released for Grok 2, 3 or 4.
Catalog entry updated
September 24, 2026

Input parameters

Inputs and settings from the model's input schema. The example in the API section shows which of them the API accepts.

  • promptrequired

    User message

    Type: Text
    Default: –
    Allowed values: up to 16,000 characters
  • top_p
    Type: Number
    Default: 1
    Allowed values: 0 to 1
  • stream
    Type: Yes/no
    Default: false
    Allowed values: –
  • max_tokens
    Type: Integer
    Default: 2048
    Allowed values: 1 to 16,384
  • temperature
    Type: Number
    Default: 0.7
    Allowed values: 0 to 2
  • system_prompt

    Optional system instruction

    Type: Text
    Default: –
    Allowed values: up to 8,000 characters

Tags

  • xai
  • flagship
  • reasoning
  • vision
  • tools
  • legacy-retiring
07

Use cases

What it is used for

  • Real-time research agents
  • X-platform assistants and trend analysis
  • Math and competitive coding
  • Enterprise reasoning workloads
  • Less-filtered content moderation tooling
  • DeepSearch-based question answering
08

Frequently asked questions

What is Grok 4?

Grok 4 is a model by xAI in the Text & chat category. It is listed on Railwail but cannot be run at the moment.

How much does Grok 4 cost on Railwail?

Grok 4 cannot be run on Railwail at the moment, so there is no current price. Available alternatives with prices are listed further down this page.

What is the context window of Grok 4?

The context window of Grok 4 holds 256,000 tokens. One response can be up to 16,384 tokens long.

How fast is Grok 4?

There are not enough measured runs of Grok 4 on Railwail yet to state a run time. It depends on the input, the settings and the load at the provider.

Is Grok 4 better than Claude Fable 5.1?

That depends on the task. Grok 4 (xAI) and Claude Fable 5.1 (Anthropic) are both models in the Text & chat category. The comparison page shows their prices and specifications side by side.

Compare Grok 4 and Claude Fable 5.1

Can Grok 4 process images?

Yes. Grok 4 accepts images as input in addition to text.

Can I use Grok 4 right now?

Currently unavailable: this model has been deactivated. The page stays online; available alternatives from the same category are listed further down.

All models through one API

One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = $0.01.