---
title: "Get a local PhEye model."
method: GET
path: "/api/models/{modelName}"
tags: ["Models"]
---

# Get a local PhEye model.

`GET /api/models/{modelName}`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/models/{modelName}`
- Auth: HTTP bearer

Returns one model in the deployment's models directory by name. Requires the `policies:read` scope.

## Path parameters

- `modelName` string, required

## Headers

- `Authorization` string, required

## Response `200`

The model.

- ModelResponse
  - `name` string: The model's name, which a policy gives as a ph-eye filter's phEyeConfiguration.modelPath.
  - `encoder` string, nullable: The encoder the model was trained from, from its gliner_config.json, for example microsoft/deberta-v3-small. Absent when the configuration does not say.
  - `maxLength` integer, nullable: The most words of a text the model reads; later words are not examined. Absent when the configuration does not say.
  - `maxWidth` integer, nullable: The most words one detected entity can span. Absent when the configuration does not say.
  - `sizeBytes` integer: The combined size, in bytes, of its gliner_config.json, tokenizer.json, and model.onnx.

## Other responses

- `400`: Bad Request
- `401`: The Authorization header is absent or the API key is not recognized.
- `403`: Insufficient scope, disabled API, or access denied.
- `404`: There is no model with the given name.
- `406`: No representation matches Accept.
- `413`: Content Too Large
- `415`: Unsupported Media Type
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

- **2026-10-18** `d8595725f6dd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/philterd/apis/philter-api/changes/api/models/:modelName/get.md)

---

[API](https://skmtc.dev/philterd/apis/philter-api.md) - [All operations](https://skmtc.dev/philterd/apis/philter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/philterd/apis/philter-api/revisions/aa3d7ad1aab4?raw)
