Resources
Key Model Plan
Read or replace a key’s model plan — a single-model pin and/or per-mode engine bindings.
GET
/
api
/
v1
/
keys
/
{id}
/
model-plan
Key Model Plan
curl --request GET \
--url https://api.example.com/api/v1/keys/{id}/model-plan \
--header 'Content-Type: application/json' \
--data '
{
"single_model": {},
"bindings": [
{}
]
}
'import requests
url = "https://api.example.com/api/v1/keys/{id}/model-plan"
payload = {
"single_model": {},
"bindings": [{}]
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({single_model: {}, bindings: [{}]})
};
fetch('https://api.example.com/api/v1/keys/{id}/model-plan', 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.example.com/api/v1/keys/{id}/model-plan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'single_model' => [
],
'bindings' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"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.example.com/api/v1/keys/{id}/model-plan"
payload := strings.NewReader("{\n \"single_model\": {},\n \"bindings\": [\n {}\n ]\n}")
req, _ := http.NewRequest("GET", url, payload)
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.get("https://api.example.com/api/v1/keys/{id}/model-plan")
.header("Content-Type", "application/json")
.body("{\n \"single_model\": {},\n \"bindings\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/keys/{id}/model-plan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"single_model\": {},\n \"bindings\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"single_model": {},
"bindings": [
{}
],
"catalog": [
{}
]
}The model plan controls which upstream engine a key runs. Two independent levers:
single_model— pin ONE engine for every text turn. This is a deterministic passthrough that skips the classifier (ideal for a coding / IDE backend, including acustom:bring-your-own model).bindings— remap individual modes to specific engines; the classifier still routes, but each mode’s engine is pinned.
arca-velox-5.1, arca-magnus-5.1, anthropic/claude-sonnet-4.6, anthropic/claude-opus-4.8, anthropic/claude-haiku-4.5, google/gemini-2.5-pro, openai/gpt-4.1, or your own custom:<providerId>:<model>.
For a full runnable flow (branches, guardrail nodes, routing) use the Orchestrator Graph instead — it takes precedence over the model plan.
Authentication
Requires an API key withbilling scope; the caller must own the key.
Path Parameters
string
required
The API key UUID.
Get the plan
GET /api/v1/keys/{id}/model-plan
object | null
The pinned engine (
{ upstream_id, fallback_upstream_id }) or null.array
Per-mode overrides:
{ mode, upstream_id, fallback_upstream_id }.array
The selectable engines (platform + your custom providers) for building a picker.
Replace the plan
PUT /api/v1/keys/{id}/model-plan — a full replace of both fields (send the complete desired state).
object | null
{ upstream_id, fallback_upstream_id? } to pin one engine for every text turn, or null to clear the pin.object[]
Per-mode overrides, each
{ mode, upstream_id, fallback_upstream_id? }. Every referenced upstream id is validated against the platform catalog or your custom providers.Example
curl -X PUT https://www.hitheo.ai/api/v1/keys/KEY_ID/model-plan \
-H "Authorization: Bearer $THEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "bindings": [
{ "mode": "fast", "upstream_id": "arca-velox-5.1" },
{ "mode": "think", "upstream_id": "arca-magnus-5.1" }
] }'
await theo.keys.setModelPlan("KEY_ID", {
single_model: { upstream_id: "anthropic/claude-opus-4.8" }, // deterministic passthrough
});
Was this page helpful?
Key Model Plan
curl --request GET \
--url https://api.example.com/api/v1/keys/{id}/model-plan \
--header 'Content-Type: application/json' \
--data '
{
"single_model": {},
"bindings": [
{}
]
}
'import requests
url = "https://api.example.com/api/v1/keys/{id}/model-plan"
payload = {
"single_model": {},
"bindings": [{}]
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({single_model: {}, bindings: [{}]})
};
fetch('https://api.example.com/api/v1/keys/{id}/model-plan', 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.example.com/api/v1/keys/{id}/model-plan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'single_model' => [
],
'bindings' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"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.example.com/api/v1/keys/{id}/model-plan"
payload := strings.NewReader("{\n \"single_model\": {},\n \"bindings\": [\n {}\n ]\n}")
req, _ := http.NewRequest("GET", url, payload)
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.get("https://api.example.com/api/v1/keys/{id}/model-plan")
.header("Content-Type", "application/json")
.body("{\n \"single_model\": {},\n \"bindings\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/keys/{id}/model-plan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"single_model\": {},\n \"bindings\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"single_model": {},
"bindings": [
{}
],
"catalog": [
{}
]
}