> ## 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.

# Margin: P&L per Customer

> The Margin page shows your revenue against your AI cost per customer.

A customer is the `customer_name` you stamp on your LLM calls when [propagating metadata](/quickstart#add-metadata-to-your-llm-calls-for-finer-analysis) in your instrumentation. Revenue comes from [Sync Revenue](/configure/sync-revenue).

<Frame>
  <video src="https://mintcdn.com/weflayr/-Mt-2Smg-srMobua/images/product/margin-scroll.mp4?fit=max&auto=format&n=-Mt-2Smg-srMobua&q=85&s=4eeb7376efacd7fbe68e6b2b6cbe73d4" poster="/images/product/margin-scroll-poster.jpg" aria-label="P&L per Customer page" controls loop muted playsInline preload="metadata" className="w-full rounded-xl" data-path="images/product/margin-scroll.mp4" />
</Frame>

## Per-feature breakdown

Expand a customer row to see which features drive that customer's cost:

<Frame>
  <img src="https://mintcdn.com/weflayr/swYZJQfBVJ4AL5hK/images/product/margin-expanded-row.png?fit=max&auto=format&n=swYZJQfBVJ4AL5hK&q=85&s=6fbd7a4d0fe104953d7b7fe9f1d05af7" alt="Customer row expanded with per feature costs" width="1568" height="708" data-path="images/product/margin-expanded-row.png" />
</Frame>

## Customer detail

Click a customer to open its detail view:

<Frame>
  <video src="https://mintcdn.com/weflayr/-Mt-2Smg-srMobua/images/product/margin-customer-detail-scroll.mp4?fit=max&auto=format&n=-Mt-2Smg-srMobua&q=85&s=6db0b182850b6b28facd7d8cdf59e3be" poster="/images/product/margin-customer-detail-scroll-poster.jpg" aria-label="Customer detail view" controls loop muted playsInline preload="metadata" className="w-full rounded-xl" data-path="images/product/margin-customer-detail-scroll.mp4" />
</Frame>

To compare features across all customers instead, head to the [Cost](/product/cost) page.
