---
title: "Create an AI Gateway Model Provider"
method: POST
path: "/v1/ai-gateways/{gatewayId}/model-providers"
tags: ["AI Gateway Model Providers"]
---

# Create an AI Gateway Model Provider

`POST /v1/ai-gateways/{gatewayId}/model-providers`

## Request

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

Registers a new model provider for the AI Gateway.

## Path parameters

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

## Request body

- union
  - AIGatewayModelProviderAnthropic: Configuration for an upstream model provider.
    - `type` 'anthropic', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderAzure: Config for Azure model provider.
    - `type` 'azure', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required
      - `auth` union, required
        - AIGatewayModelProviderConfigAuthBasic: Basic auth config for an upstream model provider.
          - `type` 'basic', required
          - `headers` object[]
            - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `params` object[]
            - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
        - AIGatewayModelProviderConfigAuthAzure: Configuration for Azure model provider.
          - `type` 'azure', required
          - `client_id` string: If azure_use_managed_identity is set to true, and you need to use a different user-assigned identity for this LLM instance, set the client ID. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `client_secret` string: If azure_use_managed_identity is set to true, and you need to use a different user-assigned identity for this LLM instance, set the client secret. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `tenant_id` string: If azure_use_managed_identity is set to true, and you need to use a different user-assigned identity for this LLM instance, set the tenant ID. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `use_managed_identity` boolean: Set true to use the Azure Cloud Managed Identity (or user-assigned identity) to authenticate with Azure-provider models.
      - `service` 'azure-openai' | 'azure-foundry': Selects the Azure backend for this provider instance. Use `azure-openai` for Azure OpenAI deployments or `azure-foundry` for Azure AI Foundry.
      - `instance` string: The Azure OpenAI instance name. Required when `service` is `azure-openai`.
      - `foundry` object: Endpoint configuration for Azure AI Foundry hosted models. Required when `service` is `azure-foundry`.
        - `resource` string, required: The Azure AI Foundry resource name.
        - `domain` string: The domain for Azure AI Foundry hosted models.
  - AIGatewayModelProviderBaseten: Configuration for an upstream model provider.
    - `type` 'baseten', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderBedrock: Config for AWS model provider.
    - `type` 'bedrock', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required
      - `auth` union, required
        - AIGatewayModelProviderConfigAuthBasic: Basic auth config for an upstream model provider.
          - `type` 'basic', required
          - `headers` object[]
            - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `params` object[]
            - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
        - AIGatewayModelProviderConfigAuthAWS: Configuration for AWS model provider.
          - `type` 'aws', required
          - `access_key_id` string: The access key id for authenticating with static IAM User credentials. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `secret_access_key` string: The secret access key for authenticating with static IAM User credentials. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `session_token` string: The session token for authenticating with temporary IAM credentials (issued by AWS STS, Vault, or SSO/SAML). It is sent to AWS as the `X-Amz-Security-Token` header. Because temporary credentials are short-lived, reference this from a secrets backend so it is refreshed before it expires. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `assume_role_arn` string: The ARN of the IAM role to assume for generating authentication tokens. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `role_session_name` string: The session name for the temporary credentials when assuming the IAM role. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `sts_endpoint_url` string: The STS endpoint URL to use for generating authentication tokens. If not specified, the default AWS STS endpoint will be used.
          - `batch_role_arn` string: AWS role arn to use when calling the batch API.
  - AIGatewayModelProviderCerebras: Configuration for an upstream model provider.
    - `type` 'cerebras', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderCohere: Configuration for an upstream model provider.
    - `type` 'cohere', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderDashscope: Configuration for an upstream model provider.
    - `type` 'dashscope', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderDatabricks: Configuration for an upstream model provider.
    - `type` 'databricks', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderDeepseek: Configuration for an upstream model provider.
    - `type` 'deepseek', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderGemini: Config for GCP model provider.
    - `type` 'gemini', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required
      - `auth` union, required
        - AIGatewayModelProviderConfigAuthBasic: Basic auth config for an upstream model provider.
          - `type` 'basic', required
          - `headers` object[]
            - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `params` object[]
            - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
        - AIGatewayModelProviderConfigAuthGCP: Configuration for GCP model provider.
          - `type` 'gcp', required
          - `service_account_json` string: Full JSON string of the GCP service account to authenticate. If not set (and gcp_use_service_account is true), the service account JSON will be from the environment variable GCP_SERVICE_ACCOUNT. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `metadata_url` string: Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If not set, Kong will use the default Google metadata endpoint. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `oauth_token_url` string: Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If not set, Kong will use the default Google OAuth token endpoint. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `use_gcp_service_account` boolean: Use service account auth for GCP-based providers and models.
          - `workload_identity_federation` AuthGCPWorkloadIdentityFederation: Enables authenticating with GCP via Workload Identity Federation, obtaining temporary GCP credentials instead of using a static service account key.
            - `source` 'aws_iam', required: The source identity provider/system used to obtain temporary GCP credentials.
            - `auth_json` string, nullable: JSON configuration for the Workload Identity Federation token exchange (Google's `external_account` credential config: audience, token URL, credential source, and optional service account impersonation URL). If not set, Kong falls back to the file path in the `GOOGLE_APPLICATION_CREDENTIALS` environment variable. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `aws` AIGatewayUpstreamAuthAWS: AWS IAM (SigV4) authentication for the upstream service.
              - …
  - AIGatewayModelProviderHuggingface: Configuration for an upstream model provider.
    - `type` 'huggingface', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderKimi: Configuration for an upstream model provider.
    - `type` 'kimi', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderLlama2: Configuration for an upstream `llama2` model provider. Deprecated: the `llama2` provider is deprecated and will be removed in 3.0. Migrate each target by its `format` value: `ollama` maps to the `ollama` provider, `openai` maps to the `openai` provider with `upstream_url` set on the target, or to the `vllm` provider; `raw` has no replacement provider.
    - `type` 'llama2', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderMistral: Configuration for an upstream model provider.
    - `type` 'mistral', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderOllama: Configuration for an upstream model provider.
    - `type` 'ollama', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderOpenai: Configuration for an upstream model provider.
    - `type` 'openai', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderVercel: Configuration for an upstream model provider.
    - `type` 'vercel', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderVllm: Configuration for an upstream model provider.
    - `type` 'vllm', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderXai: Configuration for an upstream model provider.
    - `type` 'xai', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
  - AIGatewayModelProviderSagemaker: Config for Sagemaker model provider.
    - `type` 'sagemaker', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required
      - `auth` union, required
        - AIGatewayModelProviderConfigAuthBasic: Basic auth config for an upstream model provider.
          - `type` 'basic', required
          - `headers` object[]
            - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `params` object[]
            - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.
        - AIGatewayModelProviderConfigAuthSagemaker: Auth configuration for Sagemaker model provider.
          - `type` 'sagemaker', required
          - `aws` object
            - `access_key_id` string, nullable: static IAM user credential; overrides AWS_ACCESS_KEY_ID env var
            - `secret_access_key` string, nullable: static IAM user credential; overrides AWS_SECRET_ACCESS_KEY env var
            - `session_token` string, nullable: static IAM user credential; overrides AWS_SESSION_TOKEN env var
  - AIGatewayModelProviderTypesafe: Configuration for an upstream model provider.
    - `type` 'typesafe', required
    - `display_name` string, required: The display name for this model provider instance.
    - `name` string, required: A user-defined unique identifier for this model provider instance, used as a stable human-readable reference. This value is immutable after creation.
    - `labels` PublicLabels: Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store **PUBLIC** metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
    - `managed_by` ManagedBy: Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, `terraform`). Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (`-`), underscores (`_`), and dots (`.`). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
    - `datastores` AIGatewayDatastoreRef[], nullable: The Token Vault Datastore holding this entity's credential storage: the directory credentials are written to, and the encryption keys that seal them. Required when `token_vault` is set (on an auth strategy, when its credential manager is enabled), and the referenced Datastore must have type `token-vault`. Only one Datastore can be referenced. **Requires a minimum runtime version of `2.3`**.
      - `name` string, required: An immutable user-defined identifier for this resource.
    - `token_vault` AIGatewayTokenVault: Resolves an upstream credential per request via Kong's Token Vault instead of sending a static credential. The directory credentials live in, and the keys that encrypt them, come from the `token-vault` Datastore this entity references, and are returned read-only in `storage`. Callers must enroll with the configured Token Vault provider before the credential can be resolved. Until enrollment completes, an MCP Server serves virtual `authenticate` and `check_authentication_status` tools that guide the caller through the enrollment flow. **Requires a minimum runtime version of `2.3`**.
      - `provider` string, required: Name of the upstream credential provider registered in the Token Vault directory.
      - `subject_token_type` 'access_token' | 'api_key': The kind of bearer token the caller presents, which the Token Vault exchanges for the upstream credential. Omit it unless the request shape makes the token type ambiguous: it is otherwise resolved from the request, and failing that from the token's shape (a JWS is an `access_token`, anything else an `api_key`).
      - `credential` AIGatewayTokenVaultCredential: Where the caller's subject token is read from, and where the credential the Token Vault returns is placed on the upstream request. Both placements default to `Authorization: Bearer <credential>` in a header, though an `outbound` placement left unset honours whatever the provider advertises instead. Set them for providers that take the credential elsewhere, such as an `x-api-key` header carrying the raw credential.
        - `inbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
        - `outbound` AIGatewayTokenVaultCredentialPlacement
          - `location` 'header' | 'body' | 'query': Whether the credential travels in a header, the request body, or the query string. Defaults to `header`.
          - `name` string, nullable: Name of the header, query parameter, or body field carrying the credential. Defaults to `Authorization` for a header, `access_token` otherwise.
          - `prefix` string, nullable: String prepended verbatim to the credential value. Defaults to `Bearer ` (with its trailing space) for a header, and to no prefix otherwise. Set it to an empty string when the provider expects the raw credential.
      - `cache` object, nullable: Optional best-effort cache for exchanged credentials, shared across the cluster. Losing it only costs a re-exchange. Credentials are encrypted with the keys held by the Token Vault Datastore before being cached.
        - `redis` AIGatewayRedisCloudConfiguration: Config for connecting to a Cloud Provider's Redis instance.
          - `cloud_authentication` union: Auth related config for connecting to a Cloud Provider's Redis instance.
            - AIGatewayRedisAWSAuthentication: AWS specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisAzureAuthentication: Azure specific configs for connecting to a Cloud Provider's redis instance.
              - …
            - AIGatewayRedisGCPAuthentication: GCP specific configs for connecting to a Cloud Provider's redis instance.
              - …
          - `cluster` object, nullable: Cluster configuration for the Redis connection.
            - `max_redirections` integer: Maximum retry attempts for redirection.
            - `nodes` object[], nullable: Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.
              - …
          - `connect_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `connection_is_proxied` boolean: If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address.
          - `database` integer: Database to use for the Redis connection when using the `redis` strategy
          - `host` string: A string representing a host name, such as example.com. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `keepalive` object, nullable: Keepalive configuration for the Redis connection.
            - `backlog` integer, nullable: Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `pool_size`.
            - `pool_size` integer: The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `pool_size` nor `backlog` is specified, no pool is created. If `pool_size` isn't specified but `backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low.
          - `password` string, nullable: Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `port` string: An integer representing a port number between 0 and 65535, inclusive. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `read_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `send_timeout` integer: An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
          - `sentinel` object, nullable: Configuration for Redis Sentinel.
            - `master` string, nullable: Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
            - `nodes` object[], nullable: Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.
              - …
            - `password` string, nullable: Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
            - `role` 'any' | 'master' | 'slave': Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
            - `username` string, nullable: Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `server_name` string, nullable: A string representing an SNI (server name indication) value for TLS. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `ssl` boolean: If set to true, uses SSL to connect to Redis.
          - `ssl_verify` boolean: If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure `lua_ssl_trusted_certificate` in `kong.conf` to specify the CA (or server) certificate used by your Redis server. You may also need to configure `lua_ssl_verify_depth` accordingly.
          - `username` string, nullable: Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
      - `storage` TokenVaultDatastoreConfig: Read-only. The directory and encryption key versions this entity's credentials are stored with, resolved from the `token-vault` Datastore referenced in `datastores`; change them on the Datastore.
        - `directory` string, required: The name of the directory in which tokens are stored.
        - `current_version` string, required: The version of the encryption key used to encrypt new tokens.
        - `keys` TokenVaultDatastoreKey[], required: The encryption keys used to protect stored tokens. Keep previous versions in the list so existing tokens can still be decrypted.
          - `version` string, required: The identifier of this key version.
          - `key` string, nullable: A [vault reference](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault) to the encryption key. A literal key value is rejected.
    - `config` object, required: Configuration for the model provider.
      - `auth` AIGatewayModelProviderConfigAuthBasic, required: Basic auth config for an upstream model provider.
        - `type` 'basic', required
        - `headers` object[]
          - `name` string, required: The name of the header used for authentication. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: The auth header value for ‘header_name’, for example ‘Bearer key...’. This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
        - `params` object[]
          - `name` string, required: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `value` string: This field is [referenceable](https://developer.konghq.com/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).
          - `location` 'body' | 'query', required: Specify whether the param name and value options go in a query string, or the POST form/JSON body.

## Response `201`

Model provider created successfully.

- union
  - 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.
    - [`AIGatewayModelProviderAnthropic`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderAnthropic)
  - 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.
    - [`AIGatewayModelProviderAzure`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderAzure)
  - 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.
    - [`AIGatewayModelProviderBaseten`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderBaseten)
  - 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.
    - [`AIGatewayModelProviderBedrock`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderBedrock)
  - 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.
    - [`AIGatewayModelProviderCerebras`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderCerebras)
  - 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.
    - [`AIGatewayModelProviderCohere`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderCohere)
  - 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.
    - [`AIGatewayModelProviderDashscope`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderDashscope)
  - 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.
    - [`AIGatewayModelProviderDatabricks`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderDatabricks)
  - 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.
    - [`AIGatewayModelProviderDeepseek`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderDeepseek)
  - 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.
    - [`AIGatewayModelProviderGemini`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderGemini)
  - 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.
    - [`AIGatewayModelProviderHuggingface`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderHuggingface)
  - 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.
    - [`AIGatewayModelProviderKimi`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderKimi)
  - 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.
    - [`AIGatewayModelProviderLlama2`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderLlama2)
  - 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.
    - [`AIGatewayModelProviderMistral`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderMistral)
  - 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.
    - [`AIGatewayModelProviderOllama`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderOllama)
  - 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.
    - [`AIGatewayModelProviderOpenai`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderOpenai)
  - 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.
    - [`AIGatewayModelProviderVercel`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderVercel)
  - 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.
    - [`AIGatewayModelProviderVllm`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderVllm)
  - 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.
    - [`AIGatewayModelProviderXai`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderXai)
  - 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.
    - [`AIGatewayModelProviderSagemaker`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderSagemaker)
  - 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.
    - [`AIGatewayModelProviderTypesafe`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayModelProviderTypesafe)

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `409`: Conflict
- `429`: Too Many Requests

## Changes

- **2026-11-25** `7b12799d6a39`: 2 info
  - request property `oneOf[#/components/schemas/AIGatewayModelProviderLlama2]/` deprecated
  - response property `oneOf[#/components/schemas/AIGatewayModelProviderLlama2]/` deprecated
- **2026-11-20** `757a21fb79f2`: 148 breaking, 21 warning, 42 info
  - the `oneOf[#/components/schemas/AIGatewayModelProviderAnthropic]/config/auth/headers/items/name` request property's minLength was increased from `0` to `1`
  - the `oneOf[#/components/schemas/AIGatewayModelProviderAnthropic]/config/auth/params/items/name` request property's minLength was increased from `0` to `1`
  - the `oneOf[#/components/schemas/AIGatewayModelProviderAnthropic]/token_vault/provider` request property's minLength was increased from `0` to `1`
  - the `oneOf[#/components/schemas/AIGatewayModelProviderAnthropic]/token_vault/storage/allOf[subschema #1: TokenVaultDatastoreConfig]/current_version` request property's minLength was increased from `0` to `1`
  - …207 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/kong/apis/konnect-api/changes/v1/ai-gateways/:gatewayId/model-providers/post.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)
