Add /usage endpoint with token tracking, live balances, and cost calculations

This commit is contained in:
William Stuckey
2026-03-26 19:43:34 -05:00
parent be3dccbe10
commit e7fe5732b7
6 changed files with 462 additions and 4 deletions
+14
View File
@@ -11,5 +11,19 @@
"deepseek": {
"apiKey": "YOUR_DEEPSEEK_KEY"
}
},
"pricing": {
"anthropic": {
"inputPerMTok": 15,
"outputPerMTok": 75
},
"deepseek": {
"inputPerMTok": 0.27,
"outputPerMTok": 1.10
},
"zai": {
"type": "flat",
"monthlyCostUsd": 10
}
}
}