---
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
  - `input_cost_per_token` number, nullable
  - `is_active` boolean, nullable
  - `max_output_tokens` integer, nullable
  - `output_cost_per_token` number, nullable

## Response `200`

Successful Response

- AgentareaApiApiV1ModelSpecsModelSpecResponse
  - `context_window` integer, required
  - `created_at` string, 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, required

## Other responses

- `422` — Validation Error

---

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