# Deal pricing

Test a price, cap or allowance against the AI cost of the usage it would cover, decide it once, compare an approved deal with actuals and get drift alerts.

AI Spendbook documentation, Finance. Web page: https://www.aispendbook.com/docs/deal-pricing

The deal evaluator compares a proposed price with the AI cost of the usage it would cover. A deal is priced in requests, minutes, conversations or resolutions. Analysts can evaluate a deal; admins and finance editors can save and decide one. Deals are closed to members who cannot see revenue and to members limited to projects.

- Graduated tiers above the included units can replace one overage price. Ramps change the flat fee, included units, discount or usage from a contract month on.
- Templates fill standard terms. Approval thresholds (minimum AI contribution %, maximum discount %) are shown above the form, and each result says Needs approval with the reasons or Within the approval thresholds. Thresholds and room before loss are checked on every contract month and on the whole contract: a ramp that makes later months lose money needs approval and has no room, and the result names the first losing month, how many months lose money and the lowest monthly margin. Break-even and loss points use the first month's terms.
- What this customer costs us in AI shows last month's allocated AI cost, non-token cost, revenue, AI contribution, the contract and this month's allowance use. See [gross margin and contracts](https://www.aispendbook.com/docs/margin-and-contracts).

## Usage

- **From a customer**: the customer's usage in the last complete calendar month, with its tokens re-priced at today's price sheet and scaled by a growth multiplier. If the customer has no usage in that month, enter assumptions instead.
- **From assumptions**: requests per month, input and output tokens per request, and a model from the pricing catalog. No caching is assumed.

## Revenue

```text
billable = min(units, billable units cap)
gross    = flat fee + seat price x seats + max(0, billable - included units) x overage price
revenue  = min(gross x (1 - discount), revenue cap)
```

The discount applies to the flat fee, seats and overage. The revenue cap applies after the discount. Usage above the billable cap is served but not billed.

## Result

| Figure | Meaning |
| --- | --- |
| AI cost | The monthly usage priced at the price sheet in force today, using the workspace's contract rates where they exist. It is an estimate, not a provider bill. |
| AI contribution | Revenue minus AI cost and non-token cost. It is not gross margin. |
| Margin % | AI contribution divided by revenue. |
| Break-even units | The monthly usage above which the deal first loses money. |
| Loss points | Each usage level above which the deal loses money, with the cause: flat price, overage below cost, billable usage cap or revenue cap. |

- Usage and cost per request are held constant for every month of the contract. Later price changes are not modelled.
- Break-even and loss figures assume every request costs the same as in the monthly usage above.
- A model with no price sheet in force today keeps its cost as recorded for the month, and the result says so.

## What the price sheet does not cover

AI cost here is tokens times the price sheet. Audio and image tokens, and flex and priority usage, are priced at their own rates where the model's price sheet has them. Where it has no rate for a tier or token type a record reports, those tokens are priced at the standard text rate and the record is marked as a partial estimate. Regional and data-residency uplifts, dedicated or provisioned throughput, and non-token units such as tool calls are not priced; they reach spend only through provider bills.

## Saved deals and decisions

- A saved deal stores the inputs, the result and the price sheet date as evaluated. It is never edited or re-priced.
- An admin can approve or reject a saved deal once, with a note. The decision is recorded in the audit log.
- A deal that has not been decided can be deleted. A decided deal cannot be changed, decided again or deleted.

## Approved deals against actuals

- This applies to an approved deal that was priced from a customer's usage. A deal priced from assumptions has no customer to compare with.
- Each complete calendar month after the month of approval, up to the contract length, is compared with the modelled month: requests, AI cost and revenue. Variance is actual minus modelled.
- Actual AI cost and revenue are the customer's row of customer margin for the month, so the two pages agree. When the customer has no margin row, the request telemetry estimate is used and labelled as such.
- A month with no revenue record for the customer has no revenue variance.

## Deal drift alerts

- Each day, every approved customer deal's latest complete month is compared with what it assumed. It is flagged when volume is off by 25% either way, cost per unit is 20% or more higher, or margin is 10 or more points lower. Margin needs revenue for that month.
- The Deals page lists drifting deals with the cause. Admins can change or turn off each threshold.
- The deal's owner gets one alert per deal per month by email, as do the customer's account owner and any Slack, Teams or webhook channels chosen for Deal drift in alert routing.
