AI Gateway

Grok 4 Fast Non-Reasoning

xai/grok-4-fast-non-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-non-reasoning',
prompt: 'Why is the sky blue?'
})