An open API service indexing awesome lists of open source software.

https://github.com/flexprice/flexprice

🌟Open source pricing and billing infrastructure to support any pricing model, from usage-based to subscription and everything in between.πŸ‘¨β€πŸ’»No more building billing in house. ❌Say goodbye to revenue cuts by stripe and chargebee.
https://github.com/flexprice/flexprice

billing clickhouse cost events go kafka postgresql pricing usage-based-pricing

Last synced: about 2 months ago
JSON representation

🌟Open source pricing and billing infrastructure to support any pricing model, from usage-based to subscription and everything in between.πŸ‘¨β€πŸ’»No more building billing in house. ❌Say goodbye to revenue cuts by stripe and chargebee.

Awesome Lists containing this project

README

        


fleprice logo




⚑️ Usage metering and billing for AI companies ⚑️



🌟 Built with developers in mind, so you don’t have to create
billing and metering from scratch. 🌟

---

[![LinkedIn](https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/flexpriceio)

[Flexprice](https://flexprice.io) is a **developer first** answer to building and launching any pricing model and collecting usage data in real-time.

We have one goal - our friends should never have to write a billing system from scratch again.

## The struggle is real since AI is here

Record Replay Testing

In-house Billing Systems are a nightmare for Engineers. With rising use of AI workloads internally and building new AI features, it has become necessary to build metering and billing systems to track usage and costs.

Frequency of changes in pricing models is also increasing. These changes make it hard to manage existing subscriptions and require a lot of manual effort in terms of migrations and testing.

## The Solution: Flexprice

Usage metering, subscription management and infra cost into one stack

Record Replay Testing

Developers don't need to spend **months** building internal metering and rating systems.

Flexprice offers APIs, SDKs, self serve UI widgest, internal dashboards and more to help you get started in minutes. With Flexprice, you can:

- **Evolve your pricing with flexibility**: We support Usage-based pricing, Minimum commitments, Volume discounts, Prepaid Credits, Upgrades and downgrades, etc.

- **Real-time overview AI Infrastructure Costs**: Optimize revenue operations and measure LLM Token Usage, GPU Time, Compute Hours, API Call Frequency and Duration, etc

- **Custom Invoice and Billing logic**: Raise invoices, manage billing cycles, apply discounts, taxes, grace period, payment terms, etc

Flexprice Dashboard

### πŸš€ Setting up Flexprice from source for development and contributions

To run Flexprice for local development or running from source, you will need

1. [Golang](https://go.dev/)
2. Any of the below supported platform environments:
1. [Linux based environment](https://en.wikipedia.org/wiki/Comparison_of_Linux_distributions)
2. [OSX (Darwin) based environment](https://en.wikipedia.org/wiki/MacOS)
3. WSL under Windows

```bash
git clone https://github.com/flexprice/flexprice
cd flexprice
go run cmd/server/main.go
```

### Code Architecture

See [CONTRIBUTING.md](CONTRIBUTING.md) for more details on the code architecture and design principles.

## πŸ‘¨πŸ»β€πŸ’» Let's Build Together! πŸ‘©πŸ»β€πŸ’»

Whether you're a newbie coder or a wizard πŸ§™β€β™€οΈ, your perspective is golden. Take a peek at our:

πŸ“œ [Contribution Guidelines](CONTRIBUTING.md)

πŸ—οΈ [Local Development Setup](SETUP.md)

❀️ [Code of Conduct](CODE_OF_CONDUCT.md)

## ✨ Resources!

πŸ“– [API Docs](https://docs.flexprice.io/)