curl --request PUT \
--url https://api.hyperline.co/v1/agents/cost-catalog/overrides \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"model": "<string>",
"input_per_m_tokens": "<string>",
"output_per_m_tokens": "<string>",
"cached_input_per_m_tokens": "<string>",
"cache_write_per_m_tokens": "<string>",
"dimensions": [
{
"key": "<string>",
"rate": "<string>"
}
]
}
'import requests
url = "https://api.hyperline.co/v1/agents/cost-catalog/overrides"
payload = {
"provider": "<string>",
"model": "<string>",
"input_per_m_tokens": "<string>",
"output_per_m_tokens": "<string>",
"cached_input_per_m_tokens": "<string>",
"cache_write_per_m_tokens": "<string>",
"dimensions": [
{
"key": "<string>",
"rate": "<string>"
}
]
}
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({
provider: '<string>',
model: '<string>',
input_per_m_tokens: '<string>',
output_per_m_tokens: '<string>',
cached_input_per_m_tokens: '<string>',
cache_write_per_m_tokens: '<string>',
dimensions: [{key: '<string>', rate: '<string>'}]
})
};
fetch('https://api.hyperline.co/v1/agents/cost-catalog/overrides', 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.hyperline.co/v1/agents/cost-catalog/overrides",
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([
'provider' => '<string>',
'model' => '<string>',
'input_per_m_tokens' => '<string>',
'output_per_m_tokens' => '<string>',
'cached_input_per_m_tokens' => '<string>',
'cache_write_per_m_tokens' => '<string>',
'dimensions' => [
[
'key' => '<string>',
'rate' => '<string>'
]
]
]),
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.hyperline.co/v1/agents/cost-catalog/overrides"
payload := strings.NewReader("{\n \"provider\": \"<string>\",\n \"model\": \"<string>\",\n \"input_per_m_tokens\": \"<string>\",\n \"output_per_m_tokens\": \"<string>\",\n \"cached_input_per_m_tokens\": \"<string>\",\n \"cache_write_per_m_tokens\": \"<string>\",\n \"dimensions\": [\n {\n \"key\": \"<string>\",\n \"rate\": \"<string>\"\n }\n ]\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.hyperline.co/v1/agents/cost-catalog/overrides")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"<string>\",\n \"model\": \"<string>\",\n \"input_per_m_tokens\": \"<string>\",\n \"output_per_m_tokens\": \"<string>\",\n \"cached_input_per_m_tokens\": \"<string>\",\n \"cache_write_per_m_tokens\": \"<string>\",\n \"dimensions\": [\n {\n \"key\": \"<string>\",\n \"rate\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperline.co/v1/agents/cost-catalog/overrides")
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 \"provider\": \"<string>\",\n \"model\": \"<string>\",\n \"input_per_m_tokens\": \"<string>\",\n \"output_per_m_tokens\": \"<string>\",\n \"cached_input_per_m_tokens\": \"<string>\",\n \"cache_write_per_m_tokens\": \"<string>\",\n \"dimensions\": [\n {\n \"key\": \"<string>\",\n \"rate\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"provider": "<string>",
"model": "<string>",
"aliases": [
"<string>"
],
"input_per_m_tokens": "<string>",
"output_per_m_tokens": "<string>",
"cached_input_per_m_tokens": "<string>",
"cache_write_per_m_tokens": "<string>",
"dimensions": [
{
"key": "<string>",
"rate": "<string>",
"per": "1m"
}
],
"effective_from": "<string>",
"source": "<string>",
"custom_item_id": "<string>",
"override": {
"id": "<string>",
"input_per_m_tokens": "<string>",
"output_per_m_tokens": "<string>",
"cached_input_per_m_tokens": "<string>",
"cache_write_per_m_tokens": "<string>",
"effective_from": "<string>",
"dimensions": [
{
"key": "<string>",
"rate": "<string>",
"per": "1m"
}
]
}
}Set an agent cost catalog override
State the workspace’s negotiated rate for a model the global registry already prices — the discount you actually pay, not the list price. Token rates are USD per million tokens and dimensions carries whatever else that model bills. Any open override for the pair is closed as of now and this one takes effect immediately; calls already priced keep the rate they were priced with. An alias resolves to its canonical model, so naming a spelling the registry collapsed writes the surviving model’s override. A (provider, model) pair the registry does not know is refused — that is a custom cost item, created through the items endpoint.
curl --request PUT \
--url https://api.hyperline.co/v1/agents/cost-catalog/overrides \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"model": "<string>",
"input_per_m_tokens": "<string>",
"output_per_m_tokens": "<string>",
"cached_input_per_m_tokens": "<string>",
"cache_write_per_m_tokens": "<string>",
"dimensions": [
{
"key": "<string>",
"rate": "<string>"
}
]
}
'import requests
url = "https://api.hyperline.co/v1/agents/cost-catalog/overrides"
payload = {
"provider": "<string>",
"model": "<string>",
"input_per_m_tokens": "<string>",
"output_per_m_tokens": "<string>",
"cached_input_per_m_tokens": "<string>",
"cache_write_per_m_tokens": "<string>",
"dimensions": [
{
"key": "<string>",
"rate": "<string>"
}
]
}
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({
provider: '<string>',
model: '<string>',
input_per_m_tokens: '<string>',
output_per_m_tokens: '<string>',
cached_input_per_m_tokens: '<string>',
cache_write_per_m_tokens: '<string>',
dimensions: [{key: '<string>', rate: '<string>'}]
})
};
fetch('https://api.hyperline.co/v1/agents/cost-catalog/overrides', 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.hyperline.co/v1/agents/cost-catalog/overrides",
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([
'provider' => '<string>',
'model' => '<string>',
'input_per_m_tokens' => '<string>',
'output_per_m_tokens' => '<string>',
'cached_input_per_m_tokens' => '<string>',
'cache_write_per_m_tokens' => '<string>',
'dimensions' => [
[
'key' => '<string>',
'rate' => '<string>'
]
]
]),
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.hyperline.co/v1/agents/cost-catalog/overrides"
payload := strings.NewReader("{\n \"provider\": \"<string>\",\n \"model\": \"<string>\",\n \"input_per_m_tokens\": \"<string>\",\n \"output_per_m_tokens\": \"<string>\",\n \"cached_input_per_m_tokens\": \"<string>\",\n \"cache_write_per_m_tokens\": \"<string>\",\n \"dimensions\": [\n {\n \"key\": \"<string>\",\n \"rate\": \"<string>\"\n }\n ]\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.hyperline.co/v1/agents/cost-catalog/overrides")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"<string>\",\n \"model\": \"<string>\",\n \"input_per_m_tokens\": \"<string>\",\n \"output_per_m_tokens\": \"<string>\",\n \"cached_input_per_m_tokens\": \"<string>\",\n \"cache_write_per_m_tokens\": \"<string>\",\n \"dimensions\": [\n {\n \"key\": \"<string>\",\n \"rate\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperline.co/v1/agents/cost-catalog/overrides")
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 \"provider\": \"<string>\",\n \"model\": \"<string>\",\n \"input_per_m_tokens\": \"<string>\",\n \"output_per_m_tokens\": \"<string>\",\n \"cached_input_per_m_tokens\": \"<string>\",\n \"cache_write_per_m_tokens\": \"<string>\",\n \"dimensions\": [\n {\n \"key\": \"<string>\",\n \"rate\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"provider": "<string>",
"model": "<string>",
"aliases": [
"<string>"
],
"input_per_m_tokens": "<string>",
"output_per_m_tokens": "<string>",
"cached_input_per_m_tokens": "<string>",
"cache_write_per_m_tokens": "<string>",
"dimensions": [
{
"key": "<string>",
"rate": "<string>",
"per": "1m"
}
],
"effective_from": "<string>",
"source": "<string>",
"custom_item_id": "<string>",
"override": {
"id": "<string>",
"input_per_m_tokens": "<string>",
"output_per_m_tokens": "<string>",
"cached_input_per_m_tokens": "<string>",
"cache_write_per_m_tokens": "<string>",
"effective_from": "<string>",
"dimensions": [
{
"key": "<string>",
"rate": "<string>",
"per": "1m"
}
]
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Model price override payload
11^\d+(\.\d+)?$^\d+(\.\d+)?$^\d+(\.\d+)?$^\d+(\.\d+)?$Show child attributes
Show child attributes
Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?

