---
title: "Update provider and model"
method: PUT
path: "/config/model"
---

# Update provider and model

`PUT /config/model`

## Request body

- ModelInfo
  - `provider` string, required
  - `model` string, required
  - `providerOptions` object — Per-provider options (e.g., baseURL and name for openai-compat)

## Response `200`

Updated model

- ModelInfo
  - `provider` string, required
  - `model` string, required
  - `providerOptions` object — Per-provider options (e.g., baseURL and name for openai-compat)

## Changes

- **2026-02-03** `7d015a5b9460` — 2 info
  - added the new optional request property `providerOptions`
  - added the optional property `providerOptions` to the response with the `200` status

[Change history](https://skmtc.dev/davis7dotsh/apis/btca-local-server-api/changes/config/model/put.md)

---

[API](https://skmtc.dev/davis7dotsh/apis/btca-local-server-api.md) · [All operations](https://skmtc.dev/davis7dotsh/apis/btca-local-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/davis7dotsh/btca-local-server-api/revisions/0d00ac63b7d8/schema)
