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?'
})

Playground

Try out Grok Code Fast 1 by xAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.