curl --request PUT \
--url https://api.anam.ai/v1/llms/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"temperature": 0.5
}
'import requests
url = "https://api.anam.ai/v1/llms/{id}"
payload = { "temperature": 0.5 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({temperature: 0.5})
};
fetch('https://api.anam.ai/v1/llms/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anam.ai/v1/llms/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'temperature' => 0.5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anam.ai/v1/llms/{id}"
payload := strings.NewReader("{\n \"temperature\": 0.5\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.anam.ai/v1/llms/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"temperature\": 0.5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/llms/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"temperature\": 0.5\n}"
response = http.request(request)
puts response.read_bodyupdate llm
Update an LLM configuration
curl --request PUT \
--url https://api.anam.ai/v1/llms/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"temperature": 0.5
}
'import requests
url = "https://api.anam.ai/v1/llms/{id}"
payload = { "temperature": 0.5 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({temperature: 0.5})
};
fetch('https://api.anam.ai/v1/llms/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anam.ai/v1/llms/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'temperature' => 0.5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anam.ai/v1/llms/{id}"
payload := strings.NewReader("{\n \"temperature\": 0.5\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.anam.ai/v1/llms/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"temperature\": 0.5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/llms/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"temperature\": 0.5\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
Partial LLM update; fields left out keep their values. Default LLMs (not your organization's) can't be changed.
A new secret replaces the stored one. urls replaces the whole
list. Adding a URL the LLM didn't have needs the top-level secret in
the same request (a per-URL urls[].secret isn't enough), or it is
refused with 400.
An openrouter LLM's model name must start with the provider, such as
anthropic/claude-sonnet-4.5, and its reasoningEffort, if set, must
be none, minimal, low, medium, high, xhigh or max. An
update that leaves the stored values breaking these rules, as when
switching another format to openrouter, is refused with 400, as is
switching an LLM with no URL, such as a none one, without sending
urls.
providerRouting is only for openrouter. Null clears it, and
switching to another format drops it.
urls on eu.openrouter.ai or us.openrouter.ai keep OpenRouter's
requests in that region. urls that mix OpenRouter regions are
refused with 400.
Reasoning effort for models that take it, sent to the provider as is, such as low, medium or high (values depend on the model). The one exception is minimal on gemini-3.8-flash, which rejects it and is sent low. An openrouter LLM takes only none, minimal, low, medium, high, xhigh or max. Set null to clear it and use the model default.
50"minimal"
Response
Successfully updated LLM
An LLM configuration a persona can use. Secrets are never returned.
Where this LLM processes requests, as Anam recorded it. eu or us when every endpoint of the LLM is in that region. Null when it may process requests in any region, and always for llmFormat none, which makes no LLM calls. Only Anam sets it, on its own LLMs; a request that sends a value gets 400 LLM_RESIDENCY_NOT_SETTABLE, and a null is ignored.
eu, us, null 
