# How to accrue AI API costs at month end

Accrue AI API cost for every day the invoice does not cover yet: billed-to-date from the provider's cost report plus a usage estimate for unbilled days. Reverse or true up when the invoice arrives, book later provider corrections as a change in estimate, and give prepaid credits and commitment shortfalls their own entries.

**Key takeaways**

- The accrual is billed-to-date from the provider's cost report plus priced usage for the days not yet billed.
- Credit the billed part to accounts payable and the estimated part to accrued liabilities, then reverse or true up when the invoice arrives.
- Small provider corrections to a closed month are usually a change in estimate booked in the open month, not a restatement.
- Usage drawn from a paid prepaid balance reduces a prepaid asset; free credits usually have no entry at all.
- Accrue an expected commitment shortfall once paying it is probable and the amount can be estimated, and revisit it monthly.

Published 2026-11-14, updated 2026-11-29, by AI Spendbook. Web page: https://www.aispendbook.com/blog/accrue-ai-api-costs

AI providers bill in arrears or draw down a prepaid balance, and their invoices often arrive days after the month ends. The gap between the two is the difference between [billed spend](https://www.aispendbook.com/glossary/billed-spend) and [estimated spend](https://www.aispendbook.com/glossary/estimated-spend). Their cost reports also lag: the last day or two of the month is usually still moving when the books close. The usual answer is the same as for any usage-based vendor: accrue what you owe from the best evidence you have, then compare it with the invoice.

> This guide describes common practice, not accounting advice. How your company treats credits, commitments and corrections is a decision for you and your accountant or auditor.

## How do you accrue AI API costs before the invoice arrives?

1. **Billed to date.** The provider's cost report or billing export for the days it has finalised. OpenAI and Anthropic both publish daily cost through an admin API; Gemini cost arrives through the Cloud Billing export. This is the strongest evidence short of the invoice.
2. **Estimate for unbilled days.** For days after the last complete billing day, price provider-reported usage at your rates, or price your own request telemetry if the provider reports nothing yet. Label it as an estimate.
3. **Known non-token charges.** Web search, code execution, storage or fine-tuning appear on the invoice but not in token counts. Add them from the cost report, or from last month's run rate if they are not reported yet.

Keep the method the same every month and write it down. An auditor cares less about which method you pick than about whether it is applied consistently and checked against the invoice afterwards. The [close guide](https://www.aispendbook.com/blog/close-ai-spend) covers the coverage checks that come first.

The estimate for unbilled days is a simple product of usage and rate. Illustrative numbers: on each of October 30 and 31 the provider's usage report shows 400 million uncached input tokens and 45 million output tokens. At a contract rate of $2.50 per million input tokens and $10 per million output tokens, one day costs 400 x $2.50 + 45 x $10 = $1,000 + $450 = $1,450, so the two days come to $2,900. Price cached input and batch traffic at their own rates, or the estimate runs high.

```
unbilled-day estimate = sum over token types of (tokens in millions x your rate per million for that type)
```

## Worked example: accrual and true-up

Illustrative numbers. On November 1 the October invoice from one provider has not arrived. Its cost report is final through October 29 and shows $41,200. Usage for October 30 and 31, priced at your contract rates, comes to $2,900. The October accrual is $41,200 + $2,900 = $44,100.

| Date | Entry | Debit | Credit |
| --- | --- | --- | --- |
| Oct 31 | AI cost (split by class) / Accrued liabilities | $44,100 | $44,100 |
| Nov 1 | Reverse the accrual | Accrued liabilities $44,100 | AI cost $44,100 |
| Nov 4 | Invoice arrives for $44,350: AI cost / Accounts payable | $44,350 | $44,350 |

*Example figures, not real provider data. The $250 difference lands in November as a change in estimate.*

The $250 gap here came from a tool charge that the usage estimate could not see. Record the cause. If the same cause shows up every month, add it to the estimate method instead of explaining it again. The debit side goes to cost of revenue, R&D or opex by your [split rules](https://www.aispendbook.com/blog/ai-spend-cogs-or-rnd), using the same rules for the accrual and the invoice.

## What if a provider corrects last month's bill after the books close?

Providers [revise recent days](https://www.aispendbook.com/glossary/provider-revision): late usage arrives, a refund is applied, a billing error is fixed. If October is already closed when October 30 changes, you have two options, and the size of the change decides which one applies.

- **Change in estimate.** Most corrections are small and simply replace an estimate with a better number. They are booked in the current period. Under IFRS, IAS 8 recognises a change in estimate prospectively, in the period of the change.
- **Error.** A correction that is material to the prior period is a different case. IAS 8 corrects material prior period errors retrospectively by restating comparatives, and US GAAP has its own rules for error corrections. Talk to your auditor before restating anything.

Either way, do not edit the closed numbers in place. Keep the closed figure, record the difference beside it with a cause, and book the difference in the open month. In AI Spendbook's [month-end close](https://www.aispendbook.com/docs/month-end-close), a closed period's snapshot is never rewritten: a later provider change appears as drift, and a post-close change variance is recorded per provider for you to explain.

## How are prepaid and promotional AI credits accounted for?

| Event | Common treatment |
| --- | --- |
| You pay $50,000 up front for a prepaid balance | Prepaid expense $50,000 / Cash $50,000 |
| Usage draws the balance down by $12,000 in a month | AI cost $12,000 / Prepaid expense $12,000 |
| $3,000 of the paid balance expires unused | AI cost or other expense $3,000 / Prepaid expense $3,000, in the month it expires |
| A provider or cloud program grants free credits | Often no entry, because nothing was paid; usage covered by the grant has no cash cost. Track the grant outside the ledger so the cash step-up is planned |
| Free credits expire unused | No entry in most cases, since no asset was recorded |

*Example amounts. Some companies present free credits gross; confirm the approach with your accountant.*

The trap with free credits is counting them twice. Some providers deduct a credit before they bill, so the cost report is already net. Applying the grant again makes cost look lower than it is. The [credits guide](https://www.aispendbook.com/blog/track-ai-credits-commitments) explains how to mark those grants, and the [AI credit runway calculator](https://www.aispendbook.com/tools/ai-credit-runway-calculator) shows the month a balance runs out and how much would expire unused. In AI Spendbook's month-end journal, credits and prepaid balances drawn down in the month credit a **prepaid asset account** instead of accounts payable; grants marked as already netted in the provider bill are never drawn down, so they never reach the journal. The cash paid to buy a prepaid balance is not in that journal, and there is no prepaid roll-forward yet.

## How do you accrue a minimum commitment shortfall?

A commitment is a promise to spend an amount over a window, usually for a discount. If spend is behind the pace needed and you expect to pay the difference, the shortfall is a cost of the period, not a surprise at the end of the contract.

Illustrative numbers: a $600,000 twelve-month commitment, $380,000 spent after nine months, and a projection of $510,000 by month twelve at the current pace. The expected shortfall is $90,000. Many teams accrue an expected shortfall once paying it is probable and the amount can be estimated, and revisit the estimate monthly as the pace changes. Under IFRS, IAS 37 covers provisions and onerous contracts; under US GAAP, agree with your auditor which guidance applies to your contract.

```
expected shortfall = committed amount - (spend to date + projected spend for the rest of the window)
```

AI Spendbook's [credits and commitments](https://www.aispendbook.com/docs/credits-and-commitments) page projects the shortfall at each true-up date from spend so far and the last 30 days' pace, with rollover between periods, and the month-end journal can accrue the current period's share of it when you turn that on.

## How do auditors test AI cost accruals?

- **Completeness.** A list of every provider account and API key owner, checked against what was accrued. Untracked traffic on a forgotten account is the most common gap.
- **Cut-off.** Providers report in UTC days. A cost report read in another time zone can move a day's spend across the month boundary.
- **Accuracy of past accruals.** A lookback comparing each month's accrual with the invoice that followed, with a threshold that triggers a review of the method.
- **Consistency of the split.** Written rules for what is cost of revenue and what is R&D, approved once and changed only with a note.
- **Who can change what.** Read-only keys for cost reports, and a record of who signed off each month.

For a usage-based vendor these become controls: a monthly provider list review, the lookback, an approved split and a signed close. AI Spendbook keeps the close report as a CSV, records the sign-off (with an optional rule that the person who signs off did not prepare the month), stores a SHA-256 hash of the closed journal file, keeps a hash-chained audit log you can export and check, and can share one closed period through a read-only link that expires. The [close controls page](https://www.aispendbook.com/docs/close-controls) lists each one, and the [close guide](https://www.aispendbook.com/blog/close-ai-spend) maps them to completeness, cut-off, accuracy and approval tests. Those help with the evidence; whether the controls are designed and operating well is for you and your auditor to judge.

## What are common mistakes when accruing AI API costs?

- **Pricing the estimate at list prices.** Contract discounts, cached input and batch pricing all lower the real rate, so a list-price estimate overstates the accrual and the true-up always runs the same way.
- **Reading the cost report in local time.** Providers report UTC days. A report read in Pacific time moves part of the last day into the wrong month.
- **Applying a credit the bill already nets out.** If the provider deducts a grant before billing, subtracting it again understates cost.
- **Adding a late bill on top of the closed figure.** The late bill replaces the estimate for those days; book only the difference.
- **Forgetting non-token charges.** Web search, code execution, storage and fine-tuning are on the invoice but not in token counts.
- **Changing the method every month.** A consistent method that is checked against the invoice is easier to defend than a clever one that changes.

### When is an AI cost accrual not worth booking?

If the provider's invoice for the month arrives before your books close, book the invoice and skip the accrual. If total AI API spend is below the materiality threshold your company uses for other accruals, many teams expense it when invoiced under that same policy. Write the decision down, and revisit it when AI spend grows, because usage-based AI cost often grows faster than other vendor costs.

## Related questions

### Should LLM costs be capitalised as internal-use software?

Usage that serves customers or runs the business is an operating cost. Model spend while building internal-use software is a judgment for your accountant. Under US GAAP, ASC 350-40 governs internal-use software, and ASU 2025-06, issued in September 2025, replaces the project-stage model with a threshold based on management authorising and committing to funding the project and the project being probable to complete. It is effective for annual periods beginning after December 15, 2027.

### How do I get the AI accrual entry into NetSuite or QuickBooks?

AI Spendbook builds the month-end journal from its [accounting split](https://www.aispendbook.com/docs/accounting): one debit line per accounting class, and each provider credited in up to three parts (the billed part to accounts payable, the part still on an estimate to accrued liabilities, credits drawn down to the prepaid asset), with an optional reversing entry dated the first day of the next month. You can download it in the import layout of NetSuite, QuickBooks Online, Xero, Sage Intacct or Dynamics 365 Business Central, or, once the month is closed, an admin can post it through the [NetSuite](https://www.aispendbook.com/integrations/netsuite) or [QuickBooks Online](https://www.aispendbook.com/integrations/quickbooks-online) connector after a dry-run preview. Business Central lines are added to a journal batch for someone to post there, and QuickBooks and Xero need a refresh token obtained outside the product. The connectors are built from each vendor's public API documentation and tested with recorded responses, not yet against a live account, so check the first posting. The [ERP journal guide](https://www.aispendbook.com/blog/ai-spend-journal-entry-erp) walks through the setup.

### How do you accrue AI costs for subsidiaries in other currencies?

Providers bill AI APIs in US dollars, so the accrual starts in USD and translation is a reporting step. AI Spendbook stores every amount in USD and can report in another currency using dated rates: your own month-end and monthly average rates first, then the ECB euro reference rates. A workspace can also list [entities](https://www.aispendbook.com/docs/currency-and-entities) with a functional currency and an ERP subsidiary ID; rules send each provider account, project or customer to an entity, and the journal is split so each entity's lines balance and carry its subsidiary. Journal amounts are still posted in USD (a NetSuite subsidiary must use USD for posting), so translation for consolidation stays in your ledger.

## Sources

- [IAS 8 on the IFRS Foundation site](https://www.ifrs.org/issued-standards/list-of-standards/ias-8-accounting-policies-changes-in-accounting-estimates-and-errors/): changes in estimates and corrections of errors.
- [IAS 37 on the IFRS Foundation site](https://www.ifrs.org/issued-standards/list-of-standards/ias-37-provisions-contingent-liabilities-and-contingent-assets/): provisions and onerous contracts.
- [Deloitte on ASU 2025-06](https://dart.deloitte.com/USDART/home/publications/deloitte/heads-up/2025/fasb-asu-amends-software-costs-guidance): the September 2025 amendments to the software cost guidance.
- [Anthropic usage and cost reports](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) and [OpenAI's Costs API](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/usage/methods/costs): where billed-to-date figures come from.

## Frequently asked questions

### Should the AI cost accrual be reversed on the first day of the next month?

Many teams reverse it on day one and book the invoice when it arrives, so the difference lands in the new month as a change in estimate. Others true up the accrual in place. Either works if it is applied the same way every month.

### Which accounts does the month-end AI cost accrual credit?

Usually accounts payable for the days the provider has already billed, accrued liabilities for days still on an estimate, and a prepaid asset for credits or prepaid balance drawn down. The debit side goes to cost of revenue, R&D or opex by your split rules.

### How big is the gap between an AI accrual and the invoice usually?

There is no published benchmark. Measure your own: compare each month's accrual with the invoice that followed and set a threshold, such as one percent, that triggers a review of the estimate method when it is crossed.

### Is an unused minimum commitment an accrual or a loss at contract end?

If spend is running behind the committed amount and paying the shortfall is probable and estimable, many teams accrue the expected shortfall monthly rather than wait for the contract end. Agree the guidance with your auditor first.
