Model calls this month, by person, and the latest calls
GET
/models/usage
const url = 'https://api.global.stillbox.example/v1/models/usage';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.global.stillbox.example/v1/models/usage \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Totals since the start of the month (UTC) and the 50 latest calls
Media typeapplication/json
object
since
required
string format: date-time
cap_usd_per_person
required
number format: double
people
required
Array<object>
object
user_id
string
name
required
string
email
required
string
calls
required
integer format: int64
input_tokens
required
integer format: int64
output_tokens
required
integer format: int64
cost_usd
required
number format: double
left_region_calls
required
Calls processed outside this region.
integer format: int64
recent
required
Array<object>
object
provider
required
Anthropic’s or OpenAI’s API, or an OpenAI-compatible endpoint of your own.
string
model
required
string
sandbox_id
required
string
sandbox_name
required
string
user_name
required
string
input_tokens
required
integer format: int64
output_tokens
required
integer format: int64
cost_usd
required
number format: double
processed_in
required
string
left_region
required
boolean
status
required
The provider’s HTTP status.
integer
created_at
required
string format: date-time
Example
{ "recent": [ { "provider": "anthropic" } ]}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}