---
title: "List the models this site has configured"
method: GET
path: "/api/inference/v1/models"
tags: ["AI"]
---

# List the models this site has configured

`GET /api/inference/v1/models`

## Request

- Base URL: `https://docs.anzworldline-solutions.com.au`
- URL: `https://docs.anzworldline-solutions.com.au/api/inference/v1/models`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/docs/api/inference/v1/models/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the models the resolved site has configured for chat, embeddings and image generation, including every entry of a chat fallback chain, in configured order with chat first — the first entry is the site's primary chat model. Each entry reports in "type" which operation accepts it: "chat", "embedding" or "image". A name configured for more than one operation is listed once, with the type of the first of those in that order. The list is exactly the set of values this family accepts as "model": there is no implicit default and no reserved alias, and nothing synthetic is added. No model provider is contacted. A site with no AI configuration, on an instance with none at the system level either, returns an empty data array rather than another site's models. Every response reports the serving site in the X-dotCMS-Resolved-Site header.

## Query parameters

- `siteId` string

## Response `200`

The configured models, possibly none

- ModelListView: Model listing in the OpenAI-compatible shape
  - `object` string: Object type
  - `data` ModelView[]: The configured models, primary first
    - `id` string: Model id
    - `object` string: Object type
    - `created` integer: Epoch seconds
    - `owned_by` string: Owner
    - `type` 'chat' | 'embedding' | 'image': The operation this model serves: chat completions, embeddings or image generation. Taken from the section of the site's configuration the model is listed in; a model listed in more than one section reports the first, in the order chat, embeddings, image. Any other operation refuses the model with a 404 unless the site configured it for that operation too.

## Other responses

- `400`: The requested site could not be resolved
- `401`: Unauthorized - authentication required
- `403`: Forbidden - the caller cannot read the requested site

## Changes

- **2026-10-30** `4fd8e917d458`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/inference/v1/models/get.md)

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/revisions/4fd8e917d458?raw)
