How to Structure Your Chart of Accounts for AI Revenue and Costs

Learn how to structure a SaaS chart of accounts for AI revenue and costs, classify AI COGS, allocate inference costs, and track product gross margins.
Harshita Kala
|
December 4, 2026
|
1 min read
|
Reviewed by a Certified CPA

AI is changing how SaaS companies structure their chart of accounts. Alongside traditional subscriptions, businesses now generate revenue from AI features, token consumption, API calls, prepaid credits, and other usage-based models. These revenue streams bring a different cost structure, including model inference, API usage, and computing infrastructure that can vary with customer demand.

When companies record all AI revenue under general subscription accounts or group production costs with broader technology expenses, finance teams lose visibility into the economics of individual products. They may struggle to determine how much revenue AI features generate, what it costs to serve customers, and whether those products are profitable.

A well-designed chart of accounts separates these financial activities and gives teams a clearer view of AI revenue, costs, and gross margins.

How should SaaS companies structure a chart of accounts for AI revenue and costs?

AI is changing how SaaS companies structure a chart of accounts. Alongside traditional subscriptions, businesses now generate revenue from AI features, token consumption, API calls, prepaid credits, and other usage-based models. These revenue streams bring a different cost structure, including model inference, API usage, and computing infrastructure that can vary with customer demand.

When companies record all AI revenue under general subscription accounts or group production costs with broader technology expenses, finance teams lose visibility into the economics of individual products. They may struggle to determine how much revenue AI features generate, what it costs to serve customers, and whether those products are profitable.

A well-designed chart of accounts separates these financial activities and gives teams a clearer view of AI revenue, costs, and gross margins.

Separate AI revenue from core SaaS revenue, and split AI delivery costs from R&D and internal tools. A well-structured chart of accounts for a SaaS company makes these differences visible without creating a separate general ledger account for every product, model, or department.

The following is an illustrative structure. Account numbers should be adapted to the company’s existing accounting system and reporting requirements.

Account

Account name

Category

What it captures

4000

Core SaaS subscription revenue

Revenue

Recurring revenue from non-AI subscriptions

4010

AI subscription revenue

Revenue

Fixed fees for AI features or plans

4020

AI usage revenue

Revenue

Charges based on tokens, API calls, or compute consumption

2400

Deferred revenue – AI credits

Liability

Payments for prepaid AI credits that have not yet been recognized as revenue

5000

Core hosting costs

Cost of revenue

Infrastructure used to deliver core SaaS services

5010

AI inference costs

Cost of revenue

Model inference costs directly tied to customer usage

5020

AI compute costs

Cost of revenue

Production compute costs attributable to delivering AI services

6100

AI R&D

Operating expense

Research, experimentation, and development activities

Internal AI tools do not necessarily need a dedicated account. For example, an AI writing assistant used by the marketing team can be recorded under the company’s existing marketing expense account, while tools used by engineering can sit under engineering or R&D expenses. A department or cost-center dimension can provide additional visibility.

The distinction between cost of revenue and operating expense depends on what the spend supports. Inference and compute costs directly tied to serving customers generally belong in AI cost of revenue. Research, experimentation, and internal productivity tools are generally operating expenses, subject to the nature of the activity and the company’s accounting policy.

For prepaid AI credits, include a contract-liability account for amounts received before the related service is delivered. Zenskar’s guide to token-based pricing explains how prepaid credits and usage-based models affect billing and revenue recognition.

How should AI subscription revenue and usage-based revenue be categorized?

Classify AI revenue according to how customers pay and what the contract promises. The billing model helps determine the account where revenue is recorded, while the contract terms and applicable accounting guidance determine when it can be recognized.

  • AI subscription revenue: Fixed fees for ongoing access to AI features are generally recognized over the period the service is provided when the performance obligation is satisfied over time.
  • AI usage revenue: Fees based on tokens, API calls, or compute consumption depend on the contract. When the customer is charged for usage as the service is delivered, revenue may be recognized as that usage occurs. Other arrangements may require estimates of variable consideration.
  • Hybrid pricing revenue: Separate the fixed subscription component from usage fees and overages for reporting purposes. Minimum commitments, volume discounts, and tiered pricing can affect the transaction price and how it is allocated to performance obligations.
  • Prepaid AI credits: Payments received for unused credits are generally recorded as deferred revenue, a contract liability. The balance is released into revenue as the customer consumes the credits, subject to the contract terms and applicable guidance.

This distinction matters because the amount invoiced in a month may not equal the revenue recognized in that month. For example, a customer may pay $12,000 upfront for AI credits but consume only $3,000 worth of services in the first month. The remaining $9,000 generally stays in deferred revenue until consumed or otherwise accounted for under ASC 606.

Unused credits also need attention. If a company expects to be entitled to breakage and meets the relevant criteria, it may recognize expected breakage in proportion to customers’ exercise of their rights. If those criteria are not met, breakage is generally recognized only when the likelihood of further redemption becomes remote.

For AI businesses, this makes accurate usage records essential. The chart of accounts shows where revenue is classified, but contract terms and consumption data determine how much revenue can be recognized and when.

How should AI costs be allocated across products, customers, and departments?

Assign direct costs to the product or customer they support first, then allocate shared costs using a measure that reflects actual consumption. This gives finance teams a more reliable view of AI cost of revenue, product profitability, and customer-level economics.

Common AI cost categories include:

  • Production inference: Model API charges and inference costs incurred while processing customer requests. These are generally part of cost of revenue when directly tied to service delivery.
  • Compute and infrastructure: GPU usage, cloud compute, and hosting for production workloads. Attribute these costs to the relevant product or workload where possible.
  • Research and development: Experimentation, testing, and model development. These costs are generally operating expenses, although certain software development costs may qualify for capitalization.
  • Internal AI tools: Tools used by sales, marketing, finance, or engineering should generally be recorded under the relevant department’s operating expenses, rather than grouped with customer-facing production costs.

Shared infrastructure requires a consistent allocation method. For example, if a GPU cluster supports three AI products, finance could allocate its monthly cost based on each product’s share of total GPU hours. If Product A uses 50% of the cluster’s compute hours, Product B uses 30%, and Product C uses 20%, the costs could be allocated in the same proportions.

Where reliable compute-hour data is unavailable, inference requests may serve as a practical proxy, provided they reasonably reflect resource consumption. The allocation method should be documented and applied consistently. A simple request count may not be appropriate if different models or workloads consume significantly different amounts of compute.

Training costs also require judgment. Some model research and experimentation costs may be expensed as R&D under ASC 730. Certain costs related to developing internal-use software may qualify for capitalization under ASC 350-40, depending on the nature and stage of the project. The accounting treatment should be assessed based on the facts and confirmed with the company’s auditor. For cloud-based software arrangements, see Zenskar’s guide to accounting for cloud computing arrangements.

Should you create a separate GL account for every AI model or product?

No. A growing AI business needs detailed reporting, but that does not mean adding a new general ledger account every time it launches a model, product, or customer plan. Keep the chart of accounts focused on the nature of each transaction, and use reporting dimensions to capture the additional detail.

For example, record production inference costs in one account, such as 5010 – AI inference costs, then attach dimensions to identify:

  • Product: AI assistant, agent platform, or analytics feature
  • Customer: The account generating the usage
  • Model: The model or provider used
  • Department or cost center: The team responsible for the spend

This lets finance compare model costs, customer profitability, and product margins without multiplying GL accounts. The distinction is simple: the GL account tells you what the expense is; dimensions tell you where it belongs and what drove it.

For a SaaS company, the better approach is to maintain a manageable set of accounts and make important reporting dimensions mandatory during transaction coding. This provides granular reporting without making reconciliations, month-end close, and account maintenance harder than they need to be.

How do you report AI gross margin?

AI gross margin shows how much revenue remains after deducting the direct costs of delivering the service. In this article, “cost of revenue” and “COGS” refer to these direct delivery costs; the label used in financial statements should follow the company’s reporting framework and accounting policy.

Gross margin = (Revenue − COGS) ÷ Revenue × 100

For example, assume an AI product generates $100,000 in revenue and incurs $45,000 in COGS during a period.

Gross margin = ($100,000 − $45,000) ÷ $100,000 × 100 = 55%

The product’s gross margin is 55%. This is a hypothetical example, and the result depends on which expenses the company classifies as COGS.

Separating AI revenue and delivery costs helps finance teams assess:

  • AI product margins
  • Core SaaS versus AI margins
  • Customer-level profitability, where reliable cost attribution is available
  • Changes in usage and infrastructure costs
  • Whether pricing reflects the cost of serving customers

The classification of expenses matters. Not every AI-related expense automatically belongs in COGS. Production inference and directly attributable infrastructure may qualify, while research, experimentation, and internal AI tools are generally operating expenses. The treatment depends on the nature of the cost and the company’s accounting policy.

For products with significant and variable compute consumption, compute-adjusted gross margin can provide another useful view of the economics of delivering AI services. It helps teams look beyond conventional gross margin and understand how compute intensity affects product performance.

How can finance teams connect AI usage data to revenue and costs?

Connect usage records to customer, product, contract, and cost data so finance teams can trace what customers consume to what they are billed and what it costs to serve them. The chart of accounts provides the financial structure, but usage-level data adds the detail needed to understand AI product economics.

For each usage event, capture identifiers such as the customer, product, model, timestamp, and consumption volume. Link these records to contract terms, pricing rules, billing records, and relevant infrastructure costs. This helps finance teams identify discrepancies, investigate unexpected cost changes, and compare billed usage with actual consumption.

When these systems operate separately, inconsistent identifiers, missing events, or duplicated records can make reconciliation and cost allocation difficult.

Platforms such as Zenskar help AI businesses manage usage-based and hybrid pricing through usage metering capabilities, billing workflows, and revenue recognition. Each usage-based product maps to a performance obligation, and Zenskar generates deferred and earned revenue journal entries from usage and pushes them to the ERP. This connects usage and contract data with billing and revenue workflows, giving finance teams a clearer basis for reporting AI revenue and costs. 

How did Yembo connect usage, billing, and revenue recognition?

Yembo, an AI-powered platform for virtual surveys and inspections, faced a challenge familiar to usage-based SaaS businesses. Its pricing combined prepaid usage grants, postpaid overages, and separately billed managed surveys. Usage data, contracts, and invoices were spread across different systems, making billing and revenue recognition difficult to manage. Revenue recognition was also closely tied to invoice timing rather than actual customer consumption.

Zenskar connected Yembo’s application to its usage metering layer through an API and linked usage data with contract terms, billing, and revenue recognition. This allowed the team to automate usage monitoring, consolidate prepaid and postpaid charges, and recognize revenue based on actual usage rather than invoice timing.

The results included 90% less time spent on billing and revenue recognition and the elimination of revenue leakage. Zenskar also helped Yembo move monthly invoices from postpaid to prepaid billing, which enabled the company to collect 50% of its annual revenue a month earlier.

For AI businesses managing subscriptions, token consumption, prepaid credits, and variable delivery costs, connected usage and revenue workflows can make financial reporting more reliable as the business scales.

How often should companies review their chart of accounts for AI?

Review the chart of accounts whenever changes to AI products, pricing, or infrastructure affect how revenue and costs need to be classified. A structure that works for a fixed-fee AI product may not provide enough visibility once the company introduces token-based pricing, prepaid credits, new models, or more complex usage tiers.

Finance teams should periodically check whether:

  • New AI revenue streams need separate accounts for subscription fees, usage charges, or other pricing components.
  • Production inference and infrastructure costs are still classified consistently as cost of revenue.
  • Shared-cost allocation methods reflect actual resource consumption.
  • Reporting dimensions capture new products, customers, models, and departments without creating unnecessary GL accounts.
  • Prepaid credit balances and expired credits are being accounted for appropriately.

Document changes to account definitions, allocation methods, and reporting dimensions so that financial reporting remains consistent across periods. The goal is not to create a new account for every product or model, but to maintain a structure that reflects how the business earns revenue and incurs costs as it evolves.

How can a better chart of accounts improve visibility into AI economics?

A well-structured chart of accounts helps finance teams distinguish AI revenue from core SaaS revenue, identify the costs of delivering AI services, and understand how usage affects product margins. Combined with reliable contract, billing, and infrastructure data, it also makes revenue reporting and cost allocation easier to reconcile.

As AI pricing and delivery models evolve, finance teams need systems that can keep pace with changing usage and contract structures. Zenskar’s AI solution helps businesses manage usage-based billing and revenue workflows, giving finance teams better visibility into the financial impact of AI products.

Want to bring usage, billing, and revenue recognition into one workflow? Explore Zenskar’s AI solution or book a demo.

‍

Frequently asked questions

Make Zenskar your preferred source on Google.
Our revenue accounting guides show up higher in your results.
Add Zenskar as a preferred source on google
Add Zenskar as a preferred source on Google.
Build the future of finance with AI-native order-to-cash
Subscribe to keep up with the latest strategic finance content.
Thank you for subscribing to our newsletter
Book a Demo
Share

By automating recurring billing with Zenskar, our billing cycle – which previously took 7–9 days – now closes in 2 days, saving 16-20 hours/month.

Chirag Desai
CFO, Cyflare
Read case study
No items found.