GTM Engineering term, AI and agents

Inference Cost

Inference cost is the money spent each time an AI model processes a request, usually billed per input and output token, and it adds up fast in high-volume GTM automations.

Also called: inference cost, LLM cost, token cost, AI model cost, inference costs

Inference Cost sits under every stage: it's part of the data and systems the whole funnel runs on, near related terms like Token, Model Routing and Context window (the blue squares).

Inference cost is the money you pay each time an AI model processes a request. Training builds the model. Inference is running it. Most providers bill inference per token, with separate prices for input and output. For one chat it rounds to zero. For an enrichment job across 200,000 CRM records, it becomes a budget line.

How it works

A token is a chunk of text, roughly three quarters of an English word on average. You pay for tokens you send and tokens the model writes back.

The basic formula:

Inference cost = (input tokens x input price) + (output tokens x output price)

Then multiply by volume. Several factors move the number:

  • Model tier: larger large language model tiers can cost many times more per token than small ones.
  • Prompt size: long instructions, examples and pasted data are paid on every call. A big context window is a capability, not a reason to fill it.
  • Output length: output usually costs more per token than input, so verbose answers hurt.
  • Reasoning: a reasoning model produces thinking tokens that you usually pay for.
  • Retries and loops: agents that call the model ten times per task cost ten times as much.
  • Discounts: prompt caching and batch pricing can lower the bill where offered.

Example

A team wants AI to research and tier 100,000 accounts a quarter (all prices and numbers hypothetical). Each call sends 3,000 input tokens and returns 400 output tokens.

Setup Input price per 1M Output price per 1M Cost per call Cost per quarter
Large model on every row $5.00 $25.00 $0.025 $2,500
Small model on every row $0.50 $2.00 $0.0023 $230
Small model, large model on 10% unclear rows mixed mixed about $0.0048 about $480

Per call for the large model: 3,000 x $5 / 1,000,000 = $0.015 input, plus 400 x $25 / 1,000,000 = $0.010 output. Total $0.025.

If the small model alone is accurate enough on a test set, the team saves about $2,270 a quarter. If it misses too often, the mixed setup gets most of the accuracy for a fraction of the cost. That mixed approach is model routing.

By company size

Small business: Most owners pay a flat monthly subscription and never see token costs. They show up when a tool bills by usage, like an AI phone answering service or a chatbot priced per conversation. Watch per-use pricing as volume grows.

Mid-market: This is where surprise bills happen. A GTM engineer ships an enrichment workflow, it runs on every new lead plus a backfill, and spend jumps tenfold. Set budget alerts, log tokens per workflow, and review the top five spenders monthly.

Enterprise: Finance wants cost per outcome, not total spend. Teams track cost per enriched account, per drafted email or per resolved ticket, and compare it to the human cost it replaces. Committed-use contracts and internal chargebacks by team are common.

Inference cost vs total AI cost

Inference is usually the most visible line, but rarely the whole cost. Engineering time, data provider fees, evaluation work and human review often cost more. Judge an AI workflow on its unit economics: total cost per useful result.

Why it matters for GTM teams

AI costs scale with volume, not headcount, which is great until nobody is watching. A workflow that looked free in testing can cost real money at production volume. We'd estimate cost on a real sample before launch, start every job on the smallest model that passes the test set, and run non-urgent jobs through batch processing when the provider discounts it. Then we'd track cost per useful output, not just the monthly invoice.

Common mistakes

  • Testing on 10 records and assuming the cost scales politely.
  • Sending the whole CRM record when the model needs three fields.
  • Using the most powerful model for simple tagging jobs.
  • Ignoring output length and reasoning tokens in estimates.
  • Letting agents loop with no cap on calls per task.
  • Re-enriching records that have not changed since last run.

FAQ

Why do output tokens cost more than input tokens?

Generating text is more compute-heavy than reading it, because the model produces output one token at a time. Most providers price output tokens several times higher than input tokens. That is why long answers and long reasoning can cost more than a long prompt.

How do I estimate inference cost before building a workflow?

Run the prompt on 20 to 50 real records, log the input and output tokens for each, and average them. Multiply by your expected monthly volume and the model's published prices. Add a buffer for retries and prompt changes, since real usage almost always runs above the first estimate.

What is the fastest way to lower inference cost?

Use a smaller model for easy steps, trim prompts and data you send, and cache repeated content like long instructions where the provider supports it. Batch APIs, where available, often cost less for work that does not need an instant answer.

See all AI and agents terms ↳