ToolsThe story, in brief

AI Gateway adds confidence-based decision fallbacks

Vercel's AI Gateway now escalates to a fallback model when confidence dips below your threshold—catch low-confidence answers before they reach users.

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

A practitioner feature for reliability: set confidence conditions on choice/score/boolean questions, and the gateway automatically runs a second model if the primary answer is uncertain. Useful for production workflows where a low-confidence answer is worse than a fallback; both stages bill.

The key facts

15 to know
  1. Feature: confidence-based decision escalation in Vercel AI Gateway

  2. Supports Choice, Score, and Boolean question types

  3. Conditions can be combined; Boolean questions escalate on probability range

  4. Fallback configured via providerOptions.gateway.models conditional object

  5. Example: { "confidenceBelow": 0.6 } escalates any Choice or Score answer below 60% confidence

  6. Both primary and fallback decisions are billed

  7. Currently in beta; documented in decision fallbacks documentation

  8. Existing model-name fallbacks unaffected by the new feature

  9. Feature: confidence conditions on Choice, Score, and Boolean questions

  10. Fallback triggered when confidence signal (e.g., confidenceBelow: 0.6) is met

  11. Conditions can be combined for multi-signal escalation

  12. Escalated requests bill both primary and fallback model calls

  13. Status: beta

  14. Supports optional per-question filtering; defaults to all matching question types if no question field specified

  15. Configured via providerOptions.gateway.models.fallback conditional object

Go to the source

Vercel Blogvercel.com

Publisher excerpt: can now escalate a decision request to a fallback model when the primary model's answer trips a confidence condition you set.AI Gateway Conditions can be combined, so an escalation can depend on more than one signal. The plain model names you already list in keep catching outright errors, so…
Read original report
Back to today's editionMore tools news

Keep reading

Related stories

More from Tools