Templates

The fastest path from idea to AI app.

Start from official app templates, examples, and framework integrations — with the right primitives already wired up.

AI Functions

Scripts and test suites for validating, testing, and iterating on AI functions across providers.

Multi-providertesting

Express.js

Use the AI TOOLKIT in an Express.js server to generate and stream text and objects.

Expressopenaiexpress

Fastify

Use the AI TOOLKIT in a Fastify server to generate and stream text and objects.

Fastifyopenaifastify

Hono

Use the AI TOOLKIT in a Hono server to generate and stream text and objects.

Honoopenaihono

Node.js HTTP Server

Use the AI TOOLKIT in a simple Node.js HTTP server to generate and stream text and objects.

Node.jsopenainode

Angular Chat

A simple chat application built with Angular that connects to OpenAI models using the AI TOOLKIT.

Angularopenaiangular

NestJS

Use the AI TOOLKIT in a Nest.js server to generate and stream text and objects.

NestJSopenainest

Next.js Agent

A minimal example to show code modularization with agents, tools, and components.

Next.jsopenainextjs

Next.js + FastAPI

Use the AI TOOLKIT with Next.js and FastAPI to create AI-powered streaming applications.

Next.jsnextjs

Next.js + LangChain

Use the AI TOOLKIT with Next.js, LangChain, LangGraph, and OpenAI to create AI-powered streaming applications.

Next.jsopenainextjs

Next.js Pages Router

Use the AI TOOLKIT with the Next.js pages router and OpenAI to create a ChatGPT-like streaming chat bot.

Next.jsopenainextjs

Next.js + OpenAI Chat

Use the AI TOOLKIT with Next.js and OpenAI to create a ChatGPT-like AI-powered streaming chat bot.

Next.jsopenainextjs

Next.js Minimal

A minimal Next.js example to test persistence, SSR, and stream resume.

Next.jsnextjs

Nuxt + OpenAI Chat

Use the AI TOOLKIT with Nuxt and OpenAI to create a ChatGPT-like AI-powered streaming chat bot.

Nuxtopenainuxt

MCP Integration

Use the AI TOOLKIT with MCP to convert between MCP and AI TOOLKIT tool calls.

Node.jsopenaimcp

Google Vertex AI

Use the AI TOOLKIT with Next.js and Google Vertex AI to validate the Google Vertex provider on the Edge runtime.

Next.jsgoogle-vertexnextjs

Kasada Bot Protection

Integration of an AI chat app based on the AI TOOLKIT and Kasada's advanced bot protection solution.

Next.jsopenainextjs

OpenTelemetry + Sentry

Use the AI TOOLKIT with Next.js, OpenAI, and Sentry to create a streaming chat bot with OpenTelemetry support.

Next.jsopenainextjs

OpenTelemetry

Use the AI TOOLKIT with Next.js and OpenAI to create a streaming chat bot with OpenTelemetry support.

Next.jsopenainextjs

Upstash Rate Limits

Use the AI TOOLKIT with Next.js and OpenAI to create a streaming chat bot with rate limits using Vercel KV.

Next.jsopenainextjs

Playground

An interactive web-based playground for experimenting with AI models and providers using the AI TOOLKIT.

Next.jsnextjs