AI providers

Manage your AI providers with these REST endpoints. AI providers gives you access to AI models and services from various vendors like OpenAI, Anthropic, Mistral, and more.

Endpoints

Manage your AI providers with these REST endpoints.

Provider type

ParameterTypeDescription
idstringUnique identifier for the AI provider
typeProviderTypeType of the AI provider (e.g., OPENAI, ANTHROPIC)
namestringDisplay name for the AI provider
apiKeystring or nullAPI key for the AI provider
apiVersionstring or nullAPI version used by the provider
endpointstring or nullBase URL for the AI provider's API
azureTenantIdstring or nullAzure tenant ID (only present for AZURE_AI_PROJECT provider type)
azureClientIdstring or nullAzure client ID (only present for AZURE_AI_PROJECT provider type)
azureClientSecretstring or nullAzure client secret (only present for AZURE_AI_PROJECT provider type)
createdAtstringTimestamp when the provider was created
updatedAtstringTimestamp when the provider was last updated

ProviderType

Possible values for ProviderType are:
OPENAI - OpenAI API
ANTHROPIC - Anthropic Claude API
PERPLEXITY - Perplexity API
GROQ - Groq API
MISTRAL - Mistral AI API
TOGETHER - Together AI API
OPEN_ROUTER - OpenRouter API
AZURE_OPENAI - Azure OpenAI Service
AZURE_AI_PROJECT - Azure AI Project (requires azureTenantId, azureClientId, azureClientSecret)
OLLAMA - Ollama (self-hosted)
HUMIRIS - Humiris API
GOOGLE - Google AI API

Example AI provider

OpenAI Provider

const provider = { id: '20cfe680-fee5-49b9-b386-6a7097eb8497', type: 'OPENAI', name: '', apiKey: 'sk-proj-IOKBKQJumIfonGrYWcA', apiVersion: null, endpoint: null, createdAt: '2024-01-15T10:30:00Z', updatedAt: '2024-01-15T10:30:00Z', }

Azure AI Project Provider

const provider = { id: '30cfe680-fee5-49b9-b386-6a7097eb8498', type: 'AZURE_AI_PROJECT', name: 'My Azure AI Project', apiKey: null, apiVersion: null, endpoint: 'https://my-project.services.ai.azure.com/', azureTenantId: 'your-tenant-id', azureClientId: 'your-client-id', azureClientSecret: 'your-client-secret', createdAt: '2024-01-15T10:30:00Z', updatedAt: '2024-01-15T10:30:00Z', }