---
title: "Update Model"
method: PUT
path: "/api/models/{model_id}"
tags: ["models"]
---

# Update Model

`PUT /api/models/{model_id}`

Update a model configuration

## Path parameters

- `model_id` string, required

## Request body

- ModelUpdate — Model update request schema
  - `category` string, nullable
  - `model_provider` string, nullable
  - `model_name` string, nullable
  - `api_key` string, nullable
  - `base_url` string, nullable
  - `temperature` number, nullable
  - `dimension` integer, nullable
  - `description` string, nullable
  - `abilities` string[], nullable
  - `share_with_users` boolean, nullable
  - `language` string, nullable
  - `voice` string, nullable
  - `format` string, nullable
  - `sample_rate` integer, nullable

## Response `200`

Successful Response

- ModelWithAccessInfo — Model response with user access information
  - `id` integer, required
  - `model_id` string, required
  - `category` string, required
  - `model_provider` string, required
  - `model_name` string, required
  - `base_url` string, nullable, required
  - `temperature` number, nullable, required
  - `dimension` integer, nullable, required
  - `abilities` string[], nullable, required
  - `description` string, nullable, required
  - `created_at` string, nullable, required
  - `updated_at` string, nullable, required
  - `is_active` boolean, required
  - `is_owner` boolean, required
  - `can_edit` boolean, required
  - `can_delete` boolean, required
  - `is_shared` boolean, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-01** `c9eb29ec9a1b` — 4 info
  - added the new optional request property `format`
  - added the new optional request property `language`
  - added the new optional request property `sample_rate`
  - added the new optional request property `voice`

[Change history](https://skmtc.dev/xorbitsai/apis/xagent/changes/api/models/:model_id/put.md)

---

[API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.dev/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
