---
title: "Get an AI Gateway Model"
method: GET
path: "/v1/ai-gateways/{gatewayId}/models/{modelIdOrName}"
tags: ["AI Gateway Models"]
---

# Get an AI Gateway Model

`GET /v1/ai-gateways/{gatewayId}/models/{modelIdOrName}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-gateways/{gatewayId}/models/{modelIdOrName}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns the details of a specific AI Gateway model.

## Path parameters

- `gatewayId` string, uuid, required: Contains a unique identifier used for this resource.
- `modelIdOrName` string, uuid, required: Contains a unique identifier used for this resource.

## Response `200`

A successful response returning the AI Gateway Model.

- union: Configuration for an AI Gateway model.
  - intersection
    - object
      - `id` string, uuid, required: Contains a unique identifier used for this resource.
      - `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.
    - [`AIGatewayModelAPI`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelAPI)
  - intersection
    - object
      - `id` string, uuid, required: Contains a unique identifier used for this resource.
      - `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.
    - [`AIGatewayModelModel`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelModel)

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests

## Changes

- **2026-11-25** `7b12799d6a39`: 4 info
  - the `max_request_body_size` response's property default value `8388608` was removed for the status `200`
  - the `max_request_body_size` response's property default value `8388608` was removed for the status `200`
  - response property `oneOf[#/components/schemas/AIGatewayModelAPI]/targets/items/config/oneOf[#/components/schemas/AIGatewayTargetLlama2Config]/` deprecated
  - response property `oneOf[#/components/schemas/AIGatewayModelModel]/targets/items/config/oneOf[#/components/schemas/AIGatewayTargetLlama2Config]/` deprecated
- **2026-11-20** `757a21fb79f2`: 2 breaking, 4 info
  - the `oneOf[#/components/schemas/AIGatewayModelAPI]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - the `oneOf[#/components/schemas/AIGatewayModelModel]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - added the optional property `oneOf[#/components/schemas/AIGatewayModelAPI]/datastores/items/purpose` to the response with the `200` status
  - added the optional property `oneOf[#/components/schemas/AIGatewayModelModel]/datastores/items/purpose` to the response with the `200` status
  - …2 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/kong/apis/konnect-api/changes/v1/ai-gateways/:gatewayId/models/:modelIdOrName/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea?raw)
