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.
- Host: GitHub
- URL: https://github.com/flexprice/flexprice
- Owner: flexprice
- License: apache-2.0
- Created: 2024-11-05T14:42:18.000Z (5 months ago)
- Default Branch: develop
- Last Pushed: 2025-02-12T11:37:09.000Z (2 months ago)
- Last Synced: 2025-02-12T12:30:29.329Z (2 months ago)
- Topics: billing, clickhouse, cost, events, go, kafka, postgresql, pricing, usage-based-pricing
- Language: Go
- Homepage: https://flexprice.io
- Size: 2.55 MB
- Stars: 46
- Watchers: 0
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-clickhouse - flexprice/flexprice - Flexprice offers open-source pricing and billing infrastructure for flexible, developer-friendly implementations in AI-driven businesses. (Language bindings / Golang)
README
![]()
β‘οΈ Usage metering and billing for AI companies β‘οΈ
π Built with developers in mind, so you donβt have to create
billing and metering from scratch. π---
[](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
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
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
### π 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/)