Skip to content

Grok Code Fast 1

Grok Code Fast 1 is xAI's specialized coding model optimized for fast code generation, completion, and debugging. It delivers low-latency code output within a context window of 256K tokens, tuned specifically for software development workflows.

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