---
title: "Fetch the fleet-wide whitelisted LLM model list"
method: GET
path: "/onprem/v1/hosted-models"
tags: ["onprem", "onprem", "__public__"]
---

# Fetch the fleet-wide whitelisted LLM model list

`GET /onprem/v1/hosted-models`

## Query parameters

- `upstream` 'vertex' | 'bedrock', nullable — Filter to models advertised for this litellm upstream (vertex | bedrock). Omit to return the full enabled whitelist.

## Headers

- `X-Definite-License` string, nullable

## Response `200`

Success

- SuccessResponseHostedModelsResponse
  - `success` true, required — Flag for it request was successful
  - `data` HostedModelsResponse, required
    - `models` HostedLlmModelRow[] — Fleet-wide whitelisted model ids, enabled and sort_order-ordered
      - `model_id` string, required
      - `display_name` string, nullable
  - `meta` ResponseMeta
    - `requestId` string — Unique request identifier for tracing
    - `timestamp` string, date-time — Response timestamp (UTC)
    - `durationMs` integer, nullable — Request processing time in milliseconds

## Other responses

- `401` — Auth Invalid Token
- `403` — Forbidden Insufficient Permissions
- `422` — Validation Failed
- `426` — Business Quota Exceeded
- `429` — Rate Limit Exceeded
- `500` — Internal Error

---

[API](https://skmtc.dev/definite/apis/defapi.md) · [All operations](https://skmtc.dev/definite/apis/defapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/definite/defapi/revisions/5ea378187147/schema)
