tex.usage.today()
Tokens you’ve sent us today (UTC day).
Tokens we’ve returned to you today.
Daily ingress cap.
1_000_000 on the free tier.Daily egress cap.
5_000_000 on the free tier.Always
"day_utc".ISO 8601 timestamp at 00:00 UTC today.
ISO 8601 timestamp at 00:00 UTC tomorrow.
tex.usage.summary(month=None)
Calendar-month rollup, UTC.
"YYYY-MM". Omitted = current month.Always
"month".ISO 8601 timestamp of the first second of the month.
ISO 8601 timestamp of the first second of the next month.
Total ingress tokens for the month.
Total egress tokens for the month.
Patterns
-
Per-response usage is on every
rememberandrecall: -
Quota-aware routing - turn off non-essential memory paths past 90%:
Cache
usage.today()on your side for up to 60 seconds. Use it as a soft guard, not a strict limiter. -
Usage charts - call
summary(month="YYYY-MM")for each of the last 6 months and render the results in your charting library.
Next: Handle errors
Every exception class and how to handle it.

