The complete ecosystem for building production AI applications.
Start simple. Use the Vercel AI SDK for almost everything. Only reach for LangGraph when you hit the limits of simple loops.
# Install the SDK
npm install ai @ai-sdk/openai
# app/api/chat/route.ts
import { generateText } from 'ai'
import { openai } from '@ai-sdk/openai'
const result = await generateText({
model: openai('gpt-5-mini'),
prompt: 'Hello world!'
})