AI Gateway

/

Grok 4 Fast Reasoning

Grok 4 Fast Reasoning by xAI

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. Note: prompts and responses may be retained and used for training by the provider while the model is free.

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