# Welcome to Revenium

Go beyond tracking tokens and latency to measure the true economic outcomes of your AI.

Revenium provides a complete, end-to-end solution for AI spending, visibility, and control. We combine granular AI observability with a powerful usage-based billing engine to support everything from internal chargebacks to automated customer invoicing and credit card collections.

Unlike other platforms that require stitching together complex integrations across multiple vendors, Revenium delivers a unified, developer-friendly experience. You can quickly understand AI costs, identify savings opportunities, and smoothly launch usage-based subscription models - all from one centralized platform.

<a href="https://app.revenium.ai/" class="button primary">Sign Up Here</a>

***

### <i class="fa-ruler">:ruler:</i> The Revenium Difference: Measuring Economic Outcomes

Traditional observability tools tell you if your AI executed successfully. **Revenium tells you if your AI is actually profitable.** A 100% technical success rate means nothing if the business goal fails. We help you shift focus from individual traces to holistic economic outcomes.

* **Calculate the "True Cost" of AI:** Track the three real dimensions of AI spend: raw token usage, hidden external API tool costs, and the human time required to rescue failed workflows. While most companies know they spend a massive amount of time fixing broken AI, nobody actually tracks it. Revenium brings these "hidden economics" into the light so you can manage them.
* **Outcome-Based Troubleshooting:** When an AI workflow fails its business objective, stop hunting through isolated logs. Trace the entire "job" back to the exact prompt to see where the agent's reasoning broke down.
* **API-Driven Pattern Matching:** Instantly compare workflows that achieved their business outcome against those that failed, zeroing in on the exact bottlenecks burning your budget.
* **AI Insights:** Revenium's Recommendations Engine runs your usage data through detectors that surface anomalies, cost opportunities, and operational issues — each finding grounded in your actual transactions, ranked by potential monthly savings, and paired with a concrete suggested action. [See AI Insights →](/optimize-performance/ai-insights.md)

### <i class="fa-bezier-curve">:bezier-curve:</i> Choose Your Path

Revenium supports your entire team at every stage of your AI journey. Based on your role, here is where you should start in the sidebar:

#### <i class="fa-code">:code:</i> For Developers: Ship & Optimize

You need to integrate quickly, ensure zero latency overhead, and figure out exactly why an LLM call failed.

* Head to the [Quickstart](/get-started/quickstart.md) to drop in our SDKs and see your first metered call in under 5 minutes.
* Check out [Monitor Latency & Performance](/optimize-performance/monitor-latency-and-performance.md) to monitor Time-to-First-Token (TTFT) and [debug raw logs and traces](/optimize-performance/debug-logs-and-traces.md).

#### <i class="fa-money-bills">:money-bills:</i> For Finance & Ops: Cost Control & Attribution

When AI is deployed centrally across a large organization, the challenge isn't just paying the bill—it’s knowing which department is responsible for it. Revenium transforms your raw AI spend into a transparent, accountable financial system. Whether you are recovering costs from internal business units or preventing a single experimental agent from draining a quarterly budget, we provide the visibility needed to scale AI sustainably.

* Implement Internal Cross-Charging: Use the [Product and Pricing](/monetize-your-ai/create-pricing-models-and-products.md) engine to map AI costs to specific departments, projects, or cost centers.
* Set [Budget Guardrails & Alerts](/track-and-control-costs/set-budgets-and-alerts.md): Establish real-time thresholds for specific business units. Receive instant notifications via Slack or Email the moment a department reaches 80% of its allocated AI budget.
* Audit "True Cost" ROI: [Build custom dashboards](/track-and-control-costs/build-custom-dashboards-and-charts.md) that combine token costs, external API tool calls , and human escalation time to see the actual return on investment for any internal AI initiative.

#### <i class="fa-box-dollar">:box-dollar:</i> For Product Teams: Monetize Your AI

You need to convert raw AI usage into billable digital products and subscriptions, or you need to understand how different profiles of customers' spending differs to help you properly price your AI-centric products or features.

* Jump to [Monetize Your AI](/monetize-your-ai/tutorial-build-usage-based-billing.md) to read our end-to-end tutorial on building usage-based billing.
* Learn how to [create pricing models](/monetize-your-ai/create-pricing-models-and-products.md), [manage customer credentials](/monetize-your-ai/manage-customers-and-credentials.md), and [automate invoicing & payments](/monetize-your-ai/automate-invoicing-and-payments.md).

#### <i class="fa-robot">:robot:</i> For AI Engineers: Instrument Agents

You are building complex workflows with tools like LangChain or CrewAI and need to trace execution loops, hidden API calls, and hallucination costs.

* Explore [Instrument Your Agents](/instrument-your-agents/agent-instrumentation-guide.md) to bring your own AI agent workloads into Revenium and track decision costs, outcomes, and tool usage.

***

### <i class="fa-question">:question:</i> How it Works: A Real-World Example

Let's imagine a B2B software company that deploys an **AI Sales Agent** to automatically qualify leads and close small deals.

Within this workflow, the AI agent relies on:

1. **An LLM** to converse with the prospect.
2. **External Tools (like ZoomInfo)** to fetch company data.
3. **Human Escalation** if the agent gets stuck and a human rep has to take over.

**Their Objective:** Measure the true ROI of the AI agent by tracking its actual business outcome (deals closed) against its *total* cost (tokens + tool API calls + human escalation time). See the [runnable examples](/get-started/quickstart/examples.md) — sales, coding-workflow, and customer-support scenarios that follow this exact pattern with simulated revenue, tool spend, and escalation cost.

Here is how they achieve this using Revenium:

1. **Instrument & Attribute (< 5 minutes):** They drop in the Revenium SDK to wrap the agent's workflow. Revenium immediately begins capturing token usage, automatically attributing costs back to specific sales campaigns and CRM Opportunity IDs.
2. **Track Hidden Tool Costs (< 5 minutes):** Revenium reveals the hidden economics of the workflow. The team discovers that on a "happy path," the agent calls the ZoomInfo API once. But on an "unhappy path," the agent gets confused and calls ZoomInfo six times, causing external API costs to completely dwarf the raw token costs and also triggers an expensive human escalation to fix the error.
3. **Measure the Business Outcome (\~ 10 minutes):** Instead of just looking at engineering metrics (e.g., "The LLM didn't crash"), they look at the business funnel. They see that out of 160 jobs, the agent successfully closed 32 deals, generating $9,000 in revenue against a true AI cost of $1,800 (tokens + tools + human escalation).
4. **Outcome-Based Pattern Matching (Automated):** Using Revenium's API, the engineering team doesn't have to manually point-and-click through logs. Revenium automatically compares the 30% of workflows that failed their business outcome against the thousands that succeeded.
5. **Fix the Root Cause:** The pattern matching leads them straight to the root cause prompt. They discover the agent was failing and looping its tool calls because it couldn't parse a specific qualification criteria. They fix the prompt, eliminate the wasted ZoomInfo calls, and instantly increase the agent's profit margin.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.revenium.io/welcome-to-revenium.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
