---
title: "AIGatewayProviderXai"
url: "https://nov18-dev.movespot.fyi/apis/konnect-ai-gateway-dev-0/versions/eaabd2fa-a9d5-44cc-b086-e210c9c21bf3/schemas/AIGatewayProviderXai"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-ai-gateway-dev-0/versions/eaabd2fa-a9d5-44cc-b086-e210c9c21bf3.md

# AIGatewayProviderXai

Configuration for an upstream LLM provider.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect AI Gateway
  version: 0.0.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    PublicLabels:
      description: >
        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 "_".
      type: object
      example:
        category: finance
      additionalProperties:
        type: string
        pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
        minLength: 1
        maxLength: 63
      maxProperties: 50
      title: PublicLabels
    AIGatewayManagedBy:
      description: >
        Indicates the managing entities for a resource. A maximum of 5 keys is
        allowed.


        Keys must be 63 characters or less, starting and ending with an
        alphanumeric character,

        and may include dashes (-), underscores (_), and dots (.).


        Values must be non-empty strings of 127 characters or less.


        Keys and values must not contain spaces or control characters, and are
        case-insensitive.
      type: object
      example:
        team: platform
        owner: kong
      additionalProperties:
        type: string
        minLength: 1
        maxLength: 127
      maxProperties: 5
      nullable: true
    AIGatewayProviderConfigAuthBasic:
      description: |
        Basic auth config for an upstream LLM provider.
      type: object
      properties:
        type:
          type: string
          enum:
            - basic
        headers:
          type: array
          items:
            type: object
            additionalProperties: false
            properties:
              name:
                type: string
              value:
                type: string
                writeOnly: true
          maxItems: 1
        params:
          type: array
          items:
            type: object
            additionalProperties: false
            properties:
              name:
                type: string
              value:
                type: string
                writeOnly: true
              location:
                description: Specify whether the param name and value options go in a query
                  string, or the POST form/JSON body.
                type: string
                enum:
                  - body
                  - query
          maxItems: 1
      additionalProperties: false
      required:
        - type
    AIGatewayProviderXai:
      description: |
        Configuration for an upstream LLM provider.
      type: object
      properties:
        type:
          type: string
          enum:
            - xai
        display_name:
          description: The display name for this provider instance.
          type: string
          example: Azure AI SE
        ref:
          description: A user-defined unique identifier for this provider instance, used
            as a stable human-readable reference.
          type: string
          example: azure-ai-se
        labels:
          $ref: "#/components/schemas/PublicLabels"
        managed_by:
          $ref: "#/components/schemas/AIGatewayManagedBy"
        config:
          description: Configuration for the provider.
          type: object
          additionalProperties: false
          properties:
            auth:
              $ref: "#/components/schemas/AIGatewayProviderConfigAuthBasic"
          required:
            - auth
      additionalProperties: false
      required:
        - type
        - display_name
        - ref
        - config
```
