Catalog AI Model Versions

Get latest AI Model version

Changed on

Returns the AI Model's latest version, including its target_models.

get/v1/ai-models/{aiModelId}/versions/latest

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

aiModelId, string uuid required
Example:123e4567-e89b-12d3-a456-426614174000

The unique identifier of the AI Model.

Response

The latest version

AiModelVersion required

A version of an AI Model, holding its target_models. Currently only exactly one version (latest) per model exists.

id, string uuid required

The unique identifier of the version.

ai_model_id, string uuid required

The identifier of the parent AI Model.

version, string nullable required

An optional user-supplied version label. null when unset.

target_models, TargetModel[] required

The upstream LLM targets for this version.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "id": "9c4a1b2c-3d4e-5f60-7182-93a4b5c6d7e8",
  "ai_model_id": "123e4567-e89b-12d3-a456-426614174000",
  "version": "1.0.0",
  "target_models": [
    {
      "provider": "openai",
      "name": "gpt-4o"
    }
  ],
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • warning

      added the new 403.00 enum value to the status response property for the response status

    • warning

      added the new 404.00 enum value to the status response property for the response status

    • breaking

      the response's body type changed from no type to object for status

    18 more changes in this revision