---
title: "Lists the currently available models, and provides basic information about each one such as the owner and availability."
method: GET
path: "/models"
tags: ["Models"]
---

# Lists the currently available models, and provides basic information about each one such as the owner and availability.

`GET /models`

Lists the currently available models, and provides basic information
about each one such as the owner and availability.

## Query parameters

- `provider` 'ollama' | 'ollama_cloud' | 'groq' | 'llamacpp' | 'openai' | 'cloudflare' | 'cohere' | 'anthropic' | 'deepseek' | 'google' | 'mistral' | 'minimax' | 'moonshot' | 'nvidia' | 'zai'
- `include` string[]

## Response `200`

List of available models

- ListModelsResponse — Response structure for listing models
  - `provider` 'ollama' | 'ollama_cloud' | 'groq' | 'llamacpp' | 'openai' | 'cloudflare' | 'cohere' | 'anthropic' | 'deepseek' | 'google' | 'mistral' | 'minimax' | 'moonshot' | 'nvidia' | 'zai'
  - `object` string, required
  - `data` Model[], required
    - `id` string, required
    - `object` string, required
    - `created` integer, required
    - `owned_by` string, required
    - `served_by` 'ollama' | 'ollama_cloud' | 'groq' | 'llamacpp' | 'openai' | 'cloudflare' | 'cohere' | 'anthropic' | 'deepseek' | 'google' | 'mistral' | 'minimax' | 'moonshot' | 'nvidia' | 'zai', required
    - `context_window` ModelContextWindow — Effective context window a client may safely use for the model. Present only when requested via `include=context_window`; `null` when requested but the window could not be resolved. The value reflects what the serving runtime is actually configured with when available, which can be smaller than the model's theoretical maximum.
      - `tokens` integer, required — Effective context window size in tokens.
      - `source` 'runtime' | 'provider', required — Where the value was resolved from. `runtime` means the serving runtime reported its configured window (e.g. llama.cpp `/props`, Ollama's show API); `provider` means the upstream provider published the window in its model listing.
    - `pricing` object, nullable — Per-model pricing metadata. Present only when requested via `include=pricing`; `null` when requested but not yet resolved. The object shape is defined by a follow-up change.

## Other responses

- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2026-07-20** `65bb820067ab` — 1 breaking, 2 info
  - the `data/items/context_window` response's property type/format changed from `integer`/`int64` to `object`/`` for status `200`
  - added the required property `data/items/context_window/source` to the response with the `200` status
  - added the required property `data/items/context_window/tokens` to the response with the `200` status
- **2026-07-20** `479fdc43325d` — 3 info
  - added the new optional `query` request parameter `include`
  - added the optional property `data/items/context_window` to the response with the `200` status
  - added the optional property `data/items/pricing` to the response with the `200` status
- **2026-07-18** `b8f52abd9b46` — 2 warning, 1 info
  - added the new `llamacpp` enum value to the `data/items/served_by` response property for the response status `200`
  - added the new `llamacpp` enum value to the `provider` response property for the response status `200`
  - added the new enum value `llamacpp` to the `query` request parameter `provider`
- **2026-07-08** `a52394ec1728` — 2 warning, 1 info
  - added the new `zai` enum value to the `data/items/served_by` response property for the response status `200`
  - added the new `zai` enum value to the `provider` response property for the response status `200`
  - added the new enum value `zai` to the `query` request parameter `provider`
- …earlier changes not shown

[Full history](https://skmtc.dev/inference-gateway/apis/inference-gateway-api/changes/models/get.md)

---

[API](https://skmtc.dev/inference-gateway/apis/inference-gateway-api.md) · [All operations](https://skmtc.dev/inference-gateway/apis/inference-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inference-gateway/inference-gateway-api/revisions/65bb820067ab/schema)
