Back to approved models
xAIactiverelay/request.mjsready to route CONTEXT256K contextprompt window MAX OUTPUT65Kper response INPUT$3.0 / Mtoken price OUTPUT$15.0 / Mtoken price
Approved model profile_
Grok 4
[Grok 4.1 Fast is xAI's best agentic tool calling model that shines in real-world use cases like customer support and deep research. 2M context window. Reasoning can be enabled/disabled using the `reasoning` `enabled` parameter in the API. Learn more in our docs]
grok-4-0709const completion = await client.chat.completions.create({
model: "grok-4-0709",
messages: [
{ role: "user",
content: "Plan a multi-step task" }
]
});Route configuration_
Use the model through the contract you already have.
PipeLLM resolves provider access, policy, and supported model capabilities without changing the interface your application calls.
https://api.pipellm.ai/openaiOpenAI-compatible routegrok-4-0709Use this in every requestPROVIDER AVAILABILITY1 route
| Provider | Context | Max output | Input / M | Output / M |
|---|---|---|---|---|
| X.AI | 256K context | 65K | $3.0 / M | $15.0 / M |
SUPPORTED SURFACESactive
input: textinput: imageoutput: texttool use
Relay governs model access with the same routing policy that Lens keeps visible and auditable.
