---
title: "PUT /api/v1/model"
method: PUT
path: "/api/v1/model"
tags: ["model"]
---

# PUT /api/v1/model

`PUT /api/v1/model`

update model

## Request body

- DomainUpdateModelReq
  - `api_header` string
  - `api_key` string
  - `api_version` string — for azure openai
  - `base_url` string, required
  - `id` string, required
  - `is_active` boolean
  - `model` string, required
  - `parameters` GithubComChaitinPandaWikiDomainModelParam
    - `context_window` integer
    - `max_tokens` integer
    - `r1_enabled` boolean
    - `support_computer_use` boolean
    - `support_images` boolean
    - `support_prompt_cache` boolean
    - `temperature` number
  - `provider` 'BaiZhiCloud' | 'BaiZhiCloudModelStore', required
  - `type` 'chat' | 'embedding' | 'rerank' | 'analysis' | 'analysis-vl', required

## Response `200`

OK

- DomainResponse
  - `data` unknown
  - `message` string
  - `success` boolean

---

[API](https://skmtc.dev/chaitin/apis/panda-wiki-api.md) · [All operations](https://skmtc.dev/chaitin/apis/panda-wiki-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaitin/panda-wiki-api/revisions/c088839a56db/schema)
