VercelBetaVerified 2026-11-11

Vercel AI Gateway — Decisions endpoint

OpenAI-compatible POST /decisions endpoint on Vercel AI Gateway that routes to any decision model on the gateway (e.g. openai/gpt-6-luna-decisions, typesafe-ai/jev, microsoft/microsoft-decision-1).1

PricingUSD, as published

ItemValue
List priceProvider list price21
Free tierYes

No markup and no platform fee on tokens: you pay the provider’s list price (also with your own key). Per-request cost is reported in response metadata; the docs’ example shows $0.10 per 1M for openai/gpt-6-luna-decisions, matching OpenAI’s list price.21 [Verified 2026-11-11 on https://vercel.com/docs/ai-gateway/pricing.md and https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-decisions.md (no change)]

A request with refused questions is billed for its input like any other request.1 [Verified 2026-11-11 on https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-decisions.md (no change)]

Vercel’s public model list shows prompt-cache prices for openai/gpt-6-luna-decisions ($0.01 per 1M cache read, $0.125 per 1M cache write, $0.20 per 1M input above 272K tokens), matching OpenAI’s list prices.35 [Verified 2026-11-11 on https://ai-gateway.vercel.sh/v1/models (no change) and https://developers.openai.com/api/docs/pricing.md]

Not in the cost calculator: Pass-through: no markup, you pay the routed provider’s list price, so the cost depends on which model you route to.

LimitsPer request

LimitValue
Context windowPer model (8k–1.05M)
Rate limitNone on paid tier

choice: 1–255 choices; score: 2–10 levels; up to 128 images per request. Base64 data URLs only: Vercel’s docs still say external URLs and file IDs are not supported, although OpenAI’s own endpoint accepts public image URLs since Oct 22, 2026. Image detail can be low, high, auto or original.1 [Verified 2026-11-11 on https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-decisions.md (no change)]

Text-only models such as typesafe-ai/jev return 400 on image requests (Vercel Decisions docs, re-read 2026-11-11). Note: TypeSafe’s own API now documents beta PNG/JPEG image input with a danger-zone header; the Gateway path for typesafe-ai/jev may still reject images.16 [Verified 2026-11-06 on https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-decisions.md; TypeSafe images at https://docs.typesafe.ai/images]

StatusBeta

  • Documentation page live; release stage not stated on the page. OpenAI Decisions added Oct 7, 2026 and Microsoft Decision-1 added Oct 9, 2026 (Vercel changelog). Changed: the models API (2026-11-11) lists 18 decision models (type evaluation), including Baseten mammoth-1 and elephant-1 (2026-10-21) and joey-1 (2026-10-29), parallel/parallel-decisions-fast (2026-11-06, $0.001 per request) and three Nace Drex models (2026-11-09, $0.03 per 1M input), alongside OpenAI, TypeSafe Jev, Microsoft, Perplexity, Liquid, Laya and scaledown models.13 [Verified 2026-11-11 on https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-decisions.md and https://ai-gateway.vercel.sh/v1/models]

Auth

MethodAPI key or OIDC

FeaturesFrom lib/apiFeatures.js

YesNoN/ANot published
CapabilityStateNote
Free tierlaya-free listed at $0Yes32laya-free listed at $0
Official SDKsOpenAI SDKs with a base URL changeYesOpenAI SDKs with a base URL change
Fine-tuningGateway: routes to other providers' models, none of its own to tuneN/AGateway: routes to other providers' models, none of its own to tune
BatchNot on the Decisions pageNot published12Not on the Decisions page
Structured JSON outputNot on the Decisions pageNot published12Not on the Decisions page
Tool / function callingNot on the Decisions pageNot published12Not on the Decisions page
StreamingNot on the Decisions pageNot published12Not on the Decisions page
MCP supportNo AI Gateway MCP featureNot published71No AI Gateway MCP feature
Open source / self-hostNot on the Decisions pageNot published12Not on the Decisions page
SLA publishedNot on the Decisions pageNot published12Not on the Decisions page
EU / data residencyNot on the Decisions pageNot published12Not on the Decisions page

Fit and safety

Watch out

  • Useful for vendor-diverse fallbacks behind one API shape — use fallbacks for availability, not as a vote that overrides your rules.
  • Adds a third party in the data path; confirm ZDR and provider restrictions match your requirements.

How it works

  1. Base URL https://ai-gateway.vercel.sh/v1; OpenAI SDKs work with a base URL change.
  2. Auth: AI Gateway API key or Vercel OIDC token (an API key takes precedence if both are sent).
  3. Supports providerOptions: zero data retention requirement, provider restriction, and decision fallbacks. safety_identifier maps to providerOptions.gateway.safetyIdentifier.
  4. Response includes routing and cost metadata. Question names must be unique within a request; unnamed questions come back with name: null.
  5. New: input messages can now carry input_json parts (a JSON object or a non-empty array of objects) next to input_text and input_image parts.

Compare

Put Vercel AI Gateway — Decisions endpoint side by side with other APIs on price, limits and features. Open the comparison table →

SourcesFootnotes

  1. 1Vercel docs: OpenAI-compatible Decisions APIvercel.com/docs/ai-gateway/sdks-and-apis/openai-decisionsVerified 2026-11-11
  2. 2vercel.com/docs/ai-gateway/pricingvercel.com/docs/ai-gateway/pricingVerified 2026-11-11
  3. 3ai-gateway.vercel.sh/v1/modelsai-gateway.vercel.sh/v1/modelsVerified 2026-11-06
  4. 4vercel.com/docs/ai-gateway/rate-limitsvercel.com/docs/ai-gateway/rate-limitsVerified 2026-11-06
  5. 5developers.openai.com/api/docs/pricingdevelopers.openai.com/api/docs/pricingVerified 2026-11-11
  6. 6docs.typesafe.ai/imagesdocs.typesafe.ai/imagesVerified 2026-11-06
  7. 7vercel.com/docs/ai-gatewayvercel.com/docs/ai-gatewayChecked 2026-11-06
  8. 8Vercel changelog: OpenAI Decisions API on AI Gateway (2026-10-07)vercel.com/changelog/openai-decisions-api-now-available-on-ai-gatewayCited
  9. 9Vercel changelog: Microsoft Decision-1 on AI Gateway (2026-10-09)vercel.com/changelog/microsoft-decision-1-now-available-on-ai-gatewayCited