> ## Documentation Index
> Fetch the complete documentation index at: https://docs.weflayr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Margin

> Your revenue against your AI cost, per customer.

A customer is the `customer_name` your calls carry, and revenue comes from [Sync revenue](/product/sync-revenue). Both land on the same customer through that name.

<Frame>
  <video src="https://mintcdn.com/weflayr/jf99vD0W4dsGuj5S/images/product/ai-margin-scroll.mp4?fit=max&auto=format&n=jf99vD0W4dsGuj5S&q=85&s=a0025d52c83f55a7ea82daa66578eaf3" poster="/images/product/ai-margin-scroll-poster.jpg" aria-label="P&L per Customer page with revenue, cost and margin over time, then the customer table" controls loop muted playsInline preload="metadata" className="w-full rounded-xl" data-path="images/product/ai-margin-scroll.mp4" />
</Frame>

## Customer table

Each customer shows its revenue, AI cost, margin, gross margin, average cost per feature run, tokens, cost change month over month, and a **Status**: Healthy, Watch, At risk or Unprofitable. Set the margin thresholds behind each status from the gear icon on the Status column.

## Customer detail

Click a customer to see its revenue, cost and margin over time, its daily cost, and its cost by feature and by model.

<Frame>
  <video src="https://mintcdn.com/weflayr/jf99vD0W4dsGuj5S/images/product/ai-margin-customer-detail.mp4?fit=max&auto=format&n=jf99vD0W4dsGuj5S&q=85&s=0874d686cb38bc05993e7d8266a99e4f" poster="/images/product/ai-margin-customer-detail-poster.jpg" aria-label="Customer detail with revenue, cost and margin, cost per day, and cost by feature and by model" controls loop muted playsInline preload="metadata" className="w-full rounded-xl" data-path="images/product/ai-margin-customer-detail.mp4" />
</Frame>

## Internal projects: Performance

On an [internal project](/product/organizations-and-projects#internal-projects), this page is **Performance**: the cost of each user against the key metrics you track, such as meetings booked or tickets resolved.

<Frame>
  <video src="https://mintcdn.com/weflayr/jf99vD0W4dsGuj5S/images/product/performance-scroll.mp4?fit=max&auto=format&n=jf99vD0W4dsGuj5S&q=85&s=755cdbe6d76525277333d2307639df5f" poster="/images/product/performance-scroll-poster.jpg" aria-label="Performance per User page with a key metric against cost, then the user table" controls loop muted playsInline preload="metadata" className="w-full rounded-xl" data-path="images/product/performance-scroll.mp4" />
</Frame>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.