All systems operational · API v1.0.0
Now in beta · Free during launch

Know your exact AI cost per client.

MarginAI sits between your code and the LLM API. Every call tracked, every dollar attributed, every margin calculated — automatically.

See how it works

No credit card · 7-day free trial · Cancel anytime

1 line
of code to integrate
50+
LLM models supported
$0
to start, 7-day trial
99.9%
proxy uptime SLA
How it works

Set up in 5 minutes, not 5 days.

No SDK to install. No code refactor. One URL change and MarginAI captures everything.

01
Change your base URL
Point your OpenAI or Anthropic client at MarginAI. Your real API key passes through unchanged.
// Before baseURL: "https://api.openai.com/v1" // After baseURL: "https://www.aimargin.net/v1/openai"
02
Tag your client
Add two headers to every request to attribute it to a client. That's the entire integration.
"x-marginai-agency": "my-agency" "x-marginai-client": "acme-corp"
03
See costs in real time
Your dashboard instantly shows cost per client, margin, daily spend, and model breakdown. No configuration needed.
04
Send white-label reports
Generate a branded PDF showing your client's AI usage, cost, and value delivered. One click, every month.
POST /v1/openai/chat/completions
POST /v1/anthropic/messages
GET /api/dashboard/:agencyId
Live
proxy · all endpoints operational

Built for agencies. Not engineering teams.

Every tool we built is for the person who bills clients — not the developer who writes the code.

🏷️
Per-client cost attribution
Every API call tagged to a client. See exactly what Acme Corp cost you this month vs. BlueSky vs. any other client.
💰
Margin dashboard
Set what you bill each client. MarginAI shows your gross profit and margin automatically, updated in real time.
📄
White-label PDF reports
A branded monthly report with your logo, showing each client their AI usage, cost, and value. One click to generate.
🔔
Budget alerts
Get Slack or email alerts the moment a client is trending over budget — before the month ends, not after.
📊
Model cost comparison
See which models are eating your margin. Compare GPT-4o vs. Claude vs. Gemini costs across all workflows instantly.
Zero latency overhead
MarginAI adds under 5ms to every request. Your clients will never notice it's there.
Pricing

Simple pricing. No surprises.

Start free for 7 days. No credit card required. Cancel anytime from your dashboard.

Starter
$29
per month · up to 3 clients
  • 3 client projects
  • 500K requests / month
  • Cost + margin dashboard
  • Email budget alerts
  • MarginAI-branded reports
Scale
$199
per month · unlimited clients
  • Unlimited client projects
  • 25M requests / month
  • Everything in Agency
  • Custom domain for reports
  • API access
  • Priority support

Ready to know your margins?

Start tracking your AI costs in minutes. Free for 7 days, no card needed.

Start free trial →

No credit card · 7-day free trial · Cancel anytime