DocumentationMetered usage
AI spend
AI spend by invoicer, vendor, model and meter, checked against purchase orders, contracts, budgets and limits.
AI spend is what the AI services on your connected cloud billing cost: Amazon Bedrock, SageMaker, Vertex AI, Azure OpenAI, OCI Generative AI and the marketplace models on the same invoice. Pleaxy shows it by invoicer, vendor, model and meter (input, output and cached tokens, provisioned hours), month to date and forecast for the period, against the last closed month, and beside each invoicer the open purchase order lines raised to it and what is left on them - so you know that Bedrock will cost more than PO-8842 has left before the invoice does. Every amount is in the invoicer's billing currency, never converted or summed across currencies.
- The supplier is whoever invoices. The company whose model was used is the
vendoron the line. Claude on Bedrock is AWS spend with vendoranthropic, never Anthropic spend, so grouping by invoicer matches your invoices and grouping by vendor answers what you spend on Claude wherever it is billed. Nothing is counted twice. - Where it comes from - the AI service lines on your connected AWS, Google Cloud, Azure and OCI billing, read through the same read-only access as the rest of the bill and under the same data-source choice: a connection that allows
current_costgives the month to date and a forecast, one that allowsinvoicesthe closed month. AWS gives its AI lines through Cost Explorer only, so an AWS account needscurrent_costfor them, and then shows the closed month too. Nothing new is asked of your account, and a usage type Pleaxy doesn't know yet is kept with its raw name, never dropped. - Rate cards - Pleaxy keeps the public list prices of every vendor and invoicer it maps, with effective dates: a price change is a new entry, so a line is judged against the price that applied on its day. A contract's negotiated rate or discount off list overrides them; the rate cards themselves can't be edited.
In the API, AI spend is a buyer-only resource: GetAiSpend for the figures by invoicer, vendor, model or cost center, ListAiUsageLines for the lines behind them, ListAiRateCards for the price in force on a day, and CheckAiSpend for whether the forecast fits the open purchase order lines and the budget. The MCP server exposes the same as get_ai_spend and check_ai_spend (see AI agents).
Beyond your cloud billing, AI spend covers the AI providers you pay directly, the AI lines on your orders and invoices, cost centers and limits at the provider:
- Direct AI providers - OpenAI and Anthropic connect with a read-only admin key you create in their console and can revoke; Mistral too, where your organization has its Admin API (an Enterprise feature). OpenRouter connects with a management key, CoreWeave with an API token with the Billing Viewer role and Databricks with a service principal; for Snowflake, Pleaxy generates a key pair and you assign its public key to a service user. GitHub connects with an organization owner's personal access token and the organization's name: Pleaxy reads Copilot's billing usage and records each month's active seats for the seat check. The key is checked with one read before it is saved, stored encrypted and never used to change anything at the provider. Each provider's lines are read daily and show as their own invoicer (ListAiProviders, CreateAiProvider).
- AI invoices matched line by line - an AI line on an order, a contract term or an invoice names its model and meter, and each invoice line is held to the order line and contract term for that model: its rate against the contract and the month's list price, its quantity against the usage the provider reported, and what it draws on a commitment. Lines are never matched by description. SuggestAiPoLines prefills an order's AI lines from last month's usage, and ListAiCommitments shows what each commitment has used.
- Cost centers and budgets - attribution rules map providers' tags, labels, projects and workspaces to cost centers (GetAiAttribution). Each budget then counts the month's attributed AI usage as accruing, and Pleaxy alerts when the forecast reaches 80% or 100% of it (ListAiCostCenters).
- Limits at the provider - opt-in. An approved order line can set the provider's own monthly ceiling: an AWS budget, an OpenAI project limit, an Anthropic workspace limit where Anthropic offers it on your account, a Google Cloud budget or spend cap, or an Azure budget, which only alerts. It takes a separate credential you create, never the read-only connection's (SetAiSpendLimit).
- Seat-based AI - per-seat invoices for ChatGPT Enterprise, Claude Enterprise, Microsoft 365 Copilot, GitHub Copilot and Cursor are checked against the active users recorded for the month (SetAiSeatCount). A connected GitHub or Cursor account records its count from the admin console each month; for the others, a person, a script or an agent records it.