AI usage
curl --request GET \
--url https://osis.co/api/v1/comms/ai/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://osis.co/api/v1/comms/ai/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://osis.co/api/v1/comms/ai/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://osis.co/api/v1/comms/ai/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://osis.co/api/v1/comms/ai/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://osis.co/api/v1/comms/ai/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://osis.co/api/v1/comms/ai/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_bodyAI
AI usage
GET /api/v1/comms/ai/usage — included tokens, remaining headroom, and pass-through rates.
GET
https://osis.co
/
api
/
v1
/
comms
/
ai
/
usage
AI usage
curl --request GET \
--url https://osis.co/api/v1/comms/ai/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://osis.co/api/v1/comms/ai/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://osis.co/api/v1/comms/ai/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://osis.co/api/v1/comms/ai/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://osis.co/api/v1/comms/ai/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://osis.co/api/v1/comms/ai/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://osis.co/api/v1/comms/ai/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_bodyRead this month’s AI token meter. Hosted agent replies and
Scope:
POST /api/v1/comms/chat/completions share it.
Scope: comms_ai
Request
curl "https://osis.co/api/v1/comms/ai/usage" \
-H "Authorization: Bearer $COMMS_API_KEY"
Response
{
"usage": {
"periodStart": "2026-08-01",
"currentPeriodEnd": "2026-09-01T00:00:00.000Z",
"planKey": "plus",
"planName": "Plus",
"usageBilled": false,
"used": 12840,
"included": 2000000,
"remaining": 1987160,
"rates": {
"inputUsdPerMillion": 3.5,
"outputUsdPerMillion": 18
},
"models": ["claude-sonnet-5"]
}
}
| Field | Meaning |
|---|---|
used | Tokens counted this period (prompt + completion) |
included | Plan allowance. null means unlimited (still metered) |
remaining | Headroom before HTTP 402. null when unlimited |
usageBilled | true on the Messaging Services Agreement — usage is invoiced in arrears |
rates | Pass-through USD per million tokens |
Models
curl "https://osis.co/api/v1/comms/ai/models" \
-H "Authorization: Bearer $COMMS_API_KEY"
{
"object": "list",
"data": [
{
"id": "claude-sonnet-5",
"object": "model",
"created": 0,
"owned_by": "comms",
"default": true
}
]
}
comms_ai
Related
⌘I