---
title: "Update group model config"
method: PUT
path: "/api/group/{group}/model_config/{model}"
tags: ["group"]
---

# Update group model config

`PUT /api/group/{group}/model_config/{model}`

Update group model config

## Path parameters

- `group` string, required
- `model` string, required

## Request body

- ControllerSaveGroupModelConfigRequest
  - `image_prices` object
  - `model` string
  - `override_limit` boolean
  - `override_price` boolean
  - `price` ModelPrice
    - `cache_creation_price` number
    - `cache_creation_price_unit` integer
    - `cached_price` number
    - `cached_price_unit` integer
    - `image_input_price` number
    - `image_input_price_unit` integer
    - `input_price` number
    - `input_price_unit` integer
    - `output_price` number
    - `output_price_unit` integer
    - `per_request_price` number
    - `thinking_mode_output_price` number — when ThinkingModeOutputPrice and ReasoningTokens are not 0, OutputPrice and OutputPriceUnit will be overwritten
    - `thinking_mode_output_price_unit` integer
    - `web_search_price` number
    - `web_search_price_unit` integer
  - `rpm` integer
  - `tpm` integer

## Response `200`

OK

- MiddlewareAPIResponse
  - `data` unknown
  - `message` string
  - `success` boolean

---

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