ToolsThe story, in brief

Node.js Vercel Functions now support per-path request cancellation

Vercel cuts wasted AI inference costs with per-path request cancellation—stop token generation the moment users navigate away.

Paper-cut illustration of a coral software window opening into a three-dimensional drafting space.
New tools for building and creating with AI.AI illustration by KeyNews
The KeyNews take

Why it matters

As AI applications consume more compute per request, infrastructure platforms are adding granular controls to prevent token waste when users abandon requests. This is a meaningful cost lever for AI-heavy apps at scale.

The key facts

12 to know
  1. Vercel Functions (Node.js) now support per-request cancellation detection

  2. Configurable per-path via 'supportsCancellation: true' in vercel.json

  3. Cancellation triggers: navigation, tab close, user-initiated stop (e.g., AI chat interrupts)

  4. Reduces unnecessary compute, token generation, and bandwidth waste

  5. Implementation via Request.signal.aborted or abort event listener

  6. AI SDK integration: forwards abortSignal to streams for early termination

  7. Per-path request cancellation now supported in Node.js Vercel Functions

  8. Detects user actions: tab close, navigation, chat stop button

  9. Configurable via 'supportsCancellation': true in vercel.json

  10. Reduces compute, token generation, and data transmission for cancelled requests

  11. Works with AI SDK by forwarding abortSignal to streams

  12. Available immediately for Node.js; applies to streaming/long-running AI workloads

Go to the source

Vercel Blogvercel.com

Publisher excerpt: can now detect when a request is cancelled and stop execution before completion. This is configurable on a per-path basis, and 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…
Read original report
Back to today's editionMore tools news

Keep reading

Related stories

More from Tools