speko.usage.
Signature
Returns — UsageSummary
Total cost in USD over the range.
Per-provider rollup — see below.
Current organization balance in micro-USD (
1_000_000 µ$ = $1), serialized as string so values beyond 2^53 survive JSON. Use int(summary.balance_micro_usd) when you need to do math.Same balance, pre-divided for display convenience.
UsageByProvider
Modality.
Billable unit (e.g.
minutes, characters, tokens).BYOK = customer key, no Speko margin. MANAGED = platform key, billed to the org.Cost in USD for this row.