---
title: "Update Model Spec"
method: PATCH
path: "/v1/model-specs/{model_spec_id}"
tags: ["v1", "protected", "model-specs"]
---

# Update Model Spec

`PATCH /v1/model-specs/{model_spec_id}`

Update a model specification.

## Path parameters

- `model_spec_id` string, uuid, required

## Request body

- ModelSpecUpdate
  - `context_window` integer, nullable
  - `default_context_strategy` string, nullable
  - `description` string, nullable
  - `display_name` string, nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- AgentareaApiApiV1ModelSpecsModelSpecResponse
  - `context_window` integer, required
  - `created_at` string, date-time, required
  - `default_context_strategy` string, nullable, required
  - `description` string, nullable, required
  - `display_name` string, required
  - `id` string, required
  - `input_cost_per_token` number, nullable
  - `is_active` boolean, required
  - `max_output_tokens` integer, nullable
  - `model_name` string, required
  - `output_cost_per_token` number, nullable
  - `provider_key` string, nullable
  - `provider_name` string, nullable
  - `provider_spec_id` string, required
  - `supports_function_calling` boolean, nullable
  - `supports_reasoning` boolean, nullable
  - `supports_vision` boolean, nullable
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-29** `e1a530c0a2d5` — 6 info
  - added the optional property `input_cost_per_token` to the response with the `200` status
  - added the optional property `max_output_tokens` to the response with the `200` status
  - added the optional property `output_cost_per_token` to the response with the `200` status
  - added the optional property `supports_function_calling` to the response with the `200` status
  - …2 more
- **2026-03-30** `e9c153221160` — 6 warning
  - removed the optional property `input_cost_per_token` from the response with the `200` status
  - removed the optional property `max_output_tokens` from the response with the `200` status
  - removed the optional property `output_cost_per_token` from the response with the `200` status
  - removed the optional property `supports_function_calling` from the response with the `200` status
  - …2 more

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/model-specs/:model_spec_id/patch.md)

---

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