Skip to main content
The Vercel AI SDK provider does not expose a built-in listModels() helper. Use one of these patterns to keep model IDs current.

Option 1: Fetch from the Gateway API

Option 2: Use the official TypeScript SDK

Using discovered IDs with AI SDK

Notes

  • Model IDs use provider/model format.
  • /v1/models supports filters such as provider, status, organisation, endpoints, and availability.
  • Re-check model availability periodically for routing and deprecations.
  • Prefer selecting IDs from /v1/models over hard-coding long-term.
Last modified on July 26, 2026