Protecting against token theft
May 29, 2026

Summary
This post introduces a defense mechanism against inference theft for AI endpoints. It details the problem of inference theft, why traditional web defenses are insufficient, and presents Vercel BotID with deep analysis as a solution. The implementation involves server-side `checkBotId()` within route handlers and client-side initialization of BotID to protect specific API paths. The core technical contribution is the per-request verification strategy to mitigate high-cost AI abuse.