Skip to main content
Grok 4.2 is a general-purpose language model from xAI. Call grok-4.2 through MixRoute using the endpoint shown below.

Key capabilities

  • OpenAI-compatible - Works with the OpenAI SDK by changing base_url
  • Streaming - Real-time token output through SSE
  • Multi-turn conversations - Uses role-based messages

Quick example

Parameters