---
title: "更新模型配置"
method: PUT
path: "/api/v1/users/models/{id}"
tags: ["【用户】模型管理"]
---

# 更新模型配置

`PUT /api/v1/users/models/{id}`

更新指定的模型配置信息

## Path parameters

- `id` string, required

## Request body

- DomainUpdateModelReq
  - `api_key` string
  - `base_url` string
  - `context_limit` integer
  - `interface_type` 'openai_chat' | 'openai_responses' | 'anthropic'
  - `is_default` boolean
  - `is_hidden` boolean
  - `model` string
  - `output_limit` integer
  - `provider` string
  - `remark` string
  - `support_image` boolean
  - `temperature` number
  - `thinking_enabled` boolean

## Response `200`

成功

- WebResp
  - `code` integer
  - `data` unknown
  - `message` string

## Other responses

- `400` — 请求参数错误
- `401` — 未授权
- `404` — 资源不存在
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
