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 descriptiontype- LLM type (openai-compatible, vertex-ai, etc.)model- Model identifieruri- API endpointauth- Authentication credentials (including service account key_json)headers- Additional HTTP headers (for openai-compatible and anthropic types)enabled- Whether the LLM is enabledcapabilities- Model capabilities (image support, context limit, tool calling)
Immutable fields:
id- System-generated identifiername- LLM name
Built-in LLMs (system-provided models) cannot be updated.
Request
Responses
- 200
- 400
- 403
- 404
The updated LLM.
Invalid request body or connection test failed
Permissions do not allow updating this LLM or LLM is built-in
LLM not found