Skip to main content
start

Stop guessing your AI margins.

Track real-time costs, per request.

Bear Lumen automatically captures, attributes, and meters your AI infrastructure spend. Track LLM usage down to the user, the feature, or any custom dimension, in under three minutes.


Works seamlessly with your existing AI stack

OpenAIAnthropicGoogle GeminiAWS BedrockMistralStripe

Cost Intelligence

Drop in One Line of Code

Wrap your LLM API calls with our SDK. Bear Lumen auto-detects providers and maps live costs back to your rate cards instantly.

Margin Intelligence

See profitable vs. underwater users

Blended margins hide the true story. Break down exact margins by customer segment, product tier, and custom workflow variables.

Pricing Intelligence

Simulate before you launch

Run historical data through flat rate, tiered, or hybrid pricing models to design pricing logic that covers your actual variable costs.


Built for modern AI applications

Token spreadsheets and end-of-month invoices are guesswork. Modern AI products are multi-step workflows, and Bear Lumen meters every request and background task as it happens.

  • Auto-detects OpenAI, Anthropic, Google Gemini, AWS Bedrock, Mistral, and Ollama responses
  • Zero-latency overhead: events queue in memory and flush in background batches
  • Streaming responses pass through unchanged
  • Cost, margin, and insight queries from the same SDK
import OpenAI from 'openai';
import { BearLumen } from '@bearlumen/node-sdk';

const openai = new OpenAI();
const bear = new BearLumen({ apiKey: process.env.BEAR_LUMEN_API_KEY });

const response = await openai.chat.completions.create({
  model: 'gpt-4o',
  messages: [{ role: 'user', content: 'Hello!' }],
});

// One line. Provider auto-detected, cost attributed.
const result = bear.track(response);

result.model;        // 'gpt-4o'
result.inputTokens;  // 12
result.outputTokens; // 85

Enterprise-grade security by design

Our SDK tracks token counts and metadata only. We do not store, log, or view sensitive prompt payloads or user inputs. Built with SOC 2 compliance standards in mind.

Ready to own your AI unit economics?

Join the teams using data-backed pricing to keep healthy margins while their AI usage scales.