AI Gateway

Grok 4 Fast Reasoning

xai/grok-4-fast-reasoning

Grok 4 Fast is xAI's latest multimodal model with SOTA cost-efficiency and a 2M token context window. It comes in two flavors: non-reasoning and reasoning.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'xai/grok-4-fast-reasoning',
prompt: 'Why is the sky blue?'
})