Why Start With a Ledger
API aggregators (also called relay stations or proxy gateways) bundle credits from multiple model providers behind one OpenAI-compatible endpoint. After signup you typically receive several trial credits: some denominated in dollars, some in tokens, some bound to specific model aliases, with expiry ranging from a week to several months. The problem is rarely the size of the credits — it is that you do not know how much you actually have, when it expires, or which credit pool a given model alias really draws from. Credits expire before you notice, or you top up while unused credit sits idle.
A ledger has exactly three goals: see the total, reconcile consumption, and know expiry in advance.
Steps
Step 1: Inventory Your Credit Sources
Log into the gateway console and list every free/trial entry, recording at minimum:
- Credit ID (the console's ID or name)
- Unit (USD / tokens / requests)
- Scope (site-wide / single model alias / single group)
- Start and expiry dates
- Whether it is transferable (to sub-accounts or team members)
Most gateways expose this under Billing or Credits pages; if only an aggregate number is shown, reverse-engineer it from usage details.
Step 2: Build the Ledger Table
Create a table (Excel, Notion, Airtable — anything works) with columns: Credit ID, Source, Unit, Original Amount, Consumed, Remaining, Expiry Date, Bound Model Alias, Notes.
The critical column is Bound Model Alias. Aggregators use aliases for routing, and the same gpt-4o alias may point to different upstreams drawing from different credit pools. Skip this and reconciliation will never balance.
Step 3: Reconcile
Spend ten minutes a week: export last week's usage from the gateway, group by credit ID, and fill in the Consumed column. If the variance exceeds about 10%, investigate — common causes are alias routing changes or a shared credit pool.
The output is not the number itself but which credit is being quietly drained and which has sat untouched. Untouched credits should either be used soon or confirmed as transferable.
Step 4: Expiry Alerts
Add a Days Remaining column and color it with conditional formatting: yellow within 30 days, red within 7. Most spreadsheet tools compute this from a date without any code.
If the gateway offers an API, schedule a daily job to pull balances into the ledger and trigger reminders. Without an API, a weekly manual update is enough.
Step 5: Consume in Expiry Order
Before scaling up, sort a consumption order from nearest to farthest expiry: route soon-to-expire credits to batch jobs, evals, and data cleaning that can burn volume at once; keep long-dated credits for daily chat and debugging. This exhausts existing credit before you add any spend.
Caveats
- Terms change: trial rules, expiry, and available models on aggregators shift; mark each row with a "verified on" date and re-check periodically.
- Do not invent numbers: this article gives no specific amounts because they vary widely and change often — trust your console.
- Alias is not model: one alias may route to different upstreams; reconcile by credit ID, not model name.
- Shared accounts need attribution: when a team shares a gateway, add a User/Project column or reconciliation will always be short.
- Beware over-promising relays: stations advertising unlimited free or implausibly cheap access carry stability and compliance risk; prefer platforms with clear billing pages and queryable usage.
When to Use
- An individual developer has signed up for several aggregators and credits are scattered and expiring.
- A small team shares one or two gateway accounts and needs to know who is using what.
- You are about to scale or pay, and want to confirm whether free credit is exhausted and whether migration is worth it.
How This Differs From Routing Optimization
Routing work (alias mapping, failover) answers "where does the request go"; the ledger answers "how much is left and when does it expire." They complement each other: know your inventory first, then decide how to route.