Skip to content

ApiKeyConnection

Connection configuration for AI services using API keys.

---
title: ApiKeyConnection
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Connection {
        +string kind
        +string authenticationMode
        +string usageDescription
    }
    Connection <|-- ApiKeyConnection
    class ApiKeyConnection {
      
        +string kind
        +string endpoint
        +string apiKey
    }
kind: key
endpoint: https://{your-custom-endpoint}.openai.azure.com/
apiKey: your-api-key
NameTypeDescription
kindstringThe Authentication kind for the AI service (e.g., ‘key’ for API key, ‘oauth’ for OAuth tokens)
endpointstringThe endpoint URL for the AI service
apiKeystringThe API key for authenticating with the AI service