---
title: "Get Model"
method: GET
path: "/v1/models/{model}"
tags: ["models"]
---

# Get Model

`GET /v1/models/{model}`

Get details for a specific model.

Args:
    model: Model name.
    http_request: FastAPI request object (for accessing app state).

Returns:
    Model info.

Raises:
    HTTPException: 404 if model not found.

## Path parameters

- `model` string, required

## Response `200`

Successful Response

- ModelInfo — Information about a model.
  - `name` string, required
  - `inputs` string[], required
  - `outputs` string[], required
  - `dims` object, required
  - `loaded` boolean, required
  - `state` 'available' | 'loading' | 'loaded' | 'unloading' | 'failed'
  - `last_error` ModelLoadError — Diagnostic detail for a recorded load failure. Surfaced in :class:`ModelInfo` when the registry has a sticky failure for the model. Attributes mirror the server-side :class:`sie_server.core.load_errors.LoadFailure`.
    - `code` string, required
    - `message` string, required
    - `attempts` integer, required
    - `permanent` boolean, required
  - `max_sequence_length` integer, nullable
  - `profiles` object
  - `revision` string, nullable
  - `capabilities` ModelCapabilities — Advertised generation capabilities for a model. Mirrors the gateway ``capabilities`` wire shape (``ModelCapabilitiesWire``) for the keys derivable from the loaded model config's :class:`~sie_server.config.model.GenerateCapabilities`. ``code``/``sql``/``guard`` are informational flags advertising validated generation jobs that back the ``model="code"`` / ``model="sql"`` / ``model="guard"`` aliases. Populated only for models that declare ``tasks.generate``; ``None`` otherwise. These flags mean the model *supports* a task — they are NOT a precision-independent quality SLA. A flag is true at the model level even when quality is profile/precision-dependent (e.g. ``sql`` quality regresses under FP8; route SQL-critical traffic to a BF16 bundle via the ``sql`` alias).
    - `grammar` string[]
    - `tools` boolean
    - `code` boolean
    - `sql` boolean
    - `guard` boolean

## Other responses

- `404` — Model not found
- `422` — Validation Error

---

[API](https://skmtc.dev/superlinked/apis/sie-server.md) · [All operations](https://skmtc.dev/superlinked/apis/sie-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/superlinked/sie-server/revisions/26ac644915a4/schema)
