AI Gateway

Grok 3 Beta

xai/grok-3

xAI's flagship model that excels at enterprise use cases like data extraction, coding, and text summarization. Possesses deep domain knowledge in finance, healthcare, law, and science.

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