Documentation Index
Fetch the complete documentation index at: https://narev.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.

What’s Narev?
Narev is the billing and cost-tracking platform for AI products. Instead of building custom data pipelines to meter LLM usage, drop in the Narev SDK to capture raw tokens and use Narev Cloud to sync invoice-ready data directly to Stripe, Lago, or Polar.sh.Bill users accurately
Automatically convert tokens and requests into normalized dollar amounts so you can charge customers for exactly what they consume.
Protect your margins
Track your exact Cost of Goods Sold (COGS) per user and model to ensure your AI features remain profitable as you scale.
Problems Narev solves
Pricing AI features accurately
Pricing AI features accurately
The problem—Model prices change constantly, and providers calculate costs differently across input, output, and cached tokens.The solution—Narev Cloud syncs live pricing, while the Narev SDK maps raw token usage to normalized dollar amounts you can confidently invoice.
Connecting AI to your billing stack
Connecting AI to your billing stack
The problem—Moving usage data from an LLM call into Stripe, Lago, or Polar.sh requires custom data pipelines, manual reconciliation, and brittle webhooks.The solution—The open-source Narev SDK provides middleware that automatically pushes billable events from your framework directly to your billing provider.
Bypassing expensive AI gateways
Bypassing expensive AI gateways
The problem—Hosted AI gateways estimate your costs, but introduce extra latency, another point of failure, and charge an additional fee layer.The solution—Narev gives you the primitives to run your own metering pipeline. You own the data, remove the middleman, and keep full control of your profit margins.
Optimizing AI unit economics
Optimizing AI unit economics
The problem—Without precise cost tracking, you can’t tell if a specific customer or prompt change is destroying your profit margins.The solution—Narev attributes exact Cost of Goods Sold (COGS) to specific users via Customer Tagging, letting you optimize based on real dollar impact.
Core Features
Build the two systems that matter most for AI products: revenue you can bill and costs you can control.Usage-based billing
Push normalized billable events from the Narev SDK directly to Stripe, Lago, or Polar.sh.
Customer Tagging
Attribute AI spend directly to specific users and tenants to measure per-customer profitability.
Infrastructure cost mapping
Deploy Narev Self-Hosted to track precise COGS and export data in the FOCUS format.
Model benchmarking
Evaluate prompts across models using live Narev Cloud pricing to optimize unit economics.
Quick start guide
Start with usage-based billing so you can measure usage and bill customers correctly from day one.Create your Narev Cloud account
Sign up for Narev Cloud and create your workspace.This gives you a place to track metered AI usage and prepare it for billing.
Connect your billing provider
Connect Stripe, Lago, or Polar.sh so usage data flows into your billing workflow.This lets you reconcile usage with invoicing and reporting in your existing stack.
Integration options
Framework adapters
Next.js
React-based full-stack framework with App Router support
Why choose Narev?
- Individual Developers
- Small Teams
- Growing Businesses
Launch with usage billing from day one
Instrument requests with the Narev SDK so you can meter and bill without building custom pipelines.
Integrate with your existing stack
Connect Narev Cloud to Stripe, Lago, or Polar.sh and keep your current billing workflow.
Improve model efficiency quickly
Benchmark your real prompts, then route traffic to lower-cost model variants with quality safeguards.
See true AI unit economics
Track AI spend and COGS with normalized usage data so you can price features with confidence.
Open source and community
Narev combines Narev Cloud with open components so you can choose the right deployment model for each workload.Narev SDK
Instrument usage in your app with framework-friendly integrations.
Narev Self-Hosted
Run infrastructure cost mapping in your environment when you need deeper control.
Use Narev Cloud and Narev Self-hosted complement each other. Use Narev Cloud for managed usage-based billing operations and combine it with
Narev Self-hosted to understand your infrastructure costs.
Ready to start?
Create Account
Free sign-up, no credit card requiredGet started in under 2 minutes
Read the Guides
Framework-specific tutorialsStep-by-step integration guides
Explore the API
Complete API documentationInteractive examples and SDKs
Join Our Community
Get help from the Narev teamActive community and support