Node.js Vercel Functions now support request cancellation
Vercel just killed wasted AI compute. Request cancellation stops token generation mid-stream—saving costs on every abandoned chat.

Why it matters
Vercel Functions now detect cancelled requests and halt execution early, directly reducing unnecessary compute and token spend for AI applications. This is a practical infrastructure feature that impacts cost efficiency for any startup or enterprise running LLM workloads on serverless.
The key facts
10 to knowNode.js Vercel Functions now support request cancellation
Detects cancellation via Request.signal.aborted and abort events
Reduces unnecessary compute, token generation, and data transfer
AI SDK users can forward abortSignal to streams
Published April 23, 2025
Node.js Vercel Functions now support request cancellation detection
Cancellation triggered by user actions: navigate away, close tab, stop AI chat
Reduces unnecessary compute, token generation, and data transmission
Implementation via Request.signal.aborted and abort event
AI SDK users can forward abortSignal to stream handlers
Go to the source
Vercel Blogvercel.com
Publisher excerpt: can now detect when a request is cancelled and stop execution before completion. This includes actions like navigating away, closing a tab, or hitting stop on an AI chat to terminate compute processing early.Vercel Functions using Node.js This reduces unnecessary compute, token generation, and…