AI Gateway

All Models/

Grok Code Fast 1

Grok Code Fast 1 by xAI

xAI's latest coding model that offers fast agentic coding with a 256K context window.

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