Free ToolAI Profitability

AI API Margin Calculator

Enter your monthly numbers to see your LLM gross margin, cost per customer, and AI API profitability — instantly, no signup required.

Your monthly numbers

Total revenue from all customers this month

$

Total LLM API bill this month

$

Number of paying customers this month

Optional — enables cost-per-request metric

Select the model driving most of your API spend

🟢
HealthyYour AI margin is healthy (above 60%)
Gross Margin
70.0%
(Revenue − API spend) / Revenue
Margin per Customer
$350
Revenue/cust − cost/cust
Revenue per Customer
$500
Cost per Customer
$150
GPT-4o API
Break-even Customers
6
customers needed to cover API spend at current pricing
Cost per Request
$0.3
based on 500 req/customer/month
Summary
Monthly revenue$10,000
LLM API spend− $3,000
Gross profit$7,000
Gross margin70.0%

MarginTrace

See margin by customer — not just in aggregate

This calculator shows blended numbers. MarginTrace connects to your real OpenAI and Stripe data to show margin per customer — so you know exactly which customers are profitable.

Start free on MarginTrace

For estimation only. Not financial advice. Results depend on the accuracy of the values you enter.