Margovia

AI cost tracking for TypeScript apps

Know which customers make or lose money

Margovia shows which customers, features, and workflows are driving AI spend before your OpenAI or Anthropic invoice surprises you

Get free cost review Create free project 4 min SDK setup. No proxy. No provider keys.
Budget signal from demo data
$480 monthly cap. Executive reports watched per run.
Demo SaaS CopilotMargovia Overview
Month AI spend$126360 tracked demo runs
Forecast this month$480Project budget limit
Budget used91%$437 / $480
Cost per success$0.0068Support reply draft
Active signals4Budget, margin, and usage
!
Budget signalExecutive weekly report is 30% over its per run guardrail. Watch
WorkflowExecutive weekly report
Over guardrail30%
Limit$0.58/run

What needs attention

AlertScopeImpact
Workflow spikeExecutive weekly reportCritical
Margin watchChurn Risk CoWarning
Free usageFree Workspace 12Info
$0.0068cost per successful support reply in the demo project
4budget, margin, and usage signals shown in one place
360example runs across customer-facing AI workflows
6workflows grouped by cost, outcome, and customer

The problem

Provider dashboards tell you spend went up. They do not tell you why

Margovia turns raw model usage into product economics: which workflow caused the spike, which customer owns it, which outcome justified it, and which accounts are actually profitable

without_margovia.tsinvoice archaeology
// Provider invoice says spend jumped 38%
// Finance asks which feature caused it

const usage = await provider.billing.usage();

// Missing:
// - customer attribution
// - workflow margin
// - cost per outcome
// - budget owner
// - alert trail
with_margovia.tscost context
const openai = margovia.openai(rawOpenAI);

await openai.chat.completions.create({
  name: "support.reply_draft",
  customerId: "workspace_123",
  userId: "user_456",
  customerPlan: { name: "startup", monthlyUsd: 89 },
  outcome: "reply_sent",
  request: { model: "gpt-5-mini", messages }
});

Capabilities

One cost layer for the whole AI surface

Start with tracking, then add customer attribution, budgets, anomaly alerts, and reporting as the product moves from experiments to production

Workflow economics

Track cost per run, cost per successful outcome, and the workflows carrying your AI bill.

RUNS · OUTCOMES · MODELS

Customer profitability

Connect AI usage to customers, plans, revenue, and outcomes so you know which accounts make money and which ones do not.

CUSTOMERS · PLANS · MARGIN
!

Budget guardrails

Create project, workflow, customer, and user budgets with alerts before provider spend gets out of hand.

BUDGETS · ALERTS · FORECASTS
$

Provider cost breakdown

See OpenAI, Anthropic, model, token, and tool costs in one dashboard instead of reconciling invoices later.

OPENAI · ANTHROPIC · TOOLS
{}

SDK first tracking

Wrap provider calls, send customer context, and report outcomes from TypeScript with a small integration.

TS SDK · REST · API KEYS

Operational alerts

Route margin, anomaly, and budget incidents to the people who own the workflow.

ANOMALIES · EMAIL · SLACK

Integration

Install the SDK, track a provider call, ship with cost context

Margovia works beside your existing provider client. Your provider keys stay in your backend. Margovia receives metadata, usage, cost, attribution, and outcomes.

01Create a project API key.
02Use a tracked OpenAI or Anthropic client.
03Review workflow, customer, and budget economics.
import OpenAI from "openai";
import { Margovia } from "@margovia/sdk";

const margovia = new Margovia();
const openai = margovia.openai(new OpenAI());

await openai.chat.completions.create({
  name: "reports.executive_weekly",
  customerId: "workspace_123",
  customerName: "Northstar Agency",
  customerPlan: { name: "team", monthlyUsd: 249 },
  outcome: "report_downloaded",
  request: { model: "gpt-5-mini", messages }
});
Smoke test from your terminal Verify the API key outside the dashboard.
curl -X POST https://api.margovia.com/v1/track \
  -H "Authorization: Bearer $MARGOVIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "setup_check",
    "customerId": "demo_customer",
    "outcome": "api_key_verified",
    "costs": [{
      "provider": "margovia",
      "model": "connectivity-check",
      "costUsd": 0,
      "status": "completed"
    }]
  }'

Use cases

Built for teams that need AI economics by customer

Whether you are selling AI features, running client work, or operating internal copilots, the missing layer is the same: cost tied to the customer or workflow that caused it

AI SaaS

Know which customers make money

Tie provider spend to customer plans, seats, usage, and outcomes so unprofitable accounts show up before the bill does.

1seeded margin risk customer
Agencies

Bill clients for the work AI actually did

Attribute runs to customers and projects, export usage, and prove which automated workflows created the cost.

$480demo project budget
Product teams

Ship AI features without painful bills

Set budgets around workflows, users, projects, and customers with alerts when a model or prompt starts drifting.

+30%over budget alert

Pricing preview

Start with tracking. Add controls as usage grows.

Free

$0/mo

Connect a small project and review low volume usage in the dashboard.

  • ✓ 1 project
  • ✓ API key ingestion
  • ✓ Basic cost and run views
  • ✓ 10k tracked calls
Start setup

Developer

$29/mo

Track real AI cost and customer margin while validating the product.

  • ✓ API keys and SDK ingestion
  • ✓ Customer and workflow economics
  • ✓ Budget alerts
  • ✓ 1M tracked calls
Start setup

Questions

The things AI teams ask before adding a cost layer

Is Margovia another LLM proxy?

No. Margovia tracks cost and attribution around the provider calls you already make. You can use SDK wrappers or send cost events through the REST API.

Does it need our OpenAI or Anthropic keys?

No. Your provider keys stay in your app. Margovia receives run metadata, usage, cost, customer attribution, and outcomes

Can it track revenue and customer plans?

Yes. Send a customer ID and optional plan data with a tracked run, then adjust revenue and margin assumptions in the dashboard.

What happens when a budget is crossed?

Margovia creates alerts for budgets, anomalies, and margin risk. Enforcement modes can be added later behind explicit opt in.

Free AI cost review

Find the customers, features, or workflows putting margin at risk

Show us your provider usage, a CSV export, or just walk us through your current setup. We will help identify where AI spend is hiding and what to instrument first

01Which customers may cost more than they pay
02Which workflows are driving the most AI spend
03Where alerts or model changes could reduce surprises

No provider keys needed. A CSV, dashboard screen share, or rough numbers are enough for the first call.

Get started

Stop treating AI cost like a mystery invoice

Get a free review first, or create a project if you already know you want AI cost tracking by customer