Credentials
Create Credential
Creates a new credential for AI providers. For Ollama, it manages models within a single credential.
POST
Body Parameters
string
Credential name or model name for Ollama
string
required
Provider name (e.g., openai, anthropic, ollama)
string
required
API key for the provider
string
required
Type of credential
string | null
Optional base URL for the provider
object
Additional dynamic fields
boolean
Whether to use proxy
boolean
Validation status
Response
boolean
Indicates if the credential was created successfully
string
Success or error message
string
The ID of the newly created credential
Notes
- For Ollama provider, credentials manage models within a single credential
- The
namefield can represent the credential name or model name for Ollama - Ensure the API key is valid before creating the credential
- The system checks for existing valid credentials for the same provider

