rev.polsia.app/v1/meter — live and production-ready

Revenue intelligence
for AI agents

Trusted by Northstar Labs $12k/mo billed. One POST per agent run. Read the case study →
Shipping weekly See all releases →

Rev gives your AI agents a metering API, outcome-based pricing engine, and Stripe billing — in one integration. Stop building billing infrastructure. Start billing.

No spam. We email when the API is ready for you.
Get Your API Key → View Full API Reference
<8ms
meter call latency
99.98%
uptime SLA
$4.2M+
processed to date
847
builders on platform
What Rev does

Autonomous revenue intelligence

Rev sits between your AI agent execution and your Stripe account. It meters every call, computes the right price based on your pricing config, and handles the billing — automatically.

Meter every execution

Track agent_id, action, tokens consumed, and outcome on every call. Build a revenue audit trail without lifting a finger.

💰

Price automatically

Configure base fee + per-token rate + outcome bonus per pricing tier. Rev computes the price on every meter call — no backend logic needed.

🔁

Deferred outcomes

Charge base fee now, outcome bonus when the result lands. Booked meeting, qualified lead, resolved ticket — only charge when it actually happens.

📊

Revenue analytics

Per-customer usage dashboard, daily revenue breakdown, token consumption trends. Know what's working before month end.

Quickstart

Up and running in 5 minutes

One POST after your LLM call. That's it.

your-agent.js Node.js
// After your LLM call — add this to start billing
const response = await fetch('https://rev.polsia.app/v1/meter', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    agent_id:      'outreach-agent-v2',
    action:        'email.sent',
    tokens_input:  llmResponse.usage.prompt_tokens,
    tokens_output: llmResponse.usage.completion_tokens,
    outcome:       'success',
    metadata: {
      customer_id: input.customerId,
      campaign:     'q2-outreach',
    },
  }),
});

const { price_charged } = await response.json();
// price_charged = base fee + token rate + outcome bonus
console.log(`Charged: $${price_charged}`);
Zero-to-first-task quickstart → Full 5-minute quickstart → API Reference →
Integrations

Built to work with your stack

Stripe for billing, webhooks for events, REST API for everything else. No surprises.

💳
Stripe Billing
Subscriptions + metered usage

Customers subscribe to your Rev pricing tier via Stripe Checkout. Rev reports usage to Stripe each billing period — metered billing handled automatically.

// Create a Stripe checkout session for the customer POST /api/pricing/create-checkout { tier: "pro", customer_email: "..." }
🔗
Webhook Billing
Real-time event delivery

Register webhook endpoints to receive meter events and outcome resolutions. Build custom billing logic, sync to your own DB, or trigger downstream workflows.

// Your endpoint receives: { event: "outcome.resolved", outcome_id: "oc_abc123", price_charged: 2.50, metadata: { ... } }
📡
REST API
Full metering and analytics surface

Meter, resolve outcomes, fetch analytics, manage pricing tiers — all via REST. SDKs available for Node.js and Python.

# Python SDK from revgrid import Client client = Client(api_key="YOUR_KEY") result = client.meter(agent_id="my-agent", ...)
🔒
Idempotent by design
Safe retries, no double-billing

Include an Idempotency-Key header on any meter call. Rev deduplicates automatically — safe to retry on network failure without worrying about duplicate charges.

await fetch('https://rev.polsia.app/v1/meter', { headers: { 'Idempotency-Key': crypto.randomUUID(), 'Authorization': 'Bearer YOUR_KEY', }, ... });
Getting started

3 steps to first revenue

No sales call, no approval process. Get your key, make your first call, start billing.

1

Get your API key

Sign up and your API key is in your inbox instantly. No credit card required. Free tier includes 1,000 meter calls/month.

# Sign up at rev.polsia.app/signup
# Your key arrives at your email immediately
2

Add one POST to your agent

After every LLM call, fire a meter event to Rev. Include tokens, outcome, and metadata. Rev computes the price and stores the record.

curl -X POST https://rev.polsia.app/v1/meter
  -H "Authorization: Bearer YOUR_API_KEY"
  -H "Content-Type: application/json"
  -d '{ "agent_id": "my-agent", "action": "task.complete", "tokens_input": 1200, "tokens_output": 340, "outcome": "success" }'
3

Watch revenue in your dashboard

Open the dashboard to see live usage, per-customer breakdowns, and daily revenue. Connect Stripe to start collecting actual payments.

GET /v1/analytics?period=monthly
→ { total_calls: 4821, total_charged: 284.30, success_rate: 0.94 }
From the blog

Guides and deep-dives

Long-form technical content from the Rev team — metering patterns, pricing models, and build vs buy analysis.

📝 Published articles

📖

API Reference

Every endpoint documented: /v1/meter, /v1/outcomes/:id/resolve, /v1/analytics, webhooks, and error codes.

View docs →

Quickstart Guide

5-minute integration walkthrough. Get your API key, make your first call, see revenue in the dashboard.

Start now →
🔧

Interactive Playground

Fire live API calls in the browser. See real price computations for all three pricing models — no account needed to try.

Try the sandbox →

Ship your billing in a day

Stop rebuilding what Rev already built. One integration gets you metering, pricing, outcomes, and Stripe — production-ready today.

Get Your Free API Key → Read the Docs

Customer case studies

See all →
Case study
How Northstar Labs cut their billing backend to one POST
Three SaaS products. One Rev integration. $12k/mo billed.
A two-person AI tools team replaced a Stripe webhook + Slack alert + spreadsheet with one POST per agent run. They meter tokens, charge per resolution, and ship new products without touching billing infra.
Read the case study →
Get in touch

Talk to the Rev team

Have a question about integration, pricing, or a specific agent architecture? Send us the details and we'll reply within one business day.

We reply within one business day. No marketing list.

✓ Got it — we'll reply within one business day.

Your message landed in our inbox. Expect a reply from a real person on the Rev team within 24 hours.

Frequently asked questions

Which agent frameworks does Rev support?
Rev is framework-agnostic. The metering API and outcome engine work with any agent runtime — LangChain, CrewAI, AutoGen, AutoGPT, and custom Python/Node agents. SDKs are published for Node.js and Python; other languages use the REST API directly.
How long does it take to integrate Rev?
Most developers go from signup to first metered event in under five minutes: create an API key, install the SDK, send one /v1/meter call, see the event in the dashboard. Outcome resolution adds another two to three lines.
Do I need a Stripe account to use Rev?
Only if you want Rev to charge your customers. The metering, outcome, and dashboard APIs work without Stripe. To monetize, connect Stripe via the dashboard checkout link or handle billing yourself and post outcome events to Rev.
How does Rev handle rate limits?
API keys carry per-minute and per-day rate limits shown in the dashboard. Free-tier 60 req/min, Starter 600 req/min, Growth 3,000 req/min, Scale 30,000 req/min. Rate-limited responses return HTTP 429 with a Retry-After header.
Can I use Rev with self-hosted or open-source LLMs?
Yes. Rev meters whatever your agent emits — it does not proxy LLM calls and does not require any specific model provider. Token counts are reported by the SDK based on what your agent actually sent.
What's the difference between a pending outcome and a resolved outcome?
A meter event registered as pending records the base + token fee immediately but holds the outcome bonus until you call /v1/outcomes/:id/resolve. Until resolution, the event is outcome='pending' on the dashboard. Resolve as success to charge the outcome bonus, failure to skip it, or let it expire after the window for an automatic refund.
Does the SDK support Python?
Yes — the Python SDK in /sdk mirrors the Node.js SDK and exposes the same meter, outcome resolve, and event listing calls. Both ship with type hints and a constants module for outcome states.
Building an AI agent? Get the Rev beta invite.