OpenAI cost tracking by model and project
Connect OpenAI to MarginMeter with an admin key to track daily API cost by project and model, and see exactly how AI spend moves your SaaS gross margin.
LLM costs scale with usage, prompt length and model choice — and they change every time you ship a feature. MarginMeter imports OpenAI's daily cost report and puts it next to revenue, so a new model or a longer prompt shows up as a margin change the next day.
What you get
- Daily cost by project and model, normalized to your reporting currency.
- AI spend as a share of revenue in the dollar breakdown.
- Statistical anomaly alerts when a day's spend jumps well above its 28-day median.
Setup
Create an admin key in your OpenAI organization settings, name it "MarginMeter" and paste it into the connect form. MarginMeter validates the key, encrypts it with AWS KMS and starts a background import.
Known limitations
- Costs are reported in USD with daily granularity.
- Attribution is per project, not per customer, until the MarginMeter SDK ships.
Frequently asked questions
Which key does MarginMeter need?
An OpenAI admin key, which organization owners can create. MarginMeter only reads usage and cost data with it.
Can I see cost per customer?
The OpenAI cost API reports by project and model. Per-customer attribution comes with the MarginMeter SDK in a later release.
See your real margin in five minutes.
Connect Stripe and your cost providers with read-only access. Free for two connections — no card required.