Skip to main content
Version: 2.0

Update an LLM

PATCH 

/v2/llms/:llm_id

Updates an existing LLM's configuration. This endpoint supports partial updates. Provide only the fields you want to change. Only the name field is immutable.

The platform tests the updated LLM before saving it to ensure the 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 updated LLM.