---
title: "Upsert a Partial"
method: PUT
path: "/v2/control-planes/{controlPlaneId}/core-entities/partials/{PartialId}"
tags: ["Partials"]
---

# Upsert a Partial

`PUT /v2/control-planes/{controlPlaneId}/core-entities/partials/{PartialId}`

Create or Update Partial using ID.

## Request body

- union
  - object
    - `config` object, required
      - `cloud_authentication` object — Cloud auth related configs for connecting to a Cloud Provider's Redis instance.
        - `auth_provider` 'aws' | 'azure' | 'gcp' — Auth providers to be used to authenticate to a Cloud Provider's Redis instance.
        - `aws_access_key_id` string — AWS Access Key ID to be used for authentication when `auth_provider` is set to `aws`.
        - `aws_assume_role_arn` string — The ARN of the IAM role to assume for generating ElastiCache IAM authentication tokens.
        - `aws_cache_name` string — The name of the AWS Elasticache cluster when `auth_provider` is set to `aws`.
        - `aws_is_serverless` boolean — This flag specifies whether the cluster is serverless when auth_provider is set to `aws`.
        - `aws_region` string — The region of the AWS ElastiCache cluster when `auth_provider` is set to `aws`.
        - `aws_role_session_name` string — The session name for the temporary credentials when assuming the IAM role.
        - `aws_secret_access_key` string — AWS Secret Access Key to be used for authentication when `auth_provider` is set to `aws`.
        - `azure_client_id` string — Azure Client ID to be used for authentication when `auth_provider` is set to `azure`.
        - `azure_client_secret` string — Azure Client Secret to be used for authentication when `auth_provider` is set to `azure`.
        - `azure_tenant_id` string — Azure Tenant ID to be used for authentication when `auth_provider` is set to `azure`.
        - `gcp_service_account_json` string — GCP Service Account JSON to be used for authentication when `auth_provider` is set to `gcp`.
      - `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.
      - `password` string — Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis.
      - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
      - `server_name` string — A string representing an SNI (server name indication) value for TLS.
      - `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.
      - `timeout` integer — An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
      - `username` string — 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`.
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'redis-ce', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - object
    - `config` object, required
      - `cloud_authentication` object — Cloud auth related configs for connecting to a Cloud Provider's Redis instance.
        - `auth_provider` 'aws' | 'azure' | 'gcp' — Auth providers to be used to authenticate to a Cloud Provider's Redis instance.
        - `aws_access_key_id` string — AWS Access Key ID to be used for authentication when `auth_provider` is set to `aws`.
        - `aws_assume_role_arn` string — The ARN of the IAM role to assume for generating ElastiCache IAM authentication tokens.
        - `aws_cache_name` string — The name of the AWS Elasticache cluster when `auth_provider` is set to `aws`.
        - `aws_is_serverless` boolean — This flag specifies whether the cluster is serverless when auth_provider is set to `aws`.
        - `aws_region` string — The region of the AWS ElastiCache cluster when `auth_provider` is set to `aws`.
        - `aws_role_session_name` string — The session name for the temporary credentials when assuming the IAM role.
        - `aws_secret_access_key` string — AWS Secret Access Key to be used for authentication when `auth_provider` is set to `aws`.
        - `azure_client_id` string — Azure Client ID to be used for authentication when `auth_provider` is set to `azure`.
        - `azure_client_secret` string — Azure Client Secret to be used for authentication when `auth_provider` is set to `azure`.
        - `azure_tenant_id` string — Azure Tenant ID to be used for authentication when `auth_provider` is set to `azure`.
        - `gcp_service_account_json` string — GCP Service Account JSON to be used for authentication when `auth_provider` is set to `gcp`.
      - `cluster_max_redirections` integer — Maximum retry attempts for redirection.
      - `cluster_nodes` object[] — 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.
        - `ip` string — A string representing a host name, such as example.com.
        - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
      - `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.
      - `keepalive_backlog` integer — 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 `keepalive_pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `keepalive_pool_size`.
      - `keepalive_pool_size` integer — The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `keepalive_pool_size` nor `keepalive_backlog` is specified, no pool is created. If `keepalive_pool_size` isn't specified but `keepalive_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 — Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis.
      - `port` union — An integer representing a port number between 0 and 65535, inclusive.
        - integer
        - string
      - `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_master` string — Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
      - `sentinel_nodes` object[] — 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.
        - `host` string — A string representing a host name, such as example.com.
        - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
      - `sentinel_password` string — Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels.
      - `sentinel_role` 'any' | 'master' | 'slave' — Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
      - `sentinel_username` string — Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+.
      - `server_name` string — A string representing an SNI (server name indication) value for TLS.
      - `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 — 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`.
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'redis-ee', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - object
    - `config` object, required
      - `dimensions` integer, required — the desired dimensionality for the vectors
      - `distance_metric` 'cosine' | 'euclidean', required — the distance metric to use for vector searches
      - `pgvector` object
        - `database` string — the database of the pgvector database
        - `host` string — the host of the pgvector database
        - `password` string — the password of the pgvector database
        - `port` integer — the port of the pgvector database
        - `ssl` boolean — whether to use ssl for the pgvector database
        - `ssl_cert` string — the path of ssl cert to use for the pgvector database
        - `ssl_cert_key` string — the path of ssl cert key to use for the pgvector database
        - `ssl_required` boolean — whether ssl is required for the pgvector database
        - `ssl_verify` boolean — whether to verify ssl for the pgvector database
        - `ssl_version` 'any' | 'tlsv1_2' | 'tlsv1_3' — the ssl version to use for the pgvector database
        - `timeout` number — the timeout of the pgvector database
        - `user` string — the user of the pgvector database
      - `redis` object
        - `cloud_authentication` object — Cloud auth related configs for connecting to a Cloud Provider's Redis instance.
          - `auth_provider` 'aws' | 'azure' | 'gcp' — Auth providers to be used to authenticate to a Cloud Provider's Redis instance.
          - `aws_access_key_id` string — AWS Access Key ID to be used for authentication when `auth_provider` is set to `aws`.
          - `aws_assume_role_arn` string — The ARN of the IAM role to assume for generating ElastiCache IAM authentication tokens.
          - `aws_cache_name` string — The name of the AWS Elasticache cluster when `auth_provider` is set to `aws`.
          - `aws_is_serverless` boolean — This flag specifies whether the cluster is serverless when auth_provider is set to `aws`.
          - `aws_region` string — The region of the AWS ElastiCache cluster when `auth_provider` is set to `aws`.
          - `aws_role_session_name` string — The session name for the temporary credentials when assuming the IAM role.
          - `aws_secret_access_key` string — AWS Secret Access Key to be used for authentication when `auth_provider` is set to `aws`.
          - `azure_client_id` string — Azure Client ID to be used for authentication when `auth_provider` is set to `azure`.
          - `azure_client_secret` string — Azure Client Secret to be used for authentication when `auth_provider` is set to `azure`.
          - `azure_tenant_id` string — Azure Tenant ID to be used for authentication when `auth_provider` is set to `azure`.
          - `gcp_service_account_json` string — GCP Service Account JSON to be used for authentication when `auth_provider` is set to `gcp`.
        - `cluster_max_redirections` integer — Maximum retry attempts for redirection.
        - `cluster_nodes` object[] — 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.
          - `ip` string — A string representing a host name, such as example.com.
          - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
        - `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.
        - `keepalive_backlog` integer — 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 `keepalive_pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `keepalive_pool_size`.
        - `keepalive_pool_size` integer — The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `keepalive_pool_size` nor `keepalive_backlog` is specified, no pool is created. If `keepalive_pool_size` isn't specified but `keepalive_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 — Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis.
        - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
        - `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_master` string — Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
        - `sentinel_nodes` object[] — 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.
          - `host` string — A string representing a host name, such as example.com.
          - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
        - `sentinel_password` string — Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels.
        - `sentinel_role` 'any' | 'master' | 'slave' — Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
        - `sentinel_username` string — Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+.
        - `server_name` string — A string representing an SNI (server name indication) value for TLS.
        - `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 — 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`.
      - `strategy` 'pgvector' | 'redis', required — which vector database driver to use
      - `threshold` number — the default similarity threshold for accepting semantic search results (float). Higher threshold means more results are considered similar.
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'vectordb', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - object
    - `config` object, required
      - `auth` object
        - `allow_override` boolean — If enabled, the authorization header or parameter can be overridden in the request by the value configured in the plugin.
        - `aws_access_key_id` string — Set this if you are using an AWS provider (Bedrock) and you are authenticating using static IAM User credentials. Setting this will override the AWS_ACCESS_KEY_ID environment variable for this plugin instance.
        - `aws_secret_access_key` string — Set this if you are using an AWS provider (Bedrock) and you are authenticating using static IAM User credentials. Setting this will override the AWS_SECRET_ACCESS_KEY environment variable for this plugin instance.
        - `azure_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.
        - `azure_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.
        - `azure_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.
        - `azure_use_managed_identity` boolean — Set true to use the Azure Cloud Managed Identity (or user-assigned identity) to authenticate with Azure-provider models.
        - `gcp_metadata_url` string — Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
        - `gcp_oauth_token_url` string — Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
        - `gcp_service_account_json` string — Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcp_use_service_account is true), Kong will attempt to read from environment variable `GCP_SERVICE_ACCOUNT`.
        - `gcp_use_service_account` boolean — Use service account auth for GCP-based providers and models.
        - `header_name` string — If AI model requires authentication via Authorization or API key header, specify its name here.
        - `header_value` string — Specify the full auth header value for 'header_name', for example 'Bearer key' or just 'key'.
        - `param_location` 'body' | 'query' — Specify whether the 'param_name' and 'param_value' options go in a query string, or the POST form/JSON body.
        - `param_name` string — If AI model requires authentication via query parameter, specify its name here.
        - `param_value` string — Specify the full parameter value for 'param_name'.
      - `model` object, required
        - `name` string, required — Model name to execute.
        - `options` object — Key/value settings for the model
          - `azure` object
            - `api_version` string — 'api-version' for Azure OpenAI instances.
            - `deployment_id` string — Deployment ID for Azure OpenAI instances.
            - `instance` string — Instance name for Azure OpenAI hosted models.
          - `bedrock` object
            - `aws_assume_role_arn` string — If using AWS providers (Bedrock) you can assume a different role after authentication with the current IAM context is successful.
            - `aws_region` string — If using AWS providers (Bedrock) you can override the `AWS_REGION` environment variable by setting this option.
            - `aws_role_session_name` string — If using AWS providers (Bedrock), set the identifier of the assumed role session.
            - `aws_sts_endpoint_url` string — If using AWS providers (Bedrock), override the STS endpoint URL when assuming a different role.
            - `batch_bucket_prefix` string — S3 URI prefix (s3://bucket/prefix/) where Bedrock will get input files from and store results to for native batch API.
            - `batch_role_arn` string — AWS role arn used for calling batch API. Try to get the value from request if ommited.
            - `embeddings_normalize` boolean — If using AWS providers (Bedrock), set to true to normalize the embeddings.
            - `performance_config_latency` string — Force the client's performance configuration 'latency' for all requests. Leave empty to let the consumer select the performance configuration.
            - `video_output_s3_uri` string — S3 URI (s3://bucket/prefix) where Bedrock will store generated video files. Required for video generation.
          - `gemini` object
            - `api_endpoint` string — If running Gemini on Vertex, specify the regional API endpoint (hostname only).
            - `location_id` string — If running Gemini on Vertex, specify the location ID.
            - `project_id` string — If running Gemini on Vertex, specify the project ID.
          - `huggingface` object
            - `use_cache` boolean — Use the cache layer on the inference API
            - `wait_for_model` boolean — Wait for the model if it is not ready
          - `upstream_url` string — upstream url for the embeddings
        - `provider` 'azure' | 'bedrock' | 'gemini' | 'huggingface' | 'mistral' | 'ollama' | 'openai', required — AI provider format to use for embeddings API
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'embeddings', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - object
    - `config` object, required
      - `auth` object
        - `allow_override` boolean — If enabled, the authorization header or parameter can be overridden in the request by the value configured in the plugin.
        - `aws_access_key_id` string — Set this if you are using an AWS provider (Bedrock) and you are authenticating using static IAM User credentials. Setting this will override the AWS_ACCESS_KEY_ID environment variable for this plugin instance.
        - `aws_secret_access_key` string — Set this if you are using an AWS provider (Bedrock) and you are authenticating using static IAM User credentials. Setting this will override the AWS_SECRET_ACCESS_KEY environment variable for this plugin instance.
        - `azure_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.
        - `azure_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.
        - `azure_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.
        - `azure_use_managed_identity` boolean — Set true to use the Azure Cloud Managed Identity (or user-assigned identity) to authenticate with Azure-provider models.
        - `gcp_metadata_url` string — Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
        - `gcp_oauth_token_url` string — Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
        - `gcp_service_account_json` string — Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcp_use_service_account is true), Kong will attempt to read from environment variable `GCP_SERVICE_ACCOUNT`.
        - `gcp_use_service_account` boolean — Use service account auth for GCP-based providers and models.
        - `header_name` string — If AI model requires authentication via Authorization or API key header, specify its name here.
        - `header_value` string — Specify the full auth header value for 'header_name', for example 'Bearer key' or just 'key'.
        - `param_location` 'body' | 'query' — Specify whether the 'param_name' and 'param_value' options go in a query string, or the POST form/JSON body.
        - `param_name` string — If AI model requires authentication via query parameter, specify its name here.
        - `param_value` string — Specify the full parameter value for 'param_name'.
      - `description` string — The semantic description of the target, required if using semantic load balancing. Specially, setting this to 'CATCHALL' will indicate such target to be used when no other targets match the semantic threshold. Only used by ai-proxy-advanced.
      - `logging` object
        - `log_payloads` boolean — If enabled, will log the request and response body into the Kong log plugin(s) output.Furthermore if Opentelemetry instrumentation is enabled the traces will contain this data as well.
        - `log_statistics` boolean — If enabled and supported by the driver, will add model usage and token metrics into the Kong log plugin(s) output.
      - `metadata` object, nullable — For internal use only.
      - `model` object, required
        - `model_alias` string — The model name parameter from the request that this model should map to.
        - `name` string — Model name to execute.
        - `options` object — Key/value settings for the model
          - `anthropic_version` string — Defines the schema/API version, if using Anthropic provider.
          - `azure_api_version` string — 'api-version' for Azure OpenAI instances.
          - `azure_deployment_id` string — Deployment ID for Azure OpenAI instances.
          - `azure_instance` string — Instance name for Azure OpenAI hosted models.
          - `bedrock` object
            - `aws_assume_role_arn` string — If using AWS providers (Bedrock) you can assume a different role after authentication with the current IAM context is successful.
            - `aws_region` string — If using AWS providers (Bedrock) you can override the `AWS_REGION` environment variable by setting this option.
            - `aws_role_session_name` string — If using AWS providers (Bedrock), set the identifier of the assumed role session.
            - `aws_sts_endpoint_url` string — If using AWS providers (Bedrock), override the STS endpoint URL when assuming a different role.
            - `batch_bucket_prefix` string — S3 URI prefix (s3://bucket/prefix/) where Bedrock will get input files from and store results to for native batch API.
            - `batch_role_arn` string — AWS role arn used for calling batch API. Try to get the value from request if ommited.
            - `embeddings_normalize` boolean — If using AWS providers (Bedrock), set to true to normalize the embeddings.
            - `performance_config_latency` string — Force the client's performance configuration 'latency' for all requests. Leave empty to let the consumer select the performance configuration.
            - `video_output_s3_uri` string — S3 URI (s3://bucket/prefix) where Bedrock will store generated video files. Required for video generation.
          - `cohere` object
            - `embedding_input_type` 'classification' | 'clustering' | 'image' | 'search_document' | 'search_query' — The purpose of the input text to calculate embedding vectors.
            - `wait_for_model` boolean — Wait for the model if it is not ready
          - `dashscope` object
            - `international` boolean — Two Dashscope endpoints are available, and the international endpoint will be used when this is set to `true`. It is recommended to set this to `true` when using international version of dashscope.
          - `databricks` object
            - `workspace_instance_id` string — Workspace Instance ID ('dbc-xxx-yyy') for Databricks model serving.
          - `embeddings_dimensions` integer — If using embeddings models, set the number of dimensions to generate.
          - `gemini` object
            - `api_endpoint` string — If running Gemini on Vertex, specify the regional API endpoint (hostname only).
            - `endpoint_id` string — If running Gemini on Vertex Model Garden, specify the endpoint ID.
            - `location_id` string — If running Gemini on Vertex, specify the location ID.
            - `project_id` string — If running Gemini on Vertex, specify the project ID.
          - `huggingface` object
            - `use_cache` boolean — Use the cache layer on the inference API
            - `wait_for_model` boolean — Wait for the model if it is not ready
          - `input_cost` number — Defines the cost per 1M tokens in your prompt.
          - `llama2_format` 'ollama' | 'openai' | 'raw' — If using llama2 provider, select the upstream message format.
          - `max_tokens` integer — Defines the max_tokens, if using chat or completion models.
          - `mistral_format` 'ollama' | 'openai' — If using mistral provider, select the upstream message format.
          - `output_cost` number — Defines the cost per 1M tokens in the output of the AI.
          - `temperature` number — Defines the matching temperature, if using chat or completion models.
          - `top_k` integer — Defines the top-k most likely tokens, if supported.
          - `top_p` number — Defines the top-p probability mass, if supported.
          - `upstream_path` string — Manually specify or override the AI operation path, used when e.g. using the 'preserve' route_type.
          - `upstream_url` string — Manually specify or override the full URL to the AI operation endpoints, when calling (self-)hosted models, or for running via a private endpoint.
        - `provider` 'anthropic' | 'azure' | 'bedrock' | 'cerebras' | 'cohere' | 'dashscope' | 'databricks' | 'deepseek' | 'gemini' | 'huggingface' | 'llama2' | 'mistral' | 'ollama' | 'openai' | 'vllm' | 'xai', required — AI provider request format - Kong translates requests to and from the specified backend compatible formats.
      - `route_type` 'audio/v1/audio/speech' | 'audio/v1/audio/transcriptions' | 'audio/v1/audio/translations' | 'image/v1/images/edits' | 'image/v1/images/generations' | 'llm/v1/assistants' | 'llm/v1/batches' | 'llm/v1/chat' | 'llm/v1/completions' | 'llm/v1/embeddings' | 'llm/v1/files' | 'llm/v1/responses' | 'preserve' | 'realtime/v1/realtime' | 'video/v1/videos/generations', required — The model's operation implementation, for this provider.
      - `weight` integer — The weight this target gets within the upstream loadbalancer (1-65535). Only used by ai-proxy-advanced.
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'model', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.

## Response `200`

Successfully upserted Partial

- union
  - object
    - `config` object, required
      - `cloud_authentication` object — Cloud auth related configs for connecting to a Cloud Provider's Redis instance.
        - `auth_provider` 'aws' | 'azure' | 'gcp' — Auth providers to be used to authenticate to a Cloud Provider's Redis instance.
        - `aws_access_key_id` string — AWS Access Key ID to be used for authentication when `auth_provider` is set to `aws`.
        - `aws_assume_role_arn` string — The ARN of the IAM role to assume for generating ElastiCache IAM authentication tokens.
        - `aws_cache_name` string — The name of the AWS Elasticache cluster when `auth_provider` is set to `aws`.
        - `aws_is_serverless` boolean — This flag specifies whether the cluster is serverless when auth_provider is set to `aws`.
        - `aws_region` string — The region of the AWS ElastiCache cluster when `auth_provider` is set to `aws`.
        - `aws_role_session_name` string — The session name for the temporary credentials when assuming the IAM role.
        - `aws_secret_access_key` string — AWS Secret Access Key to be used for authentication when `auth_provider` is set to `aws`.
        - `azure_client_id` string — Azure Client ID to be used for authentication when `auth_provider` is set to `azure`.
        - `azure_client_secret` string — Azure Client Secret to be used for authentication when `auth_provider` is set to `azure`.
        - `azure_tenant_id` string — Azure Tenant ID to be used for authentication when `auth_provider` is set to `azure`.
        - `gcp_service_account_json` string — GCP Service Account JSON to be used for authentication when `auth_provider` is set to `gcp`.
      - `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.
      - `password` string — Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis.
      - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
      - `server_name` string — A string representing an SNI (server name indication) value for TLS.
      - `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.
      - `timeout` integer — An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
      - `username` string — 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`.
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'redis-ce', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - object
    - `config` object, required
      - `cloud_authentication` object — Cloud auth related configs for connecting to a Cloud Provider's Redis instance.
        - `auth_provider` 'aws' | 'azure' | 'gcp' — Auth providers to be used to authenticate to a Cloud Provider's Redis instance.
        - `aws_access_key_id` string — AWS Access Key ID to be used for authentication when `auth_provider` is set to `aws`.
        - `aws_assume_role_arn` string — The ARN of the IAM role to assume for generating ElastiCache IAM authentication tokens.
        - `aws_cache_name` string — The name of the AWS Elasticache cluster when `auth_provider` is set to `aws`.
        - `aws_is_serverless` boolean — This flag specifies whether the cluster is serverless when auth_provider is set to `aws`.
        - `aws_region` string — The region of the AWS ElastiCache cluster when `auth_provider` is set to `aws`.
        - `aws_role_session_name` string — The session name for the temporary credentials when assuming the IAM role.
        - `aws_secret_access_key` string — AWS Secret Access Key to be used for authentication when `auth_provider` is set to `aws`.
        - `azure_client_id` string — Azure Client ID to be used for authentication when `auth_provider` is set to `azure`.
        - `azure_client_secret` string — Azure Client Secret to be used for authentication when `auth_provider` is set to `azure`.
        - `azure_tenant_id` string — Azure Tenant ID to be used for authentication when `auth_provider` is set to `azure`.
        - `gcp_service_account_json` string — GCP Service Account JSON to be used for authentication when `auth_provider` is set to `gcp`.
      - `cluster_max_redirections` integer — Maximum retry attempts for redirection.
      - `cluster_nodes` object[] — 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.
        - `ip` string — A string representing a host name, such as example.com.
        - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
      - `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.
      - `keepalive_backlog` integer — 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 `keepalive_pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `keepalive_pool_size`.
      - `keepalive_pool_size` integer — The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `keepalive_pool_size` nor `keepalive_backlog` is specified, no pool is created. If `keepalive_pool_size` isn't specified but `keepalive_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 — Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis.
      - `port` union — An integer representing a port number between 0 and 65535, inclusive.
        - integer
        - string
      - `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_master` string — Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
      - `sentinel_nodes` object[] — 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.
        - `host` string — A string representing a host name, such as example.com.
        - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
      - `sentinel_password` string — Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels.
      - `sentinel_role` 'any' | 'master' | 'slave' — Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
      - `sentinel_username` string — Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+.
      - `server_name` string — A string representing an SNI (server name indication) value for TLS.
      - `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 — 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`.
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'redis-ee', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - object
    - `config` object, required
      - `dimensions` integer, required — the desired dimensionality for the vectors
      - `distance_metric` 'cosine' | 'euclidean', required — the distance metric to use for vector searches
      - `pgvector` object
        - `database` string — the database of the pgvector database
        - `host` string — the host of the pgvector database
        - `password` string — the password of the pgvector database
        - `port` integer — the port of the pgvector database
        - `ssl` boolean — whether to use ssl for the pgvector database
        - `ssl_cert` string — the path of ssl cert to use for the pgvector database
        - `ssl_cert_key` string — the path of ssl cert key to use for the pgvector database
        - `ssl_required` boolean — whether ssl is required for the pgvector database
        - `ssl_verify` boolean — whether to verify ssl for the pgvector database
        - `ssl_version` 'any' | 'tlsv1_2' | 'tlsv1_3' — the ssl version to use for the pgvector database
        - `timeout` number — the timeout of the pgvector database
        - `user` string — the user of the pgvector database
      - `redis` object
        - `cloud_authentication` object — Cloud auth related configs for connecting to a Cloud Provider's Redis instance.
          - `auth_provider` 'aws' | 'azure' | 'gcp' — Auth providers to be used to authenticate to a Cloud Provider's Redis instance.
          - `aws_access_key_id` string — AWS Access Key ID to be used for authentication when `auth_provider` is set to `aws`.
          - `aws_assume_role_arn` string — The ARN of the IAM role to assume for generating ElastiCache IAM authentication tokens.
          - `aws_cache_name` string — The name of the AWS Elasticache cluster when `auth_provider` is set to `aws`.
          - `aws_is_serverless` boolean — This flag specifies whether the cluster is serverless when auth_provider is set to `aws`.
          - `aws_region` string — The region of the AWS ElastiCache cluster when `auth_provider` is set to `aws`.
          - `aws_role_session_name` string — The session name for the temporary credentials when assuming the IAM role.
          - `aws_secret_access_key` string — AWS Secret Access Key to be used for authentication when `auth_provider` is set to `aws`.
          - `azure_client_id` string — Azure Client ID to be used for authentication when `auth_provider` is set to `azure`.
          - `azure_client_secret` string — Azure Client Secret to be used for authentication when `auth_provider` is set to `azure`.
          - `azure_tenant_id` string — Azure Tenant ID to be used for authentication when `auth_provider` is set to `azure`.
          - `gcp_service_account_json` string — GCP Service Account JSON to be used for authentication when `auth_provider` is set to `gcp`.
        - `cluster_max_redirections` integer — Maximum retry attempts for redirection.
        - `cluster_nodes` object[] — 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.
          - `ip` string — A string representing a host name, such as example.com.
          - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
        - `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.
        - `keepalive_backlog` integer — 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 `keepalive_pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `keepalive_pool_size`.
        - `keepalive_pool_size` integer — The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `keepalive_pool_size` nor `keepalive_backlog` is specified, no pool is created. If `keepalive_pool_size` isn't specified but `keepalive_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 — Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis.
        - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
        - `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_master` string — Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel.
        - `sentinel_nodes` object[] — 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.
          - `host` string — A string representing a host name, such as example.com.
          - `port` integer — An integer representing a port number between 0 and 65535, inclusive.
        - `sentinel_password` string — Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels.
        - `sentinel_role` 'any' | 'master' | 'slave' — Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel.
        - `sentinel_username` string — Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+.
        - `server_name` string — A string representing an SNI (server name indication) value for TLS.
        - `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 — 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`.
      - `strategy` 'pgvector' | 'redis', required — which vector database driver to use
      - `threshold` number — the default similarity threshold for accepting semantic search results (float). Higher threshold means more results are considered similar.
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'vectordb', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - object
    - `config` object, required
      - `auth` object
        - `allow_override` boolean — If enabled, the authorization header or parameter can be overridden in the request by the value configured in the plugin.
        - `aws_access_key_id` string — Set this if you are using an AWS provider (Bedrock) and you are authenticating using static IAM User credentials. Setting this will override the AWS_ACCESS_KEY_ID environment variable for this plugin instance.
        - `aws_secret_access_key` string — Set this if you are using an AWS provider (Bedrock) and you are authenticating using static IAM User credentials. Setting this will override the AWS_SECRET_ACCESS_KEY environment variable for this plugin instance.
        - `azure_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.
        - `azure_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.
        - `azure_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.
        - `azure_use_managed_identity` boolean — Set true to use the Azure Cloud Managed Identity (or user-assigned identity) to authenticate with Azure-provider models.
        - `gcp_metadata_url` string — Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
        - `gcp_oauth_token_url` string — Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
        - `gcp_service_account_json` string — Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcp_use_service_account is true), Kong will attempt to read from environment variable `GCP_SERVICE_ACCOUNT`.
        - `gcp_use_service_account` boolean — Use service account auth for GCP-based providers and models.
        - `header_name` string — If AI model requires authentication via Authorization or API key header, specify its name here.
        - `header_value` string — Specify the full auth header value for 'header_name', for example 'Bearer key' or just 'key'.
        - `param_location` 'body' | 'query' — Specify whether the 'param_name' and 'param_value' options go in a query string, or the POST form/JSON body.
        - `param_name` string — If AI model requires authentication via query parameter, specify its name here.
        - `param_value` string — Specify the full parameter value for 'param_name'.
      - `model` object, required
        - `name` string, required — Model name to execute.
        - `options` object — Key/value settings for the model
          - `azure` object
            - `api_version` string — 'api-version' for Azure OpenAI instances.
            - `deployment_id` string — Deployment ID for Azure OpenAI instances.
            - `instance` string — Instance name for Azure OpenAI hosted models.
          - `bedrock` object
            - `aws_assume_role_arn` string — If using AWS providers (Bedrock) you can assume a different role after authentication with the current IAM context is successful.
            - `aws_region` string — If using AWS providers (Bedrock) you can override the `AWS_REGION` environment variable by setting this option.
            - `aws_role_session_name` string — If using AWS providers (Bedrock), set the identifier of the assumed role session.
            - `aws_sts_endpoint_url` string — If using AWS providers (Bedrock), override the STS endpoint URL when assuming a different role.
            - `batch_bucket_prefix` string — S3 URI prefix (s3://bucket/prefix/) where Bedrock will get input files from and store results to for native batch API.
            - `batch_role_arn` string — AWS role arn used for calling batch API. Try to get the value from request if ommited.
            - `embeddings_normalize` boolean — If using AWS providers (Bedrock), set to true to normalize the embeddings.
            - `performance_config_latency` string — Force the client's performance configuration 'latency' for all requests. Leave empty to let the consumer select the performance configuration.
            - `video_output_s3_uri` string — S3 URI (s3://bucket/prefix) where Bedrock will store generated video files. Required for video generation.
          - `gemini` object
            - `api_endpoint` string — If running Gemini on Vertex, specify the regional API endpoint (hostname only).
            - `location_id` string — If running Gemini on Vertex, specify the location ID.
            - `project_id` string — If running Gemini on Vertex, specify the project ID.
          - `huggingface` object
            - `use_cache` boolean — Use the cache layer on the inference API
            - `wait_for_model` boolean — Wait for the model if it is not ready
          - `upstream_url` string — upstream url for the embeddings
        - `provider` 'azure' | 'bedrock' | 'gemini' | 'huggingface' | 'mistral' | 'ollama' | 'openai', required — AI provider format to use for embeddings API
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'embeddings', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.
  - object
    - `config` object, required
      - `auth` object
        - `allow_override` boolean — If enabled, the authorization header or parameter can be overridden in the request by the value configured in the plugin.
        - `aws_access_key_id` string — Set this if you are using an AWS provider (Bedrock) and you are authenticating using static IAM User credentials. Setting this will override the AWS_ACCESS_KEY_ID environment variable for this plugin instance.
        - `aws_secret_access_key` string — Set this if you are using an AWS provider (Bedrock) and you are authenticating using static IAM User credentials. Setting this will override the AWS_SECRET_ACCESS_KEY environment variable for this plugin instance.
        - `azure_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.
        - `azure_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.
        - `azure_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.
        - `azure_use_managed_identity` boolean — Set true to use the Azure Cloud Managed Identity (or user-assigned identity) to authenticate with Azure-provider models.
        - `gcp_metadata_url` string — Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
        - `gcp_oauth_token_url` string — Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
        - `gcp_service_account_json` string — Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcp_use_service_account is true), Kong will attempt to read from environment variable `GCP_SERVICE_ACCOUNT`.
        - `gcp_use_service_account` boolean — Use service account auth for GCP-based providers and models.
        - `header_name` string — If AI model requires authentication via Authorization or API key header, specify its name here.
        - `header_value` string — Specify the full auth header value for 'header_name', for example 'Bearer key' or just 'key'.
        - `param_location` 'body' | 'query' — Specify whether the 'param_name' and 'param_value' options go in a query string, or the POST form/JSON body.
        - `param_name` string — If AI model requires authentication via query parameter, specify its name here.
        - `param_value` string — Specify the full parameter value for 'param_name'.
      - `description` string — The semantic description of the target, required if using semantic load balancing. Specially, setting this to 'CATCHALL' will indicate such target to be used when no other targets match the semantic threshold. Only used by ai-proxy-advanced.
      - `logging` object
        - `log_payloads` boolean — If enabled, will log the request and response body into the Kong log plugin(s) output.Furthermore if Opentelemetry instrumentation is enabled the traces will contain this data as well.
        - `log_statistics` boolean — If enabled and supported by the driver, will add model usage and token metrics into the Kong log plugin(s) output.
      - `metadata` object, nullable — For internal use only.
      - `model` object, required
        - `model_alias` string — The model name parameter from the request that this model should map to.
        - `name` string — Model name to execute.
        - `options` object — Key/value settings for the model
          - `anthropic_version` string — Defines the schema/API version, if using Anthropic provider.
          - `azure_api_version` string — 'api-version' for Azure OpenAI instances.
          - `azure_deployment_id` string — Deployment ID for Azure OpenAI instances.
          - `azure_instance` string — Instance name for Azure OpenAI hosted models.
          - `bedrock` object
            - `aws_assume_role_arn` string — If using AWS providers (Bedrock) you can assume a different role after authentication with the current IAM context is successful.
            - `aws_region` string — If using AWS providers (Bedrock) you can override the `AWS_REGION` environment variable by setting this option.
            - `aws_role_session_name` string — If using AWS providers (Bedrock), set the identifier of the assumed role session.
            - `aws_sts_endpoint_url` string — If using AWS providers (Bedrock), override the STS endpoint URL when assuming a different role.
            - `batch_bucket_prefix` string — S3 URI prefix (s3://bucket/prefix/) where Bedrock will get input files from and store results to for native batch API.
            - `batch_role_arn` string — AWS role arn used for calling batch API. Try to get the value from request if ommited.
            - `embeddings_normalize` boolean — If using AWS providers (Bedrock), set to true to normalize the embeddings.
            - `performance_config_latency` string — Force the client's performance configuration 'latency' for all requests. Leave empty to let the consumer select the performance configuration.
            - `video_output_s3_uri` string — S3 URI (s3://bucket/prefix) where Bedrock will store generated video files. Required for video generation.
          - `cohere` object
            - `embedding_input_type` 'classification' | 'clustering' | 'image' | 'search_document' | 'search_query' — The purpose of the input text to calculate embedding vectors.
            - `wait_for_model` boolean — Wait for the model if it is not ready
          - `dashscope` object
            - `international` boolean — Two Dashscope endpoints are available, and the international endpoint will be used when this is set to `true`. It is recommended to set this to `true` when using international version of dashscope.
          - `databricks` object
            - `workspace_instance_id` string — Workspace Instance ID ('dbc-xxx-yyy') for Databricks model serving.
          - `embeddings_dimensions` integer — If using embeddings models, set the number of dimensions to generate.
          - `gemini` object
            - `api_endpoint` string — If running Gemini on Vertex, specify the regional API endpoint (hostname only).
            - `endpoint_id` string — If running Gemini on Vertex Model Garden, specify the endpoint ID.
            - `location_id` string — If running Gemini on Vertex, specify the location ID.
            - `project_id` string — If running Gemini on Vertex, specify the project ID.
          - `huggingface` object
            - `use_cache` boolean — Use the cache layer on the inference API
            - `wait_for_model` boolean — Wait for the model if it is not ready
          - `input_cost` number — Defines the cost per 1M tokens in your prompt.
          - `llama2_format` 'ollama' | 'openai' | 'raw' — If using llama2 provider, select the upstream message format.
          - `max_tokens` integer — Defines the max_tokens, if using chat or completion models.
          - `mistral_format` 'ollama' | 'openai' — If using mistral provider, select the upstream message format.
          - `output_cost` number — Defines the cost per 1M tokens in the output of the AI.
          - `temperature` number — Defines the matching temperature, if using chat or completion models.
          - `top_k` integer — Defines the top-k most likely tokens, if supported.
          - `top_p` number — Defines the top-p probability mass, if supported.
          - `upstream_path` string — Manually specify or override the AI operation path, used when e.g. using the 'preserve' route_type.
          - `upstream_url` string — Manually specify or override the full URL to the AI operation endpoints, when calling (self-)hosted models, or for running via a private endpoint.
        - `provider` 'anthropic' | 'azure' | 'bedrock' | 'cerebras' | 'cohere' | 'dashscope' | 'databricks' | 'deepseek' | 'gemini' | 'huggingface' | 'llama2' | 'mistral' | 'ollama' | 'openai' | 'vllm' | 'xai', required — AI provider request format - Kong translates requests to and from the specified backend compatible formats.
      - `route_type` 'audio/v1/audio/speech' | 'audio/v1/audio/transcriptions' | 'audio/v1/audio/translations' | 'image/v1/images/edits' | 'image/v1/images/generations' | 'llm/v1/assistants' | 'llm/v1/batches' | 'llm/v1/chat' | 'llm/v1/completions' | 'llm/v1/embeddings' | 'llm/v1/files' | 'llm/v1/responses' | 'preserve' | 'realtime/v1/realtime' | 'video/v1/videos/generations', required — The model's operation implementation, for this provider.
      - `weight` integer — The weight this target gets within the upstream loadbalancer (1-65535). Only used by ai-proxy-advanced.
    - `created_at` integer, nullable — Unix epoch when the resource was created.
    - `id` string, nullable — A string representing a UUID (universally unique identifier).
    - `name` string, nullable — A unique string representing a UTF-8 encoded name.
    - `tags` string[], nullable — A set of strings representing tags.
    - `type` 'model', required
    - `updated_at` integer, nullable — Unix epoch when the resource was last updated.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/versions/f920f418f552/schema)
