---
title: "Update configured model"
method: PUT
path: "/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}"
tags: ["Models"]
---

# Update configured model

`PUT /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session` and API key in header `X-Omnara-Csrf`

Updates a configured model's settings and returns the updated model; omitted fields keep their values. Agents already using the model pick up the change on their next model call. The update isn't checked against project grants or agent configs, so lowering a limit below their overrides or turning off tools or reasoning they rely on makes those agents' next model call fail.

## Path parameters

- `orgID` string, required
- `modelProviderConfigID` string, required
- `configuredModelID` string, required

## Request body

- UpdateConfiguredModelRequest: Update a configured model. Omitted fields keep their current values. Runtime changes create a new immutable model revision; changing only name just renames the model.
  - `name` string: User-assigned configured model name used by agent YAML as model.name. Renaming affects future YAML resolution but does not change existing agents.
  - `provider_model_slug` string: Exact provider model slug sent to the provider endpoint. Free-pool, `:online`, and preset model ids are not accepted on Omnara-managed OpenRouter providers.
  - `context_window_tokens` integer: Context budget for input and output tokens. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit.
  - `max_output_tokens` integer, nullable: Known output-token ceiling for this model. Omitted keeps the current value. Null clears it to unknown for every API format.
  - `default_max_output_tokens` integer, nullable: Optional per-request output allowance unless a project or agent overrides it. Without a default or known ceiling, Messages uses 64000 tokens; other formats omit the allowance.
  - `default_cache_retention` 'none' | 'short' | 'long': Prompt-cache preference for model requests; `short` when omitted. `short` applies the route's default caching (explicit cache breakpoints where the provider requires them) and, where the route accepts one, a stable conversation key for cache-aware routing. `long` prefers the route's extended cache lifetime where one exists (currently Anthropic's one-hour cache, which on Bedrock requires Claude 4.5 or newer) and behaves like `short` elsewhere. `none` sends no Omnara-managed cache controls or conversation key; providers may still cache prefixes on their own.
  - `supports_tools` boolean: Whether this configured model can receive tool definitions and emit tool calls. Agent configs with enabled tools are rejected when this is false. Omitted keeps the current value.
  - `supports_reasoning` boolean: Whether Omnara should use this model's reasoning features. For OpenAI Responses, this also enables encrypted reasoning replay for stateless calls. Omitted keeps the current value.
  - `default_reasoning_effort` string: Reasoning effort sent by default, such as low, medium, or high. Requires supports_reasoning; must be listed in supported_reasoning_efforts when that is set.
  - `supported_reasoning_efforts` string[]: Reasoning effort values this configured model accepts. Requires supports_reasoning=true when non-empty.
  - `input_modalities` string[]: Input types this configured model accepts. Omnara recognizes text, image, file, and audio; an empty list leaves capabilities unspecified.
  - `output_modalities` string[]: Output types this configured model can return. Omnara currently consumes text output.
  - `api_variant_options` ModelAPIVariantOptions: Extra top-level JSON fields to include in provider requests for this configured model. Use this for provider-specific settings that Omnara does not expose as typed fields, such as OpenRouter `provider` routing or sampling parameters. Omnara still controls the fields it needs to run the agent correctly, including the model, prompt/messages, streaming, tools, output-token limit, and selected reasoning policy. Provider passthrough values for those fields are ignored. For OpenRouter routing options, see https://openrouter.ai/docs/guides/routing/provider-selection and general request parameters at https://openrouter.ai/docs/api/reference/parameters. Omnara-managed OpenRouter providers accept only sampling, reasoning, and per-model routing options here.
  - `pricing` ModelPricing, nullable: Your own prices in USD per million tokens, as exact decimal strings, named like genai-prices catalog entries. Missing cache prices use the input price.
    - `input_mtok` string, required: USD per million input tokens.
    - `cache_read_mtok` string: USD per million input tokens read from the prompt cache.
    - `cache_write_mtok` string: USD per million input tokens written to the prompt cache.
    - `output_mtok` string, required: USD per million output tokens.

## Response `200`

Route response.

- ConfiguredModel
  - `id` string, required
  - `org_id` string, required
  - `model_provider_config_id` string, required
  - `management_kind` 'tenant' | 'cluster', required: Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.
  - `name` string, required: User-assigned configured model name used by agent YAML as model.name.
  - `current_revision_id` string, required
  - `provider_model_slug` string, required: Exact provider model slug sent to the provider endpoint by the current revision.
  - `context_window_tokens` integer, required: Context budget for input and output tokens. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit.
  - `max_output_tokens` integer, nullable, required: Known output-token ceiling for this model, or null when unknown.
  - `default_max_output_tokens` integer, nullable: Default per-request output-token cap sent to the provider unless an agent config overrides it.
  - `default_cache_retention` 'none' | 'short' | 'long': Prompt-cache preference for model requests; `short` when omitted. `short` applies the route's default caching (explicit cache breakpoints where the provider requires them) and, where the route accepts one, a stable conversation key for cache-aware routing. `long` prefers the route's extended cache lifetime where one exists (currently Anthropic's one-hour cache, which on Bedrock requires Claude 4.5 or newer) and behaves like `short` elsewhere. `none` sends no Omnara-managed cache controls or conversation key; providers may still cache prefixes on their own.
  - `supports_tools` boolean, required: Whether this configured model can receive tool definitions and emit tool calls.
  - `supports_reasoning` boolean, required: Whether Omnara should use this model's reasoning features.
  - `default_reasoning_effort` string, required: Default reasoning effort to send for models/API formats that support effort-style reasoning controls.
  - `supported_reasoning_efforts` string[], required: Reasoning effort values this configured model accepts.
  - `input_modalities` string[], required: Input types this configured model accepts. Omnara recognizes text, image, file, and audio; an empty list leaves capabilities unspecified.
  - `output_modalities` string[], required: Output types this configured model can return.
  - `api_variant_options` ModelAPIVariantOptions, required: Extra top-level JSON fields to include in provider requests for this configured model. Use this for provider-specific settings that Omnara does not expose as typed fields, such as OpenRouter `provider` routing or sampling parameters. Omnara still controls the fields it needs to run the agent correctly, including the model, prompt/messages, streaming, tools, output-token limit, and selected reasoning policy. Provider passthrough values for those fields are ignored. For OpenRouter routing options, see https://openrouter.ai/docs/guides/routing/provider-selection and general request parameters at https://openrouter.ai/docs/api/reference/parameters. Omnara-managed OpenRouter providers accept only sampling, reasoning, and per-model routing options here.
  - `pricing` ModelPricing: Your own prices for this model, when set.
    - `input_mtok` string, required: USD per million input tokens.
    - `cache_read_mtok` string: USD per million input tokens read from the prompt cache.
    - `cache_write_mtok` string: USD per million input tokens written to the prompt cache.
    - `output_mtok` string, required: USD per million output tokens.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `revision_created_at` string, date-time, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-11-24** `69f93619121b`: 2 info
  - added the new optional request property `pricing`
  - added the optional property `pricing` to the response with the `200` status
- **2026-10-05** `3d9e2cf46e07`: 159 info
  - added the optional property `current_digest` to the response with the `400` status
  - added the optional property `current_digest` to the response with the `401` status
  - added the optional property `current_digest` to the response with the `403` status
  - added the optional property `current_digest` to the response with the `404` status
  - …155 more
  - …this revision’s changelog is incomplete
- **2026-09-28** `acddeb8fc6a5`: 7 warning, 7 info
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `400`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `401`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `403`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `404`
  - …10 more
- **2026-09-10** `019b05be2198`: 1 breaking, 1 info
  - the response property `max_output_tokens` became nullable for the status `200`
  - the request property `max_output_tokens` became nullable
- **2026-09-02** `3bb1c13354bc`: 1 breaking
  - the response property `default_cache_retention` became optional for the status `200`

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/model-provider-configs/:modelProviderConfigID/models/:configuredModelID/put.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
