Margin Intelligence
Stop guessing your AI profitability.
Protect your gross margins in real time.
Hidden LLM expenses can quietly wipe out subscription revenue. Bear Lumen matches real-time infrastructure costs against the revenue each customer pays you, revealing gross margin per account, feature, and model.
Margin per account, feature, and modelRevenue paired from StripeBuilt with SOC 2 standards in mind
Blended SaaS margins hide bleeding accounts.
A customer paying you $189 a month can easily consume $214 in vector database searches, tool calls, and high-context LLM reasoning tokens. By the time blended gross margins flag the issue, the damage is already done.
- Provider invoices show aggregate spend, never cost per customer
- Blended gross margin hides accounts that lose money on every request
- Heavy agentic workloads stay invisible until the invoice lands
- Finance finds out at quarter close, after the damage is done
Unlock deep unit economic clarity.
Bear Lumen pairs your multi-provider infrastructure costs with billing data from Stripe to flag underwater accounts before they reach your quarterly financials. Connecting Stripe pairs each customer’s AI cost with what they pay you: that is how per-customer margin is computed.
- Revenue minus cost-to-serve for every account, continuously
- Underwater accounts flagged before they reach your financials
- Margin by customer, feature, model, and segment, not just totals
- Real-time unit economics without standing up a data warehouse
Strategic Capabilities
Every dimension of margin visibility.
Connect infrastructure spend to revenue at the account, feature, and model level.
Instant customer profitability audits
Account economicsAutomatically sort your customer portfolio by net profitability. Pinpoint high-volume power users whose complex agentic requests are eating into your bottom line, before they become a CFO conversation.
- SDK surface
- bear.margins.summary() · bear.margins.byEndUser()
- Margin trend
- bear.margins.trend({ startDate, endDate, endUserId })
- Classification
- profitable, break-even, or unprofitable
Expose expensive product features
Feature margin trackingMeasure exactly how much your new RAG pipeline, semantic search routing, or fine-tuned agents cost relative to the revenue they help retain. Keep what earns. Retire what bleeds.
- Custom attribution
- bear.track(res, { feature, userId, metadata })
- Reveals
- which features and models earn their cost
Stress test pricing changes
Predictive modelingSimulate shifts in model providers, token rates, or subscription packaging against your own historical usage to see the margin impact before you touch a price.
- Inputs
- your actual historical usage and cost data
- Outputs
- margin impact per plan and segment
How It Works
Up and running in three steps.
Stream infrastructure data
Wrap your AI workflows with the lightweight Bear Lumen SDK to capture compute and token volume across every provider it auto-detects: OpenAI, Anthropic, AWS Bedrock, Google Gemini, Mistral, and Ollama.
bear.track(response, { feature, userId });Sync revenue streams
Connect Stripe and Bear Lumen syncs subscriptions, invoices, and payments, pairing each customer’s AI cost with what they pay you. Cost tracking alone works without Stripe.
// Stripe sync: invoices -> revenue per accountAnalyze unit economics
View gross margin broken out by customer, feature, or model, updated as usage flows in. No data warehouse required.
await bear.margins.summary();Control
Built for finance teams who demand control.
Developer control
Bear Lumen aggregates anonymized billing counters, operational metadata, and token usage values. Your proprietary prompts, training workflows, and sensitive client inputs are never stored.
Zero prompt storageBuilt with SOC 2 standards in mind
Proactive margin alerts
Accounts and features are flagged the moment they drop below break-even, inside the dashboard where you already review spend. No more waiting for quarter close to find out.
Take control of your variable AI scale costs.
Start tracking clear, data-driven margin analytics without standing up a data warehouse.
No credit card required. Free tier included. Set up in minutes.