Vercel AI SDK v5 Integration

NEW
v5.0

Modern streaming AI capabilities with Vercel AI SDK v5 for enhanced performance and developer experience.

What's New in AI SDK v5

Native Streaming

Server-Sent Events (SSE) for real-time token streaming with built-in backpressure handling.

Type Safety

Full TypeScript support with UIMessage and ModelMessage types for better DX.

Multi-Provider

Support for OpenAI and Grok with easy provider switching via model IDs.

MCP Tools

Model Context Protocol integration for advanced tool calling capabilities.

Available Endpoints

Core Endpoints

  • POST /api/ai-sdk/agents/:id/chat

    Stream chat with an agent using Vercel AI SDK

  • POST /api/ai-sdk/business/agents/:id/chat

    Business agent chat with MCP tool support

Ready to Get Started?

The AI SDK v5 is available now. Check your API status in the sidebar.