Catalog AI Model Versions

List AI Model versions

Changed on

Returns the AI Model's versions.

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

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.

Query parameters

page[size], integer
Example:10

The maximum number of items to include per page. The last page of a collection may include fewer items.

page[number], integer
Example:1

Determines which page of the entities to retrieve.

Response

The AI Model's versions

AiModelVersionList required

A paginated page of an AI Model's versions.

data, AiModelVersion[] required
meta, PaginatedMeta required

returns the pagination information

Example response

{
  "data": [
    {
      "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"
    }
  ],
  "meta": {
    "page": {
      "number": 1,
      "size": 10,
      "total": 100
    }
  }
}

Changes

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status