Pricing structure
For one of its products, Algolia Search, the platform offers its customers to subscribe for free and only pay based on usage.Model | Search API |
---|---|
Monthly price | $1.50 / 1,000 requests |
Free usage (each month) | 10,000 requests |
Get started
1
Set up Lago
2
Create billable metrics
Create billable metrics to track request usage for Search and Recommend APIs.
- Set the
aggregation_type
tosum_agg
to sum all request volumes - Set the
field_name
tosearch_requests_volume
for Search API tracking - Set the
recurring
tofalse
for metered billing
3
Create a plan
Create a plan to price packages of requests used.Refer to the API reference and guide on package charges to learn more.
- Set the
amount_cents
to0
since there is no subscription fee - Set the
charges
to usepackage
pricing model with Algolia’s rates - Configure
free_units
of 10,000 requests per month included
4
Create a customer
5
Create a subscription
Create a subscription for the customer with the plan’s Refer to the API reference to create a subscription.
code
.6
Ingest usage via events
Send usage events to Lago to track API requests.Refer to the API reference to create an event.
- Set the
code
to match your billable metric code - Include
search_requests_volume
property with the number of requests
7
Monitor current usage
Track real-time customer usage for the current billing period.Refer to the API reference to get the current usage.
Wrap-up
‘Pay-as-you-go’ pricing strategies are popular among API companies like Algolia. With Lago, you can adapt this template to your products and services, using some of our most popular features:- Plan models, with or without subscription;
- Billable metrics, including the ‘sum’ aggregation type; and
- Charges, including our package and graduated pricing models.