AI companies
Know what to invoicewhen the month closes
Fund a wallet with each customer's token allowance. Deduct as they use the model. At month end, the overage is the invoice.
Using Blnk has been working great so far. Since we launched our AI product, there hasn't been a problem since.
const response = await blnk.Transactions.createBulk({ atomic: true, transactions: [ { precise_amount: 842163, precision: 1, currency: 'TOK', source: 'bal_maya_chen', destination: '@TokenUsage', reference: 'ref_tok_maya', description: 'GPT-4o token usage', meta_data: { model: 'gpt-4o' } }, { precise_amount: 3369, precision: 1000000, currency: 'USD', source: 'bal_maya_chen', destination: '@RevenueUSD', reference: 'ref_usd_maya', description: 'GPT-4o usage cost' } ],}); result, resp, err := client.Transaction.CreateBulk( blnkgo.CreateBulkTransactionRequest{ Atomic: true, Transactions: []blnkgo.CreateTransactionRequest{ { ParentTransaction: blnkgo.ParentTransaction{ PreciseAmount: big.NewInt(842163), Precision: 1, Currency: "TOK", Source: "bal_maya_chen", Destination: "@TokenUsage", Reference: "ref_tok_maya", Description: "GPT-4o token usage", MetaData: map[string]interface{}{ "model": "gpt-4o" }, }, }, { ParentTransaction: blnkgo.ParentTransaction{ PreciseAmount: big.NewInt(3369), Precision: 1000000, Currency: "USD", Source: "bal_maya_chen", Destination: "@RevenueUSD", Reference: "ref_usd_maya", Description: "GPT-4o usage cost", }, } }, },) response = blnk.transactions.create_bulk({ "atomic": True, "transactions": [ { "precise_amount": 842163, "precision": 1, "currency": "TOK", "source": "bal_maya_chen", "destination": "@TokenUsage", "reference": "ref_tok_maya", "description": "GPT-4o token usage", "meta_data": { "model": "gpt-4o" } }, { "precise_amount": 3369, "precision": 1000000, "currency": "USD", "source": "bal_maya_chen", "destination": "@RevenueUSD", "reference": "ref_usd_maya", "description": "GPT-4o usage cost" } ],}) ApiResponse<JsonNode> response = blnk.transactions().createBulk( CreateBulkTransactions.create() .atomic(true) .transactions(List.of( CreateTransactions.create() .preciseAmount(842163) .precision(1) .currency("TOK") .source("bal_maya_chen") .destination("@TokenUsage") .reference("ref_tok_maya") .description("GPT-4o token usage") .metaData(Map.of("model", "gpt-4o")), CreateTransactions.create() .preciseAmount(3369) .precision(1000000) .currency("USD") .source("bal_maya_chen") .destination("@RevenueUSD") .reference("ref_usd_maya") .description("GPT-4o usage cost") ))); Record token usage and dollar cost atomically.
Fund each customer wallet with the monthly token allowance and the USD cost. Deduct as they use the model, per token. Reset what remains at the end of the period.
MC Maya Chen
Invoice from Acme AI
$123.39
Due Sep 30, 2026
Download invoice
- To
- Maya Chen
- From
- Acme AI
- Memo
- Token overage for September.
Know exactly how much overage to charge per month
Usage past the allowance posts as an overdraft. Cap it if you need a limit. At month end, that overdraft is what you invoice.
Billing overview
Token usage
10.44M
Estimated cost
$208.50
Usage by model
Usage breakdown
| Model | Usage | Cost |
|---|---|---|
| Grok 4.6 | 980,200 | $19.60 |
| Kimi K3 | 612,400 | $12.25 |
| Gemini 2.5 | 820,100 | $16.40 |
| Sonnet 5 | 1,720,300 | $34.41 |
| Opus 5 | 2,650,800 | $53.02 |
| GPT-5.6 Sol | 3,642,900 | $72.86 |
Get model breakdown per user for transaction history.
Each model's usage posts against the same wallet. Retrieve that history and show the customer what they used, per model.
Create your Cloud account
Sign up to Blnk Cloud, deploy a sandbox, and start building in minutes.
Create your account