No Spreadsheets. No Surprises.

Get Up and Running
in 2 Minutes

Built for developers, Revenium delivers real-time insights into both usage and spend—so you can track trends, catch unexpected spikes, and stay in control before costs spiral.

With no heavy setup or complex dashboards, it puts cost visibility and monetization insight in one simple, powerful platform.

Clear, actionable data. Instant value. Just a few lines of code to get started.

How Revenium Works

1.

Add Revenium Middleware

Install Revenium's lightweight package into your app with a single command. It wraps your AI call and starts metering instantly.

Check Icon
No code rewrites.
Check Icon
No complex setup.
2.

Configure Environment Variables

Just two environment variables: one for Revenium, one for AI. You're ready to run.

export

REVENIUM_METERING_API_KEY=
”YOUR_REVENIUM_KEY”
export

OPENAI_METERING_API_KEY=
”YOUR_OPEN_AI”
2.

Ready to Level Up?

Ready for in-depth analytics and business context for every AI call? Just add a usage_metadata block to your existing code.

This optional step unlocks advanced insights like:

Arrow Icon
How much each customer spends
Arrow Icon
How much each product tier costs you
Arrow Icon
How much each agent costs per month
Arrow Icon
How much repeated tasks cost per transaction
Arrow Icon
How all of these costs trend over time
Multiple Integration Options

Choose Your Middleware

Install Revenium's lightweight middleware in your preferred language and start metering AI calls instantly

Script Icon

Python Middleware

Install Python packages to automatically meter AI API calls

SDK Docs: PyPI
Arrow Icon
Dev Icon

NodeJS Middleware

Install NodeJS packages to automatically meter AI API calls

SDK Docs: npm
Arrow Icon
Gear Icon

Revenium MCP Server

Allow AI agents to set up cost alerts and investigate cost analytics & anomalies

Instalation Guide
Arrow Icon
Lightning Icon

Revenium n8n Agent

Drop-in replacement for standard n8n AI Agent with automatic cost tracking

Instalation Guide
Arrow Icon

Quick Start Code Examples

Add a single import line to start metering your AI calls
1. Install Middleware
Copy Icon
pip install revenium-middleware-openai
2. Configure Environment Variables
Copy Icon
export REVENIUM_METERING_API_KEY="YOUR_REVENIUM_KEY" export OPENAI_API_KEY="YOUR_OPENAI_KEY"
3. Import Revenium Middleware
Copy Icon
import openai

# The following line is the only required change
import revenium_middleware_openai

response = openai.chat.completions.create
	model="gpt-4",
	messages=[
		{
		"role": "system",
		"content": "You are a helpful assistant."
Pro Tip:
The latest middleware options & configuration scripts can always be found in the 'Get Connected' page in the Revenium app. Copy the exact code required to install the middleware with your account's API key.
1. Install Middleware
Copy Icon
pip install revenium-middleware-openai
2. Configure Environment Variables
Copy Icon
export REVENIUM_METERING_API_KEY="YOUR_REVENIUM_KEY"export OPENAI_API_KEY="YOUR_OPENAI_KEY"
3. Import Revenium Middleware
Copy Icon
import openai

# The following line is the only required change
import revenium_middleware_openai

response = openai.chat.completions.create
	model="gpt-4",
	messages=[
		{
		"role": "system",
		"content": "You are a helpful assistant."
Pro Tip:
The latest middleware options & configuration scripts can always be found in the 'Get Connected' page in the Revenium app. Copy the exact code required to install the middleware with your account's API key.

See It In Action

Watch how Revenium works in under 2 minutes
No Spreadsheets. No Surprises.

Get Up and
Running in 2 Minutes

Clear, actionable data. Instant value.Just a few lines of code to get started.
Revenium Logo
How It Works
About Us
Docs