Aakash Howlader
All writing

How to track OpenAI costs and SaaS profit with RealMRR

Connect Stripe and OpenAI in RealMRR, map API costs to each SaaS product, add hosting and manual bills, and check your monthly tracked profit.

Pieces of a paper invoice sit in separate wooden sorting compartments, with a yellow clip on one slip.

Say you run two products from one OpenAI account. One extracts data from PDFs. The other makes reports. Stripe says the PDF tool brings in more money. Awesome!

Then you open OpenAI and see a bill for both tools together. Which product ran it up?

That’s the bit I wanted RealMRR to make easier. I wrote about the launch and how it handles overlapping bills. This time let’s actually set it up. I’ll use made-up numbers, so you can follow along with your own accounts and work out what should show up where.

Start with one month and one revenue source

  1. Sign in to the founder workspace. In Projects, add the products you want to track.
  2. Open Finances, expand Connect a provider, and choose Stripe. Follow the setup shown for the restricted key, then select Connect and import.
  3. When the import completes, open Connections and use Product mapping to assign the Stripe products to the corresponding RealMRR products. Check the results in Product totals.

I would start with a completed month. Pick the same dates when you compare RealMRR with the provider. RealMRR groups the month in UTC. Use Live revenue for actual sales. If you connect a Stripe test key first, switch to Test revenue to see that import. Expenses show up in both views.

If another provider reports those same sales, pick one feed for them. Say RevenueCat reports purchases that also come through your Stripe connection. I wouldn’t import both and expect the workspace total to work out which payments overlap.

Connect OpenAI and map the costs

RealMRR reads daily costs from the OpenAI API organization, grouped by project and charge description. If the PDF tool and the reporting tool have separate OpenAI projects, there’s something to map. If they use the same project, the shared charge is all you get at that level. I’d separate the projects for future usage and leave the old shared charges unassigned until I have a basis for allocating them.

  1. In Finances, open Connect a provider and choose OpenAI.
  2. As an OpenAI organization owner, select the organization you want to track. Open Admin keys and create a dedicated key for RealMRR.
  3. Enter it in Admin key in the founder workspace and select Connect and import. Look at the connection’s last successful import before comparing any totals.
  4. Open Product mapping on the OpenAI connection. Choose the RealMRR product for each OpenAI project and save each mapping. Check Unassigned for charges that still need a home.

That key has organization admin access. RealMRR stores it encrypted and uses it to read projects and costs. If you don’t want to grant admin access, take the amount from OpenAI billing. Record it as a manual cost for that month. If I later imported the same charges, I’d remove or adjust the manual entry. OpenAI Admin API documentation.

Say OpenAI shows $115 for the month. The PDF project accounts for $80, the reporting project for $15, and the remaining $20 has no product you’ve assigned. So far, the PDF tool gets $80 and the reporting tool gets $15. The $20 still counts in the workspace total under Unassigned. You haven’t lost it. You just haven’t decided where it belongs.

The $115 OpenAI bill splits into $80 for the PDF tool, $15 for the reporting tool, and $20 unassigned. All $115 counts in the workspace total.

Add hosting and the bills you forgot about

Go back to Connect a provider for other API or infrastructure bills. For example, RealMRR can import Anthropic API costs and Vercel billing charges. Vercel can group charges when it supplies a project. Check the import description in the provider picker. It tells you what that source can actually give you. Then map what you can and compare one completed month against the provider’s billing view.

What about the $120 VPS bill? Say it’s dedicated to the PDF tool and you get an invoice each month. In Finances → Manual costs, click Add a cost. Give it a name, amount and currency. Pick Every month, enter the start date and choose the PDF product.

For a $120 annual software subscription, choose Every year and enter the full $120. In the monthly view, that contributes $10 per month. Use Once for a charge that belongs to one month, like the $20 email overage in this example.

If a single VPS runs both products, decide how you want to allocate it first. You can leave a shared bill unassigned and see it in the workspace total. If you have a split you can explain, enter the two shares as separate costs and make sure they add back up to the bill. Giving each product the full invoice is a pretty effective way of making neither look worth running.

Check tracked profit for the month

Back in Product totals, look at Net revenue, Expenses and Tracked profit for the month you picked. MRR is the recurring subscription figure. Net revenue deducts the fees and refunds reported by your payment source. The profit column takes that net revenue and subtracts the expenses you’ve recorded for the period.

Here’s where the example lands. All figures are in USD for the same completed month.

Product Net revenue Recorded expenses Tracked profit
PDF tool $1,000 $230 ($80 OpenAI + $120 VPS + $10 software + $20 email) $770
Reporting tool $250 $15 OpenAI $235
Unassigned $0 $20 OpenAI −$20
Workspace $1,250 $265 $985

The two products show $1,005 between them. The workspace shows $985. Where did the other $20 go? Check Unassigned before you assume the numbers are wrong. If you can identify which product incurred that charge, map it and watch the product figures change. The workspace total should stay at $985.

And if the app shows a suspiciously good month, check for a pending or failed import. Open your billing pages and compare the dates and amounts. Look for a bill you paid outside a connected provider. I’d do that before sharing a number publicly. A missing bill gives you a very flattering profit figure right up until you remember to put it in.

If you’ve got several products, I’d start with the one that has the messiest bill. Add one revenue source and one cost source, map them, then see if you can explain the result. Open RealMRR.

Keep reading

All writing

Software. Football. Heavy metal.

Aakash HowladerSame person. Different playgrounds.