Skip to main content

AI Providers Module

The AI Providers module lets you register and manage LLM provider configurations for a project. Each provider record stores the model slug, optional base URL, optional configuration, and an optional link to a Secret that supplies the API key.

Overview

An AI provider is a named configuration that tells the system how to reach a specific LLM endpoint. A project can have multiple providers — for example, one for GPT-4o and another for Claude 3.5.

When a provider is linked to a secret the secret's encrypted value is retrieved and passed as the API key when calling the LLM. The key is never exposed through the API.

Data Model

FieldTypeDescription
idstringPublic identifier (e.g. aip_…)
projectIdstringID of the owning project
secretIdstring | nullPublic ID of the linked secret, or null
namestringHuman-readable label
providerAiProviderSlugProvider slug (see below)
defaultModelstringDefault model name sent to the provider API
baseUrlstring | nullOverride base URL (optional, useful for self-hosted LLMs)
configobject | nullArbitrary provider-specific configuration object
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last-updated timestamp

Provider Slugs

Valid values for the provider field:

SlugDescription
openaiOpenAI
anthropicAnthropic
googleGoogle Gemini
xaixAI (Grok)
groqGroq
ollamaOllama (local)
azureAzure OpenAI
bedrockAmazon Bedrock
gatewayGeneric API gateway
customCustom / self-hosted model

Permissions

ActionPermissionREST EndpointMCP Tool
List providersaiProviders:ListAiProvidersGET /api/v1/ai-providerslist-ai-providers
Get a provideraiProviders:GetAiProviderGET /api/v1/ai-providers/:aiProviderIdget-ai-provider
Create provideraiProviders:CreateAiProviderPOST /api/v1/ai-providerscreate-ai-provider
Update provideraiProviders:UpdateAiProviderPATCH /api/v1/ai-providers/:aiProviderIdupdate-ai-provider
Delete provideraiProviders:DeleteAiProviderDELETE /api/v1/ai-providers/:aiProviderIddelete-ai-provider