AiOrgUsage
What an AI organization spent in a period and where.
Shape
by_agentarray of AiSpendLineBy agent, the costliest first.
- The AiSpendLine schema
- keystringWhat the line is: an agent's handle, a squad's key, a ritual's key, a model or a day.
- microsinteger · int64What it cost, in millionths of a dollar with the fee included.
- sessionsinteger · int64How many sessions it was.
by_dayarray of AiSpendLineBy UTC day, oldest first.
- The AiSpendLine schema
- keystringWhat the line is: an agent's handle, a squad's key, a ritual's key, a model or a day.
- microsinteger · int64What it cost, in millionths of a dollar with the fee included.
- sessionsinteger · int64How many sessions it was.
by_modelarray of AiSpendLineBy model, the costliest first.
- The AiSpendLine schema
- keystringWhat the line is: an agent's handle, a squad's key, a ritual's key, a model or a day.
- microsinteger · int64What it cost, in millionths of a dollar with the fee included.
- sessionsinteger · int64How many sessions it was.
by_ritualarray of AiSpendLineBy ritual, the costliest first.
- The AiSpendLine schema
- keystringWhat the line is: an agent's handle, a squad's key, a ritual's key, a model or a day.
- microsinteger · int64What it cost, in millionths of a dollar with the fee included.
- sessionsinteger · int64How many sessions it was.
by_squadarray of AiSpendLineBy squad, the costliest first.
- The AiSpendLine schema
- keystringWhat the line is: an agent's handle, a squad's key, a ritual's key, a model or a day.
- microsinteger · int64What it cost, in millionths of a dollar with the fee included.
- sessionsinteger · int64How many sessions it was.
- merged_changesinteger · int64The agents' merge requests merged in the period.
- month_forecast_microsinteger · int64This month's spend at the rate so far, projected to the month's end.
- month_spent_microsinteger · int64What the organization has spent this calendar month.
- period_fromstring · date-timeThe period's start.
- period_tostring · date-timeThe period's end.
- sessionsinteger · int64How many sessions started in the period.
- total_microsinteger · int64What the sessions started in the period cost, in millionths of a dollar with the fee.
- cache_hit_ratenumber · double or nulloptionalThe share of input tokens read from the prompt cache, 0 to 1.
- cost_per_merged_change_microsinteger · int64 or nulloptionalThe period's spend over its merged changes.
- monthly_cap_microsinteger · int64 or nulloptionalThe organization's monthly budget, from its live revision.
Example
Synthesized example{
"by_agent": [
{
"key": "key-cd47",
"micros": 66,
"sessions": 34
}
],
"by_day": [
{
"key": "key-6b2b",
"micros": 42,
"sessions": 34
},
{
"key": "key-6225",
"micros": 10,
"sessions": 4
}
],
"by_model": [
{
"key": "key-6b0d",
"micros": 0,
"sessions": 16
}
],
"by_ritual": [
{
"key": "key-45c0",
"micros": 77,
"sessions": 71
},
{
"key": "key-1b29",
"micros": 52,
"sessions": 77
}
],
"by_squad": [
{
"key": "key-ecfd",
"micros": 71,
"sessions": 89
}
],
"merged_changes": 0,
"month_forecast_micros": 27,
"month_spent_micros": 87,
"period_from": "2026-10-13T20:18:25Z",
"period_to": "2026-10-12T16:17:48Z",
"sessions": 64,
"total_micros": 7,
"cache_hit_rate": 8,
"cost_per_merged_change_micros": 47,
"monthly_cap_micros": 86
}
Graph
Used inside
No schema contains this one.
Contains
Used by
Sent by 0 operations
No operation takes it as a request body.