Skip to content
Prompty

ApiKeyConnection

Connection configuration for AI services using API keys.

---
title: ApiKeyConnection
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Connection {
      <<abstract>>
        +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
Name Type Description
kind string The Authentication kind for the AI service (e.g., ‘key’ for API key, ‘oauth’ for OAuth tokens)
endpoint string The endpoint URL for the AI service
apiKey string The API key for authenticating with the AI service