

xAI's latest and most powerful Grok 3 models are now available through the Vercel Marketplace, bringing state-of-the-art AI capabilities to your Vercel projects.
To get started, you can use the AI SDK xAI provider in your project:
import { xai } from "@ai-sdk/xai";
import { streamtext } from "ai";
const result = streamText({
model: xai("grok-3-beta"),
prompt: "What is the meaning of life?",
for await (const textPart of result.textStream) {
process.stdout.write(textPart); // The answer is 42.
Then, install the xAI Marketplace Integration with Vercel CLI (or from the dashboard):
Once you've accepted the terms, you'll be able to use Grok models from within your project, with no additional steps necessary.
To help you get started, we've also made a ready-to-deploy Next.js xAI starter template. To learn more about xAI on Vercel, read our announcement and the documentation.