Skip to main content

Problem

You want to test whether a 20% markup or a flat $0.05/1K-token fee converts better, without changing your integration code.

Solution

Create two meters with different pricing, then include the appropriate meter slug in each user’s forward token based on their cohort.

Step 1: Create Two Meters in the Dashboard

In your Lava dashboard, go to Meters and create two meters with different pricing: Copy each meter’s secret and add them to your environment:

Step 2: Assign Cohorts

Route users to meters based on any criteria — random split, user ID hash, feature flag, etc.

Step 3: Generate Forward Tokens per Cohort

Step 4: Compare Results

Use metadata filters to compare cohort usage:
Meter slugs are safe to include in forward tokens on the client side — they only specify which pricing to apply and don’t grant access on their own.

Next Steps

Meters & Pricing

Full reference for fee structures, tiers, and billing basis options

Usage Analytics

Build dashboards to track experiment results