AI gross margins: why API-heavy startups keep less
AI startup gross margins: why model API bills push cost of revenue up, what investors look at, and how to lift margin without losing quality.
Updated
AI startup gross margins are usually lower than classic software margins because every model call is a cost of revenue. Inference, the bill you pay per token each time a user triggers a model, grows with usage, so a growing product can grow its cost as fast as its revenue.
What gross margin do investors expect from an AI startup?
There is no single number that every investor uses, and this page will not invent one. Investors look at three things: where the margin sits compared with software companies at a similar stage, the trend over the last several quarters, and whether inference cost per dollar of revenue falls as volume grows. Ask the investors you talk to what they expect for your stage and segment, and report the margin the same way every month. A margin that moves steadily toward a higher level is easier to defend than a high number that never changes.
Why do AI companies have low gross margins?
Classic software costs very little to serve one more user. An AI product pays for every call. A customer who sends long documents, retries failed requests, or runs an agent loop costs far more than a light customer on the same plan. Flat monthly pricing then leaves the heaviest users with the thinnest margin. Output is also the expensive part. On Claude list prices, output tokens cost five times as much as input tokens, so a feature that writes long answers costs more to serve than one that only reads.
How do inference costs affect SaaS margins?
Gross margin is revenue minus cost of revenue, divided by revenue. Here is a hypothetical with round numbers. A SaaS product earns $1,000,000 a year. Hosting and support cost $200,000. The model bill is $400,000. Gross margin is ($1,000,000 minus $600,000) divided by $1,000,000, or 40%.
Now usage grows, and the model bill doubles to $800,000 while revenue stays flat. Total cost of revenue is now $1,000,000, and gross margin falls to 0%. Nothing else changed. Price and cost per call are the two levers that move this number. Per-call margin asks whether one request makes money, which is a different question from company-level margin. For that, read AI unit economics.
What is an AI wrapper, and why are its margins thin?
An AI wrapper is a product built on someone else’s frontier API, with little model or data of its own. Its cost of revenue is set by another company’s price list. The vendor can cut prices, which helps. It can also raise them, retire the model you call, or ship a feature that does what your product does. You control none of those. A competitor who calls the same API can match your price. Products with their own trained model, their own data, or a workflow the vendor will not copy have more room.
What counts as LLM API cost of revenue?
Count every token you pay for: input tokens, output tokens, retried calls, reasoning tokens where the vendor bills them, and long prompts you resend on each call. Subtract the discounts you actually get, such as prompt caching and batch pricing. Anthropic lists Claude Opus at $4 per million input tokens and $20 per million output tokens. Claude Haiku is $0.10 input and $0.50 output for prompts up to 100K tokens. Anthropic’s Batch API is half price. Other vendors change their prices often, so check their current pricing page before you build a cost model. For a deeper look at the drivers, see how to cut your LLM API bill.
How do you raise gross margin without cutting quality?
Four moves often help: send easy calls to a cheaper model, cache repeated context, use batch pricing for work that can wait, and shorten prompts that repeat the same instructions. The fifth is to fine-tune an open-weight model for the one high-volume task that eats most of the bill.
Test that move before you count the margin gain: compare the share of correct answers and the cost per 1,000 calls for the current model and the candidate on the same checked inputs, weighted toward the errors customers notice. A cheaper model that sends more work back to support or review can lower gross margin instead of raising it. The full method is in how to build a test set. With Own Weights, the trained model runs in your own environment under your own controls, and it assists people who review its output.
Fine-tuning is the wrong move in several cases. If your volume is low, the training and serving work may never pay back. If the task changes every month, you will keep retraining. If you need one model to handle many unrelated jobs, a hosted frontier API is the simpler choice.
To see where your own cost of revenue comes from, run the free AI cost audit inside your code repository. It reads the code on your machine, makes no network calls while it reads, uploads nothing, and saves a PDF listing your AI calls, models, estimated cost and common problems. If you want help reading the result, book a call with us.
Questions
Why do AI companies have low gross margins?
Each call to a model is billed, so cost climbs with usage instead of staying close to flat as it does in classic software. Pricing that does not follow usage is the usual reason the margin stays thin.
What gross margin do investors expect for AI startups?
Expectations depend on stage and segment, so ask your investors directly rather than trusting a headline number. The trend over recent quarters often matters more than any single figure.
What are AI wrapper margins?
A wrapper is a thin layer over a vendor's model, so most of its cost comes from a price it does not set. That makes its margin depend on decisions made outside the company.
How do inference costs affect SaaS margins?
Inference is usually booked as cost of revenue, so higher model usage lowers gross margin even when revenue holds steady. The effect is largest where one user action triggers several model calls.
What counts as LLM API cost of revenue?
Count input and output tokens, retried calls, and any reasoning tokens the vendor bills, then subtract real discounts such as caching and batch pricing. Check each vendor's current pricing page before you forecast.