Observability
Agent Spend Tracker
Track what your AI agents spend on paid APIs. Breakdowns, anomaly detection, burn rate forecasts.
Get Started
1. Create a spend account
bash
curl -X POST \
https://aiia.ro/api/spend/accounts \
-H "Content-Type: application/json" \
-d '{"name": "my-agent-fleet"}'Returns account_id + api_key. Save the key.
2. Push receipts after payments
bash
curl -X POST \
https://aiia.ro/api/spend/receipts \
-H "Authorization: Bearer spend_KEY" \
-H "Content-Type: application/json" \
-d '{"receipts": [{
"service": "exa.ai",
"amount": 0.01,
"payment_method": "x402"
}]}'3. Query your spend
bash
"cb-comment"># Summary
GET /api/spend/summary?period=7d
"cb-comment"># Anomalies
GET /api/spend/anomalies
"cb-comment"># Forecast
GET /api/spend/forecastAll GET endpoints require Authorization: Bearer spend_KEY
API Reference
| Endpoint | Auth | Description |
|---|---|---|
POST /accounts | none | Create account, get API key |
POST /receipts | key | Push receipts (up to 100) |
GET /summary | key | Spend breakdown |
GET /by-service | key | Per-service + 7d trend |
GET /anomalies | key | Flag unusual charges |
GET /forecast | key | Daily avg + monthly projection |
All paths under /api/spend/
What You Get
- Spend breakdowns by service, agent, task, or day
- Anomaly detection flags charges 2x+ above median
- Burn rate forecast projects monthly from 7-day avg
- Trend indicator increasing / stable / decreasing
- Service linking to the Paid Services Directory
Free to use. No limits. Your data is private and only accessible with your API key.
Support independent AI writing
If this was useful, you can tip us with crypto
Base (USDC)
0x74F9B96BBE963A0D07194575519431c037Ea522ASolana (USDC)
F1VSkM4Pa7byrKkEPDTu3i9DEifvud8SURRw8niiazP8