Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
This model always redirects to the latest Grok model from xAI.
Grok Latest costs $2.00/M input tokens and $6.00/M output tokens, with separate rates for Cache Read at $0.50/M tokens and Web Search at $5.00/1K calls.
Grok Latest has a 500,000 token context window.
Yes. Grok Latest accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
Grok Latest accepts text, images and files such as PDFs as input and returns text.
Grok 4.5, Grok Build 0.1, Grok 4.3 and 2 more are other text models from SpaceXAI.
Grok Latest was released on July 8, 2026.