Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A ChatGPT-style streaming chat example built with the Vercel AI SDK, Next.js, and OpenAI, with OpenTelemetry tracing enabled.

Vercel example SaaS project pairing a Next.js dashboard with an Express.js API microservice, routed under one domain via microfrontends.

Vercel template that deploys a Replicache-powered todo list app built with Next.js and Supabase, with realtime sync and offline support.

An eve template for Slack agents with webhook handling, Vercel Connect credential management, a starter agent, and an example tool.
The AI SDK Next.js OpenAI Chat Example with Telemetry is a Vercel-maintained starter from the vercel/ai repository that combines Next.js, the AI SDK, and OpenAI into a streaming ChatGPT-style chat application with OpenTelemetry tracing enabled. It is one of the official AI SDK examples published alongside the AI Toolkit for TypeScript.
It is a runnable Next.js example application, published in the vercel/ai repository, that wires the AI SDK to OpenAI in order to stream chat completions to a browser interface. The only input you supply is an OpenAI API key, stored as an environment variable; the output is a working chat bot page that streams model responses token by token while emitting OpenTelemetry telemetry for each AI SDK call. It runs locally on Next.js with npm, Yarn, or pnpm, and it can also be deployed directly to Vercel with one click.
Start by signing up at OpenAI's developer platform and creating an API key in the OpenAI dashboard. Copy the provided example env file to .env.local and set the key as the token value. Run the install command for your package manager (pnpm install, for example), then start the dev server with pnpm dev, or deploy the repository to Vercel instead of running it locally.
An OpenAI account and API key, plus Node.js tooling for npm, Yarn, or pnpm. You copy the example env file to .env.local, place the key there, install dependencies, and start the development server. No other provider credentials are required because the example targets OpenAI specifically.
Yes. The example is built around AI SDK OpenTelemetry support, so model calls are instrumented as part of the sample rather than requiring you to add tracing yourself. The README links to the AI SDK telemetry documentation for configuring where those traces are exported.
Yes. A Vercel deploy link clones the vercel/ai example repository, asks for the OpenAI API key as an environment variable, and provisions a project named vercel-ai-chat-openai-telemetry. The same link works whether or not you have already bootstrapped the project with create-next-app.
It is built on Next.js and calls OpenAI models through the AI SDK, which is the TypeScript toolkit maintained by the creators of Next.js. The chat surface is a streaming web UI, so responses appear incrementally as the model generates them.
