Replicate Mistral’s per-token pricing model with Lago.
Models | Input | Output |
---|---|---|
mistral-small | $1 / 1M tokens | $3 / 1M tokens |
mistral-medium | $2.7 / 1M tokens | $8.1 / 1M tokens |
mistral-large | $4 / 1M tokens | $12 / 1M tokens |
Set up Lago
Create a billable metric
code
for your billable metricaggregation_type
to sum_agg
field_name
to tokens
recurring
to false
filters
to distinguish between models and token typesCreate a plan
code
for your plancharges
, configure pricing tiers for different models and token typesCreate a customer
Prepay usage with credits
external_customer_id
,
set the wallet currency
and rate_amount
for credit conversioncode
.Ingest usage via events
code
external_subscription_id
properties
Monitor current usage