Feature
What is a Feature?
A Feature is a product feature defined as part of your product catalog. Features are used to define the entitlements for your APIs and services. For example:
Feature | Plan 1 | Plan 2 |
---|---|---|
Feature 1: Seats | 5 | 25 |
Feature 2: Emails | 1,000 /m | 100,000 /m |
Feature 3: Tokens | 10,000 /m | 1,000,000 /m |
Features with usage limits
Features can have usage limits. For example, you can define a feature with a limit of 1,000 emails per month. When the subject exceeds the limit, the system can enforce a rate limit or block the subject from using the feature. Limits are also useful for upselling. For example, you can message the customer to upgrade to a higher plan when they reach the limit.
To define a feature with a limit, use Ledger to grant usage credits to the subject.
Properties
A feature has the following properties:
Property | Description |
---|---|
Name | A human-readable name for the feature. |
Meter | A meter to measure the usage of the feature. |
Meter Group By Filter | To filter for a subset of usage in the meter. |
Examples
Here is an example of a feature:
GPT-4 Tokens
The feature GPT-4 Tokens is used to grant tokens for the GPT-4 API.
Property | Value |
---|---|
Name | GPT-4 Tokens |
Meter | tokens_total |
Meter Group By Filter | model=gpt-4 |
Emails
The feature Email Quota is used to grant email quotas.
Property | Value |
---|---|
Name | Email Quota |
Meter | emails_total |
Meter Group By Filter | None |