Skip to main content
PUT
/
config
/
model
Update provider and model
curl --request PUT \
  --url http://localhost:{port}/config/model \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider": "<string>",
  "model": "<string>",
  "providerOptions": {}
}
'
{
  "provider": "<string>",
  "model": "<string>",
  "providerOptions": {}
}
Updates the active provider and model. For openai-compat, include providerOptions with baseURL and name so the server can construct the OpenAI-compatible provider. The model field remains required and is used as the model ID when sending requests.

Body

application/json
provider
string
required
model
string
required
providerOptions
object

Per-provider options (e.g., baseURL and name for openai-compat)

Response

200 - application/json

Updated model

provider
string
required
model
string
required
providerOptions
object

Per-provider options (e.g., baseURL and name for openai-compat)