xai/grok-4-fast-reasoningClosed APIFast Grok model for responsive chat, reasoning, and tool-assisted work
TECHNICAL SPECIFICATIONS
MODEL CONTEXT PROTOCOL (MCP) READINESS
✓ X-Ai/Grok-4-Fast-Reasoning natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.
MCP Context Window Recommendations
With a context capacity of 2,000,000 tokens, this model can handle extremely large MCP resource manifests, complete database schemas, and multiple active server tool definitions simultaneously without degradation.
API CALL INVOCATION EXAMPLE
// Example: Calling X-Ai/Grok-4-Fast-Reasoning via OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.XAI_API_KEY,
});
const response = await client.chat.completions.create({
model: "xai/grok-4-fast-reasoning",
messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});
console.log(response.choices[0].message.content);PRICING BY PROVIDER
Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.
MODEL RESOURCES
More Models by xAI
Alternative and family models from the same lab
xAI's fast agentic tool-calling model with a 2M context window and built-in reasoning
Fast Grok model for responsive chat, reasoning, and tool-assisted work
xAI's fast agentic tool-calling model with a 2M context window; non-reasoning variant for low-latency responses