Tax documents and a calculator on a wooden table
Comparison · SaaS finance

The same model call can be COGS or opex

Two identical API calls, one made by a customer using the product and one made by an engineer testing it, belong in different places in the income statement.

Key Takeaways
  • The classification test is who triggers the cost and whether it is incurred to deliver the service to a customer.
  • Identical technical costs therefore land in different lines depending on context, which is normal rather than anomalous.
  • Misclassification distorts gross margin in both directions and is difficult to correct retrospectively.
  • The practical control is separation at the provider level, using distinct keys or projects, rather than allocation after the fact.
  • Consistency between periods matters more than the precise boundary, because investors read the trend.

Cost classification questions are usually dull, and this one matters because the answer moves gross margin, which is the number software companies are valued on.

The same model provider bill can contain customer facing inference, internal engineering usage, research experiments and employee productivity tools, all charged in the same currency at the same rates.

Whether a given dollar of that bill is cost of sales or operating expense depends entirely on context, and the context is not visible in the invoice. Nor is it visible in the accounting system afterwards, which is why the decision has to be made where the usage originates rather than where the cost lands.

Cost ClassificationSaaSGross MarginReportingControls
01

The test that actually applies

Cost of sales comprises costs incurred to deliver the product or service to customers. Operating expenses cover research, development, sales and administration. The same discipline applies to the revenue side, where consumption drives what is recognised, as usage based billing sets out.

Applied to model costs, the question becomes whether the call was made to serve a customer using the product, or for some other purpose.

A customer asking the product a question triggers a cost of delivery. An engineer running an evaluation, or an employee using an internal assistant, does not.

That is a straightforward test conceptually and it requires the underlying usage to be separable, which is the point made in isolating inference cost.

Overhead view of hands marking up financial documents
Two identical calls, two different lines in the income statement.
02

Four categories and where they usually land

These four cover most of what appears on a model provider invoice.

Customer triggered inference: Cost of sales, since it is incurred to deliver the service the customer is paying for.
Evaluation and testing: Generally research and development, since it supports building the product rather than running it.
Internal productivity use: Operating expense in the relevant function, in the same way as any other employee tool.
Fine tuning: Depends on purpose and on whether it is capitalisable, which is a judgement to take to your auditors rather than a default, alongside the wider cost picture.
03

Why allocation after the fact fails

The common approach is to take the total provider bill and allocate a percentage to cost of sales based on an estimate of customer facing usage.

That works once and degrades quickly, because the mix changes as the product develops and as internal usage grows, and nobody revisits the percentage.

It also cannot be evidenced. An auditor asking how the split was derived receives an estimate rather than a measurement, which is uncomfortable if the amount is material. Retaining the basis alongside the figures is what makes the position explainable a year later, which is the point of the document you cannot find.

Separation at source, using distinct API keys, projects or accounts per purpose, converts the estimate into a fact and costs almost nothing to implement early.


An allocation is an estimate that ages. Separate keys are a measurement that does not.
04

Comparing the two approaches

The difference in effort is small and the difference in defensibility is not.

AspectAllocate after the factSeparate at source
AccuracyAn estimate that reflects the mix at the time it was set.A measurement that reflects the current period.
EvidenceA rationale, which has to be defended each period.Provider level usage data, which speaks for itself.
EffortLow initially, and it requires periodic revision to stay reasonable.Small setup effort, then none.

Classification and any capitalisation of development or fine tuning costs depend on the applicable framework and your facts. Confirm the treatment with your auditors.

"

The invoice does not know whether a customer triggered the call. Your accounts have to.

ChatFin
05

Setting the boundary and holding it

Four steps, of which the first is the only one with any real cost.

Separate at the provider

Distinct keys or projects for customer facing, engineering, research and internal use, from the point the volume becomes material.

Write the boundary down

A short policy stating which categories fall where, so the decision is made once rather than each quarter.

Apply it consistently between periods

Because investors read the trend, and a boundary change without disclosure looks like a margin change.

Review when the product changes

A new feature can shift the mix materially, which is the same governance point as workflow changes when a model changes.

Hands holding papers during tax preparation
Separation at source turns an estimate into a measurement.
06

Two errors with opposite effects

Both are common and both distort the number investors focus on, and both make the margin comparison in close metrics that change behaviour unreliable.

Error

Everything in operating expense

Customer facing inference classified as infrastructure or research, which overstates gross margin and understates the cost of delivery.

Error

Everything in cost of sales

Internal and research usage swept into cost of sales, which understates gross margin and makes the product look less viable than it is.

07

Where ChatFin fits on classification

The classification is a judgement for your team. Applying it consistently across periods and reporting the result is where we contribute.

Applies your boundary consistently: Provider usage mapped to your defined categories each period, with the mapping visible rather than embedded in a formula.
Flags mix changes: Where the proportion of customer facing usage moves materially, it is surfaced rather than discovered in a margin review.
Prepares the entries: Cost allocations prepared for approval before posting to NetSuite, SAP Business One, JD Edwards, Acumatica, Dynamics 365 or Sage Intacct.

The boundary itself, and any capitalisation judgement, remain decisions for your team and your auditors.

Free tool

AI Cost Estimator for the CFO Office

Four inputs. A first year range, a timeline, and three delivery models compared. No login required.

Frequently Asked Questions

What determines the classification?

Whether the cost is incurred to deliver the service to a customer. A call triggered by a customer using the product is generally cost of sales. Calls made for engineering, evaluation, research or internal productivity generally are not, and the technology involved is irrelevant to the answer.

Can we allocate a percentage instead of separating usage?

You can, and it becomes harder to defend as the amounts grow and the mix changes. Allocation is an estimate that ages and has to be revisited. Separate keys or projects at the provider give you a measurement that does not require a rationale.

How should fine tuning be treated?

It depends on the purpose and on whether any development cost capitalisation criteria are met under your framework. It is a judgement rather than a default, and it is worth agreeing with your auditors before the amounts become material.

Does the boundary matter more than the accuracy?

Consistency matters most. Investors read the trend in gross margin, so a boundary change between periods looks like a change in economics unless it is explained. Set the boundary, document it and apply it the same way each period.

Separate at the source

The invoice cannot tell you the answer. Your setup can.

Distinct provider keys per purpose, a written boundary and consistent application between periods removes both the estimation and the argument.

If you want a first year range for consistent cost allocation and margin reporting, the estimator will produce one before any scoping. The practical test is whether someone outside the team could reach the same answer from the records you keep, which is usually a stricter standard than the one applied internally.

Open the estimator
Book a Demo
Put it on your own numbers

See what this looks like in your ERP.

We will walk through the workflow behind this article on the system you already run, using your own data, and show what a first phase would actually cover.

✓Runs on the ERP you already have, on the version you already run
✓Every action prepared as a draft that a person approves before it posts
✓A first phase scoped against your real workflows, not a generic package
Schedule a Demo
Confidential & private

This article is general information for finance and accounting teams. It is not legal, tax, accounting or investment advice. Dates and thresholds are given as published at the time of writing and several of these timelines have moved before, so confirm the current position with your advisers and with the relevant authority before acting.

Photos by RDNE Stock project, free to use under the Pexels License (commercial use, no attribution required).