Skip to content

List available models

GET
/api/v1/config/models
curl --request GET \
--url http://localhost:11044/api/v1/config/models \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'

Returns models (names), modelsWithProvider (name and provider pairs), and the default model. When the provider cannot be queried the lists come back empty with a 200, never an error.

Model names, providers, and the default model

Media type*/*

The language models the provider offers, and the one auto-selection picks

object
default
required

The model auto-selection picks; the first listed when none resolves, and empty when there are none

string
models
required

The model names. Empty when the provider could not be queried

Array<string>
modelsWithProvider

Each model with the provider that serves it. Absent, not empty, when the provider could not be queried

Array<object>

One model and the provider that serves it

object
name
required

The model’s name

string
provider
required

The provider serving it

string