LM-Kit OneDocs2026.9.7lm-kit.comEULA
API Compatibility

OpenAI · Models

Lists all available models.#

GET/v1/models

Lists the currently available models, providing basic information such as the owner and availability.

This endpoint implements the OpenAI models listing API specification. For complete reference, see: https://platform.openai.com/docs/api-reference/models/list

A request carrying an 'anthropic-version' header receives the Anthropic models shape instead (data, has_more, first_id, last_id), paged with 'limit', 'after_id' and 'before_id'.

Parameters

NameInTypeDescription
limitqueryobject (int32)

Anthropic shape only: page size, 1 to 1000 (default 20).

after_idquerystring

Anthropic shape only: the id to resume after.

before_idquerystring

Anthropic shape only: the id to page back from.

Responses

StatusTypeDescription
200

OK

curl -X GET "$LMKIT_ONE_URL/v1/models" \
  -H "Authorization: Bearer $LMKIT_API_KEY"

Retrieves details for a specific model.#

GET/v1/models/{modelId}

Retrieves a model instance, providing basic information.

This endpoint implements the OpenAI model retrieval API specification. For complete reference, see: https://platform.openai.com/docs/api-reference/models/retrieve

A request carrying an 'anthropic-version' header receives the Anthropic model shape instead.

Parameters

NameInTypeDescription
modelIdrequiredpathstring

The identifier of the model.

Responses

StatusTypeDescription
200

OK

404

Not Found

curl -X GET "$LMKIT_ONE_URL/v1/models/$MODELID" \
  -H "Authorization: Bearer $LMKIT_API_KEY"