Guide
How to allocate AI and cloud costs to projects
If you build AI features for clients or side projects, your real cost is spread over chat subscriptions, API credits and the servers that run everything. Allocation turns that pile of invoices into a defensible number per project.
The short answer
Record each invoice at its full original amount, then give it an explicit percentage per project. Keep three buckets: direct AI costs, infrastructure, and unallocated overhead. Never let a tool infer the percentage for you; write down why you chose it.
1. Start from the real invoice
Record the gross amount exactly as invoiced: the Hetzner invoice total, the Google Cloud billing line, the API credit purchase. Allocation is a view on top of that number, not a replacement for it, so you can always reconcile with your bookkeeping.
2. Choose a percentage you can explain
- Direct AI: API credits bought for one client's feature are usually 100% that project.
- Infrastructure: a server that runs three projects might be split by CPU, by number of services or simply evenly. Pick one rule and keep it.
- Overhead: your personal ChatGPT or Cursor subscription often stays unallocated. It is a cost of doing business, not of one project.
A 0% allocation is a valid answer. It is better to leave a cost visibly unallocated than to spread it by guesswork.
Doing this for client work? See ModelTab for freelancers and small studios.
3. Review per month, per project
For each project, compare the raw costs you touched with the attributed amount. A large gap is a prompt to revisit the rule, not a mistake. Export the result as CSV for invoicing clients or for your accountant.
Doing this in ModelTab
Create a project, then add a cost manually or with Import cost. ModelTab reads Hetzner invoices (English or German) and a single pre-filtered Google Cloud billing row in your browser. Every imported cost starts at 0% allocation, so the decision stays yours. Exports that include account numbers, project IDs, server names or IP addresses are refused before anything is read into a draft.
Put your AI spend in one place.
No account, no card and no connected accounts. Free forever on your device; Plus adds encrypted backup and sync, and beta testers get it free.