Back to Models
x-ai logoxAI
x-ai/grok-4
Not Available

Grok 4

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](https://docs.x.ai/docs/models/grok-4-0709)

7/9/2025
256,000 tokens

Specifications

Modalities

Input
image
text
Output
text

Supported Parameters

include_reasoning
logprobs
max_tokens
reasoning
response_format
seed
structured_outputs
temperature
tool_choice
tools
top_logprobs
top_p

Data policy

Prompt retention
Unknown — we could not confirm
Training
Unknown — not declared

"Unknown" does not mean "safe". It means we could not confirm it.

Whether a provider trains on prompts is a declared value from our terms with them. Retention is determined from the upstream listing for every host this model can reach. Neither is guessed.

Frequently asked questions

Is Grok 4 available on FastMetal?
Not at the moment. Grok 4.6, from the same lab, is available on the FastMetal API today.
What is the context window of Grok 4?
256,000 tokens, shared between the prompt and the response.