Get Llm Usage
curl --request GET \
--url https://api.peachdeskai.com/api/v1/voice-engine/llm/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/voice-engine/llm/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.peachdeskai.com/api/v1/voice-engine/llm/usage', 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.peachdeskai.com/api/v1/voice-engine/llm/usage",
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.peachdeskai.com/api/v1/voice-engine/llm/usage"
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.peachdeskai.com/api/v1/voice-engine/llm/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/voice-engine/llm/usage")
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{
"window_start": "<string>",
"window_end": "<string>",
"llm_tokens": 123,
"llm_cost_usd": 123,
"cycle_llm_tokens_used": 123,
"daily": [
{}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Bibha BRAHMA LLM
Token Usage
Read your organizationтАЩs Bibha BRAHMA-30B token usage and cost.
GET
/
api
/
v1
/
voice-engine
/
llm
/
usage
Get Llm Usage
curl --request GET \
--url https://api.peachdeskai.com/api/v1/voice-engine/llm/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/voice-engine/llm/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.peachdeskai.com/api/v1/voice-engine/llm/usage', 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.peachdeskai.com/api/v1/voice-engine/llm/usage",
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.peachdeskai.com/api/v1/voice-engine/llm/usage"
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.peachdeskai.com/api/v1/voice-engine/llm/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/voice-engine/llm/usage")
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{
"window_start": "<string>",
"window_end": "<string>",
"llm_tokens": 123,
"llm_cost_usd": 123,
"cycle_llm_tokens_used": 123,
"daily": [
{}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Read your organizationтАЩs Bibha BRAHMA-30B token usage and cost.
GET /api/v1/voice-engine/llm/usage
BRAHMA tokens are metered per organization. Every chat-completion тАФ streaming or not тАФ counts the prompt and completion tokens it consumed against the organization that owns the API key. Prompt and completion tokens are metered separately because they are priced at separate input and output rates (input $2.00 per 1M tokens, output $27.92 per 1M tokens тАФ see Cost). This endpoint returns the aggregated view: prompt_tokens, completion_tokens, and total_tokens, along with the derived managed cost. Authenticate with your PeachDesk API key (X-API-Key); usage is always scoped to that keyтАЩs organization. Use the playground to send a live request and inspect the response.Authorizations
SessionAuthApiKeyAuth
Interactive user session: the login JWT, sent as Authorization: Bearer <token>.
Query Parameters
Response
Successful Response
The org's LLM token usage/cost тАФ the window rollup plus the live cycle counter. Reuses the voice usage-records read path (no new table).

