Get LLM spend by feature
curl --request GET \
--url https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature', 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.orbit.devotel.io/api/v1/insights/llm-spend/by-feature",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.orbit.devotel.io/api/v1/insights/llm-spend/by-feature")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"from": "2026-07-08T00:00:00.000Z",
"to": "2026-08-07T00:00:00.000Z",
"currency": "USD",
"timezone": "America/New_York",
"total_cents": 412300,
"budget": {
"monthly_cap_cents": 1500000,
"daily_cap_cents": 50000,
"channel_thresholds": {
"voice": 50000
},
"alert_at_percent": 80
},
"features": [
{
"channel": "voice",
"total_cost_cents": 205400,
"total_tokens": 642000,
"event_count": 1820
},
{
"channel": "inbox",
"total_cost_cents": 132900,
"total_tokens": 418000,
"event_count": 1240
}
],
"threshold_breaches": [
{
"channel": "voice",
"cents": 205400,
"threshold_cents": 50000,
"percent": 410.8
}
]
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}API Reference
Get LLM spend by feature
Attributes LLM spend to the AI feature that incurred it (voice, inbox, SMS, knowledge-base, and other channels) over a window, so operators can see which feature is driving cost rather than a single un-attributed bill. Returns the per-feature breakdown, the org budget config, and any per-channel threshold breaches so the panel renders in one roundtrip. All money is integer cents. Read-only, org-scoped.
GET
/
api
/
v1
/
insights
/
llm-spend
/
by-feature
Get LLM spend by feature
curl --request GET \
--url https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature', 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.orbit.devotel.io/api/v1/insights/llm-spend/by-feature",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.orbit.devotel.io/api/v1/insights/llm-spend/by-feature")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/insights/llm-spend/by-feature")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"from": "2026-07-08T00:00:00.000Z",
"to": "2026-08-07T00:00:00.000Z",
"currency": "USD",
"timezone": "America/New_York",
"total_cents": 412300,
"budget": {
"monthly_cap_cents": 1500000,
"daily_cap_cents": 50000,
"channel_thresholds": {
"voice": 50000
},
"alert_at_percent": 80
},
"features": [
{
"channel": "voice",
"total_cost_cents": 205400,
"total_tokens": 642000,
"event_count": 1820
},
{
"channel": "inbox",
"total_cost_cents": 132900,
"total_tokens": 418000,
"event_count": 1240
}
],
"threshold_breaches": [
{
"channel": "voice",
"cents": 205400,
"threshold_cents": 50000,
"percent": 410.8
}
]
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Query Parameters
Window start, ISO-8601 with offset. Defaults to 30 days before to.
Window end, ISO-8601 with offset. Defaults to now.
Response
200 - application/json
Per-feature spend breakdown with the org budget config and any per-channel threshold breaches, all in integer cents.
The response is of type object.
⌘I