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 has no fixed price of its own. Each request is billed at the price of the model that serves it, so your cost depends on which model the request is routed to.
Grok Latest can route to models with context windows of up to 500,000 tokens. The context length available to a request is that of the model that serves it.
Grok Latest accepts text, images, and files such as PDFs as input and returns text.
Grok 4.6, Grok 4.5, Grok Build 0.1 and 3 more are other text models from SpaceXAI.
Grok Latest was released on July 8, 2026.