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

Only 3 Simple Steps to Start

[01]

Add Revenium SDK

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

No code rewrites
No complex setup
[02]

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"
  
[03]

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:
  • Customer-level spend
  • Product tier costs
  • Agent costs per month
  • Repeated task costs per transaction
  • All of these costs trending over time

Multiple Integration Options. Choose Your SDK

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

Python SDK

Install Python packages to automatically meter AI API calls

NodeJS SDK

Install NodeJS packages to automatically meter AI API calls

Revenium MCP Server

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

Revenium n8n Agent

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

Quick Start Code Examples

Add a single import line to start metering your AI calls

Python
1. Install SDK
pip install revenium-middleware-openai
2. Configure Environment Variables
export REVENIUM_METERING_API_KEY="YOUR_REVENIUM_KEY"
export OPENAI_METERING_API_KEY="YOUR_OPEN_AI"
3. Import Revenium SDK
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."
        }
    ]
)
Node.js
1. Install SDK
pip install revenium-middleware-openai
2. Configure Environment Variables
export REVENIUM_METERING_API_KEY="YOUR_REVENIUM_KEY"
export OPENAI_METERING_API_KEY="YOUR_OPEN_AI"
3. Import Revenium SDK
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 SDK options & configuration scripts can always be found in the 'Get Connected' page in the Revenium app. Copy the exact code required to install the SDK with your account's API key.

Ship With Confidence

Start with visibility. Scale with control.

50,000 transactions free. No credit card required.