Skip to main content
GET
To browse the models, see weflayr.com/models. This route returns the same list as JSON. Each model’s id, providers[].provider and deployments[].region are the values to send as model, provider and region. No API key is needed. With one, the list also holds your project’s non-archived routing strategies, as strategy/<slug>.

Headers

string
Optional. Your API key with the Gateway scope, to also list your routing strategies. An unrecognized key returns a 401.

Query parameters

string
default:"text"
text for the models of Chat Completions and Responses, embeddings for the models of Embeddings (no routing strategy).

Response

object[]
The models, then your routing strategies.

Errors

  • 400 invalid_query_parameter: output_modalities is not text or embeddings.
  • 401 invalid_credentials, 403 gateway_scope_required: the API key is unknown, or lacks the Gateway scope.
  • 503 authentication_unavailable, model_catalog_unavailable, routing_strategy_unavailable: retry later.