Skip to main content
Version: 2.0

Update an LLM

PATCH 

/v2/llms/:llm_id

Supported API Key Type:
Index ServicePersonal

Update an existing LLM's configuration. This endpoint allows partial updates - only provide fields you want to change. Only the name field is immutable.

The updated LLM will be tested before saving to ensure credentials are valid.

Updatable fields:

  • description - LLM description
  • type - LLM type (openai-compatible, vertex-ai, etc.)
  • model - Model identifier
  • uri - API endpoint
  • auth - Authentication credentials (including service account key_json)
  • headers - Additional HTTP headers (for openai-compatible and anthropic types)
  • enabled - Whether the LLM is enabled
  • capabilities - Model capabilities (image support, context limit, tool calling)

Immutable fields:

  • id - System-generated identifier
  • name - LLM name

Built-in LLMs (system-provided models) cannot be updated.

Request

Responses

The LLM has been updated