Models

Get a local PhEye model.

Changed on

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

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

Path parameters

modelNamestring required

Headers

Authorizationstring required

Response

The model.

namestring

The model's name, which a policy gives as a ph-eye filter's phEyeConfiguration.modelPath.

encoderstring 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.

maxLengthinteger nullable

The most words of a text the model reads; later words are not examined. Absent when the configuration does not say.

maxWidthinteger nullable

The most words one detected entity can span. Absent when the configuration does not say.

sizeBytesinteger

The combined size, in bytes, of its gliner_config.json, tokenizer.json, and model.onnx.

Changes