Skip to main content
GET
The answer is an OpenAI model list, so client.models.list() of any OpenAI client reads it. Each model also lists every provider serving it, and each provider every region it serves the model in, with the field names of the Vercel AI Gateway model list. Each level is a request field: The provider and the region are fields of their own: do not prefix model with <provider>/. No API key is needed. The list holds only the models the gateway has checked it can call, in the regions where it checked them.

Query parameters

string
default:"text"
Which models to list: text for the models that answer Chat Completions and Responses, embeddings for the models that answer Embeddings. Any other value returns a 400 invalid_query_parameter.

Response

string
Always list.
object[]
The models, by id.

Errors

An output_modalities value other than text or embeddings returns a 400 invalid_query_parameter. A 503 model_catalog_unavailable means the gateway could not read its model catalog: retry later. The errors are in OpenAI’s format, see Errors.