---
title: "Update LLM settings"
method: PATCH
path: "/llm/settings/{settings_id}"
tags: ["LlmSetting"]
---

# Update LLM settings

`PATCH /llm/settings/{settings_id}`

Update fields of an existing LLM settings entry.

## Path parameters

- `settings_id` integer, required — ID of the LLM settings entry to update.

## Query parameters

- `cookie_name` string, nullable

## Request body

- LLMSettingsUpdate
  - `llm_catalog_id` integer, nullable — ID of the catalog model these settings configure.
  - `provider` string, nullable — Provider backing the model.
  - `library` string, nullable — Client library used to call the provider.
  - `max_tokens` integer, nullable — Maximum tokens allowed per request for this model.
  - `cost_prompt_tokens` union — Cost per prompt token in the billing currency.
    - number
    - string
  - `cost_completion_tokens` union — Cost per completion token in the billing currency.
    - number
    - string
  - `region` string, nullable — Provider region hosting the deployment.
  - `args` object, nullable — Extra provider-specific arguments passed to the client.
  - `openai_resource` string, nullable — Azure OpenAI resource name.
  - `api_version` string, nullable — Provider API version to target.
  - `deployment_name` string, nullable — Provider deployment name for the model.
  - `endpoint` string, nullable — Base URL of the provider endpoint.
  - `api_key` string, nullable — Secret API key used to authenticate with the provider.

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Missing or invalid authentication.
- `403` — Platform operator privileges required.
- `404` — No LLM settings exist with the given id.
- `422` — Validation Error

---

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