answrsnow
Revenue Operations · Explainer

How Do AI Inference Costs and AI Product Gross Margins Work in 2027?

By Kory White · Updated Oct 2026 · 7 min read
A Claude chat window open on a laptop
Direct answer

Every time an AI feature answers a request, the vendor pays for the tokens it reads and writes. Those fees are billed per million tokens, they scale with usage, and they land in cost of revenue. Classic software costs little to serve one more user, so margins stay high. AI products pay a real variable cost per request, so a heavy user can erase the margin on a flat-price plan.

Public companies say the same thing. Snowflake's CFO told investors that AI workloads "carry a lower contribution margin today" and guided full-year product gross margin to 74%. Duolingo, by contrast, credited "continued reductions in per-unit third-party AI costs" for gross margin of 72.6%. The direction depends on which way unit costs and usage move.

The levers are well documented: send easy work to smaller models, cache repeated prompt prefixes, use batch pricing for work that can wait, keep prompts and outputs short, and price the product so heavy usage pays for itself. The sections below give the list prices, the cost lines, the filings, and an illustrative calculation, with a link for each fact.

How inference is priced

The major model providers publish list prices in dollars per million tokens, with output tokens priced higher than input tokens and discounted rates for cached input and batch jobs. These are the official pages, read on October 18, 2026:

The spread is the point. The same page lists models many times apart in price per token, so the model you route a request to matters as much as how many requests you serve.

Prices change, sometimes in both directions. Anthropic's page says a scheduled increase for Claude Sonnet 5 to $3/$15 on September 1, 2026 will not occur. Google's page lists Gemini 3.8 Flash at $0.75 input and $3.75 output through December 31, 2026, then double those rates from January 1, 2027. Check the current pages before you budget.

What goes into cost of revenue for an AI product

Inference is the new line, but it is not the only one. A fair gross-margin model has these parts:

What public companies have reported

Only statements from filings and earnings calls are used here. Neither company gives an AI-only margin.

The firm

“For FY 2027, we now expect 74% non-GAAP product gross margin. This revised outlook includes a higher revenue mix from fast growing AI workloads, which carry a lower contribution margin today.”

— Snowflake CFO Brian Robins, Q2 fiscal 2027 call (corrected transcript), September 2, 2026
Source: Snowflake's corrected transcript. On the same call the CEO said cost "has absolutely become a concern" as models have become more powerful. For how Snowflake bills and routes these models, see our Snowflake example.
The firm

“Total gross margin increased to 72.6% from 72.4% during the three months ended June 30, 2026 and 2025.” … “reflecting continued reductions in per-unit third-party AI costs.”

— Duolingo Form 10-Q, quarter ended June 30, 2026
Source: Duolingo's 10-Q. The Q2 shareholder letter guides to "approximately 71.0% in Q3 and approximately 71.6% for the full year, better than the trajectory we outlined on our Q1 call based on AI cost trends."

Read together: AI cost is a real swing factor for margin in both directions. Snowflake attributes pressure to mix shifting toward AI workloads. Duolingo reports margin gains as the per-unit cost of AI falls, while it expands AI features at a "measured pace." Neither statement says AI products are unprofitable; both say margin now depends on unit cost and usage mix.

Levers that improve AI gross margin

Pricing models that protect margin

Flat per-seat pricing puts the usage risk on the vendor. Three structures move it back:

Whichever you choose, the list prices above change, so build the ability to reprice or reroute into the contract and the product.

A worked example: one subscription, four setups

Illustrative arithmetic, not a company's reported numbers. It uses the Claude list prices cited above: Sonnet 5.5 at $2 input and $10 output, Haiku 5.5 at $0.10 and $0.50, and Sonnet 5.5 cache hits at $0.10. It counts inference only and ignores hosting, support and payment fees.

Assume a $20 monthly subscription, and that each request has 3,000 input tokens and 500 output tokens.

The lesson is the shape, not the figures: with flat pricing, margin is set by your heaviest users and your model choice, and each lever above moves it.

Questions people ask

Why are AI product gross margins lower than classic SaaS?

Because each request carries a variable cost. Providers bill per million tokens, and that fee lands in cost of revenue. Snowflake's CFO said AI workloads "carry a lower contribution margin today."

Are inference prices going up or down?

Both happen. Anthropic's pricing page says a planned increase for Claude Sonnet 5 to $3/$15 will not occur, while Google's page lists Gemini 3.8 Flash at double its current rates from January 1, 2027. Snowflake's product executive said frontier models have been "revising prices down on a regular basis."

What is the fastest lever to improve AI margin?

Usually routing easy requests to a smaller model and caching repeated prompt prefixes. In the illustrative example above, those moves take the heavy-user margin from -10% to 73.6% and 28% respectively.

Is batch pricing worth using?

For work nobody waits on, yes. Anthropic documents a 50% batch discount and Google lists a 50% cost reduction for its Batch API. Real-time features cannot use it.

Do these numbers apply to my product?

No. The worked example is illustrative arithmetic on list prices, with assumed request sizes. Measure your own tokens per request and requests per user, then recompute.

Sources

Prices, models and company guidance change often. Figures here were read from the linked pages on October 18, 2026; confirm against the current pages before you commit budget. The worked example is arithmetic on list prices, not a forecast.