OpenAI · Models
Lists all available models.#
/v1/modelsLists 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
| Name | In | Type | Description |
|---|---|---|---|
limit | query | object (int32) | Anthropic shape only: page size, 1 to 1000 (default 20). |
after_id | query | string | Anthropic shape only: the id to resume after. |
before_id | query | string | Anthropic shape only: the id to page back from. |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK |
curl -X GET "$LMKIT_ONE_URL/v1/models" \
-H "Authorization: Bearer $LMKIT_API_KEY"Retrieves details for a specific model.#
/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
| Name | In | Type | Description |
|---|---|---|---|
modelIdrequired | path | string | The identifier of the model. |
Responses
| Status | Type | Description |
|---|---|---|
| 200 | OK | |
| 404 | Not Found |
curl -X GET "$LMKIT_ONE_URL/v1/models/$MODELID" \
-H "Authorization: Bearer $LMKIT_API_KEY"