---
title: "Update model (partial)"
method: PATCH
path: "/models/{providerId}/{modelId}"
tags: ["Models"]
---

# Update model (partial)

`PATCH /models/{providerId}/{modelId}`

## Request body

- UpdateModelRequest
  - `id` string, required
  - `providerId` string, required
  - `displayName` string, required
  - `type` 'chat' | 'embedding' | 'tts' | 'stt' | 'image' | 'text2video' | 'text2music' | 'realtime', nullable
  - `enabled` boolean, nullable
  - `description` string, nullable
  - `abilities` object, nullable
  - `parameters` object, nullable
  - `pricing` object, nullable
  - `contextWindowTokens` integer, nullable
  - `releasedAt` string, nullable
  - `sort` integer, nullable
  - `source` 'remote' | 'custom' | 'builtin', nullable
  - `organization` string, nullable

## Response `200`

OK

- ApiResponseModel
  - `success` boolean, required
  - `message` string, nullable
  - `timestamp` string, date-time, required
  - `data` Model
    - `id` string
    - `providerId` string
    - `displayName` string
    - `type` 'chat' | 'embedding' | 'tts' | 'stt' | 'image' | 'text2video' | 'text2music' | 'realtime', nullable
    - `enabled` boolean, nullable
    - `description` string, nullable
    - `abilities` object, nullable
    - `parameters` object, nullable
    - `pricing` object, nullable
    - `contextWindowTokens` integer, nullable
    - `releasedAt` string, nullable
    - `sort` integer, nullable
    - `source` 'remote' | 'custom' | 'builtin', nullable
    - `organization` string, nullable
    - `createdAt` string, date-time, nullable
    - `updatedAt` string, date-time, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

## Changes

- **2025-09-21** `29cedfcf6ce1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/lobehub/apis/lobechat-openapi/changes/models/:providerId/:modelId/patch.md)

---

[API](https://skmtc.dev/lobehub/apis/lobechat-openapi.md) · [All operations](https://skmtc.dev/lobehub/apis/lobechat-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lobehub/lobechat-openapi/revisions/7be2ebcf191c/schema)
