Update an LLM
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.
Path parameters
The ID of the LLM to update.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"auth": {
"type": "bearer",
"token": "abcdef......"
},
"idle_timeout_seconds": 300,
"test_model_parameters": {
"max_tokens": 512
}
}Response
The updated LLM.
Example response
{
"id": "llm_1021844",
"name": "Claude 3.7 Sonnet",
"description": "The Anthropic Claude 3.7 Sonnet model.",
"ownership": "platform",
"type": "openai-compatible",
"idle_timeout_seconds": 300,
"auth": {
"type": "bearer",
"token": "abcdef......"
}
}Changes
Changed in 2 of the 7 revisions of this API.110
- ▲
the
response's property type changed fromstringto no type for statusresponse-property-type-changed
- ○
added to the
response propertyallOflist for the response statusresponse-property-all-of-added
- ○
removed the
anthropicenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
openai-compatibleenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
openai-responsesenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
vertex-aienum value from theresponse property for the response statusresponse-property-enum-value-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////////new-optional-request-property
- ○
added the new optional request property
////////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○