Home · Agents · Vercel AI SDK

Use Vercel AI SDK with Manifest

/ 30 days
App AI SDK

The Vercel AI SDK lets you ship streaming AI features in minutes. Plug it into Manifest and the same generateText, streamText, and tool calls fan out across providers, at the lowest possible cost.

models routed through Manifest over the last 30 days.

Why use the Vercel AI SDK with Manifest

The Vercel AI SDK accepts any OpenAI-compatible endpoint via createOpenAI. Manifest is that endpoint, but instead of one provider, it gives you many, with smart routing and one bill.

  • Drop-in: a single createOpenAI call
  • Streaming, tool calls, and structured output all pass through unchanged
  • Use "auto" to let Manifest pick the cheapest model
  • Or pin a specific model when you need consistency
  • Per-app and per-feature spend caps from the Manifest dashboard
  • Cost, latency, and token tracking out of the box

Setup in 60 seconds

Initialize the SDK with Manifest's baseURL and API key. The rest of your Vercel AI SDK code stays the same.

Install the SDK and create an OpenAI-compatible client pointing at Manifest:

import { createOpenAI } from "@ai-sdk/openai";
import { generateText } from "ai";

const manifest = createOpenAI({
  baseURL: "https://api.manifest.build/v1",
  apiKey: "mnfst_YOUR_KEY",
});

const { text } = await generateText({
  model: manifest("auto"),
  prompt: "Hello",
});
baseURL https://api.manifest.build/v1
apiKey mnfst_YOUR_KEY
model auto

Vercel AI SDK tokens processed on Manifest

Models in use

# Model
Auth type Tokens / last 30 days