Skip to content
Dashboard

Introducing the AI Gateway

import { streamText } from 'ai'
const result = streamText({
model: 'xai/grok-3', // defaults to Vercel AI Gateway
prompt: 'Tell me the history of the San Francisco Mission-style burrito'
})

Write code in an app route or a script like the code above

Terminal
pnpm install ai@beta

Copy link to headingWhy we're building the AI Gateway

Copy link to headingIntegration with the AI SDK

Copy link to headingPricing

Copy link to headingWhat's coming next

Copy link to headingStart exploring AI Gateway

Ready to deploy?