How Mistral committed to Lago in 17 days and went to prod in 52 days

Discover how Mistral leverages Lago's billing engine to bill their
customers for all their AI models.
SaaS
Stories
Mistral

Lago has been able to follow the pace of our releases and has allowed us to focus on what we do best.

Timothée Lacroix
CTO, Mistral AI

Introduction

You’ve probably heard from Mistral because they shipped 14 frontier models in just 18 months. But Mistral doesn’t view itself as yet another AI model maker. Their mission is to “externalize what [they] build for science to the developer community”.

Anyone who believes that AI will transform how we all live and work, then anyone should be able to access the models that enable us to do this.

But while Mistral builds for science, they’re still a company that needs to bill its customers—which is why they started working with us.

Challenges

Mistral reached out to Lago in October 2023, before they launched their paid product. They had heard of Lago through Hacker News and especially felt that our anti lock-in and pro open-source approach resonated with their ethos.

Mistral’s engineering resources were focused on building LLMs that power their products, which is what they do best. So instead of building a billing system from scratch (which can be a nightmare), Mistral reached out to us to power the billing for their paid products.

But billing is complex, especially if you’re building for a new product. Here are a few needs Mistral asked us to solve:

  • Implementing token-based pricing
  • Being able to meter usage in real-time, in a granular way, and at scale
  • Defining a prepaid wallet system and optimize for cash collection
  • Being agnostic to their payment processors: the team wanted to have the ability to potentially use several payment processors
  • Managing taxes and specifically VAT
  • Data and security requirements (GDPR, SOC 2, among others)

Here is an overview of their pricing page as of December 9, 2024 (Source: Mistral):

Solutions and impact

After signing, Mistral launched with Lago in 52 days. Here’s how we were able to go live with them quickly:

Lago’s out-of-the box approach: faster “time to launch”

Here are the main steps used to implement their pricing structure:

  1. Aggregating usage using filters

Lago monitors usage by converting events into billable metrics. Using our “filter” feature, the Mistral team can aggregate usage by choosing dimensions such as “input or output”, or “model type”. This enables them to set prices per model, monitor consumption and create ‘usage buckets’ based on their product dimensions.

This enables them to charge for new products differently and to get detailed insights on where their revenue comes from.

  1. Set up per-token pricing

AI APIs charge for tokens (fractions of a word), which Mistral is able to charge for. It’s important for us that every customer can bill their customers for the usage they want to bill in instead of being stuck with conventional usage metrics.

  1. Prepayment of usage

One of the risks of usage-based pricing is that users consume the product without paying. To mitigate this without tarnishing UX, Mistral used our native feature of using a prepaid wallet.

They opted for a prepaid wallet credit system that is regularly and automatically topped up. When the balance of the wallet runs low, the wallet is topped up automatically.

  1. Automatic payment collection

Lago is an open system. We avoid lock-in so we natively integrate with Stripe Payments. Mistral has several Stripe Payments accounts and we helped them connect to them seamlessly.

  1. Tax management

Lago offers built-in European tax management which productizes the decision tree below, read more here. This area is often overlooked by non-European SaaS. But as a team with deep roots in Europe, we know this is important.

These 5 steps are all complex topics in their own right, but in collaboration with the Mistral team, we were able to go live in under two months. Mistral’s engineering team was able to ship them via the API in a few weeks. Mistral was able to have a robust billing system up and running within a month. After a little under a year, Mistral has already sent more than 32,000 invoices with Lago.

Pricing flexibility for new products and new plans

The implementation was led by Mistral’s engineering team, but the system can also be customized via Lago’s no-code User Interface.

This is handy in organizations where a Business Operations team configures custom/negotiated contracts. For instance, invoices are issued automatically for standard contracts (the self-serve customers) and for larger/custom customers, the Mistral team uses Lago’s user interface. Lago is also connected to Mistral’s CRM Salesforce.

This means Mistral’s engineering team can focus on what they do best: Build great LLMs that benefit developers everywhere.

This flexibility means that Mistral will have a billing system that scales with it—whether that’s via enterprise contracts or new models they release with their paid API.

How Lago grows with Mistral

A partnership doesn’t stop when you go to prod. The best companies never stop growing and experimenting, so we believe their billing system shouldn’t either.

Beyond the initial implementation, we continue to partner with Mistral to support their evolving needs: from managing taxes worldwide, supporting the Finance team and fine-tuning the wallet’s workflows and use cases.

Over the past year, we've expanded our solution to include more features that Mistral needed—and that will also serve our other customers.

  • Build an integrated and end-to-end single source of truth for revenue: Lago interfaces with Tax, ERP, CRM, and payments functions to provide a unified view of revenue data and drive the monetization roadmap across Mistral’s services.
  • Support the Finance Team with customized billing for enterprise users: Enabling Mistral’s transition to a dual growth strategy, Lago supports both product-led and sales-led approaches with manual quoting and billing for custom needs, alongside automated workflows through Salesforce to empower the Finance team.
  • Drive international expansion through Tax Management: Our tax solution now supports operations in 200+ countries, as well as multi-entity billing, aligning with Mistral’s global footprint.
  • Provide decision-making insights with Reporting & Analytics: We worked closely with Mistral’s teams on revenue analytics and dashboards, bringing visibility into revenue growth and enabling profitability monitoring by product and usage.

Focus on building, not billing

Whether you choose premium or host the open-source version, you'll never worry about billing again.

Lago Premium

The optimal solution for teams with control and flexibility.

lago-cloud-version

Lago Open Source

The optimal solution for small projects.

lago-open-source-version