AI features shipped with the Vercel AI SDK serve real users in your product. AgentPing wraps your calls so each one becomes a run record with cost, status and optional quality, attributed to the customer and feature.
A Vercel AI SDK feature lives in your product, called by real users. When the AI bill moves, you need to know which feature and which customer drove it, and when a feature starts returning weaker answers, you want to know before the support queue does.
Initialise once, then wrap the call. A streamed generation is still one clean run, and the cost is attributed to the customer and feature you tag.
npm install @agentping/sdk
import { init, run } from "@agentping/sdk";
import { generateText } from "ai";
init({ apiKey: process.env.AGENTPING_API_KEY, agent: "copilot" });
// One run per call, attributed to the customer and feature.
await run({ agent: "copilot", customerId: "acme-corp", feature: "summarise" }, async () => {
return await generateText({ model, prompt: "…" });
});
Full setup, environment variables and options are in the TypeScript SDK docs.
Send one run from Vercel AI SDK and see cost, status and latency. Then add an alert for cost spikes or missed runs.
Spend, cost attribution → Verify, quality scoring → Pulse, live monitoring →