Skip to main content
PUT
Update AI settings

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Body

application/json

Update AI model configuration

defaultProvider
enum<string>
Available options:
openai,
anthropic
defaultModel
string
Minimum string length: 1
maxTokensPerRun
number
monthlyBudgetUsd
number | null
Required range: x >= 0
logPrompts
boolean
temperature
number
Required range: 0 <= x <= 2
openaiApiKey
string
anthropicApiKey
string

Response

AI settings updated

ok
boolean
required