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

# Usage-based billing

Stigg is the only solution that lets you manage entitlement access and enforce it in real time with low latency, and bill for usage, on a single platform.

A [metered feature](../../modeling-your-pricing-in-stigg/features/creating-features/metered-features) tracks how much of your application a customer consumes (API calls, tokens, seats) based on usage your application reports to Stigg.

On a contract, that same reported usage can also drive billing:

```mermaid theme={null}
flowchart LR
    A[Usage reported] --> B["Enforces the customer's<br/>usage limit"]
    A --> C["Becomes billed quantity<br/>on the invoice"]
```

Set up the same metered feature on both sides of the contract:

1. **Entitlement side**: create a subscription to the metered feature so Stigg starts [tracking the customer's usage](./setup-flow#entitlement-provisioning) against it.
2. **Billing side**: add that same metered feature as a line item when [setting up the billing contract](./setup-flow#billing-contract-set-up).

Once both are set up, every usage event reported to Stigg does both jobs at once: it counts against the entitlement, and it becomes billed quantity on the invoice.


## Related topics

- [Core concepts](/documentation/getting-started/core-concepts.md)
- [Auth0](/documentation/native-integrations/authentication/auth0.md)
- [Setting up a contract](/documentation/managing-customers-and-subscriptions/contracts/setup-flow.md)
- [Set up credits auto-recharge](/guides/i-want-to/set-up-credits-auto-recharge.md)
- [Overview](/documentation/managing-customers-and-subscriptions/contracts/overview.md)
