Skip to content
Preptima
mediumScenarioDesignMidSeniorStaff

Before we build this, how do you estimate what the LLM feature will cost to run?

6 min readUpdated 2026-08-15

Answer

Short answer

Write down requests per day, input tokens per request and expected output tokens, multiply by the provider's per-million rates, then test each assumption. Output tokens cost several times input, retries and agent loops multiply the input, and a cached prefix rewrites the arithmetic.

Was this answer helpful?

Likely follow-ups

  • Which assumption in your model would you validate first with a spike, and how?
  • Your agent averages eight tool steps. What does that do to the input side of the estimate?
  • At what volume does self-hosting become worth comparing, and what changes in the model when you do?
  • How do you attribute cost to a customer or a feature once this is live?

Related questions

Masterclass guide