Whenever someone suggests adding an AI feature like a chatbot or document summaries to a service, one question always follows: "So how much will it cost per month?" LLM APIs are pay-as-you-go, so there is no fixed monthly fee. But if you know a few numbers, you can get a fairly close estimate before development starts.
Cost comes down to three numbers
LLM API cost is set by three things: the number of calls, the number of tokens, and the unit price. A token is the small unit AI uses to split up and count text. The question, instructions and reference material you send are 'input tokens', and the answer the AI returns is 'output tokens'. Official pricing pages usually show unit prices per 1 million tokens.
Monthly cost ≈ monthly calls × (input tokens + output tokens) × unit price
Input and output have separate unit prices, though, so in practice you multiply them separately.
Monthly cost ≈ calls × (input tokens × input price + output tokens × output price)
Let's calculate once with example numbers
Say you're adding a feature that drafts replies to customer inquiries.
| Item | Example number |
|---|---|
| Calls per day | 1,000 (30,000 over 30 days) |
| Input tokens per call | 1,500 |
| Output tokens per call | 500 |
| Input price | $1 per 1M tokens (example) |
| Output price | $5 per 1M tokens (example) |
Input is 30,000 calls × 1,500 tokens = 45 million tokens, so $45. Output is 30,000 calls × 500 tokens = 15 million tokens, so $75. Together that's $120 a month (example). Output costs more even though there are fewer output tokens, because the output price is higher. In Claude's actual price list, too, every model's output price is set higher than its input price.
Add a buffer for testing, retries and growing usage on top of this figure, and you have your budget.
Cutting cost 1: use prompt caching for the part that's the same every time
A reply-drafting feature sends some front matter that's identical every time — a company introduction, tone rules, sample answers. If you cache (temporarily store) that part, later calls can read it back cheaply.
Anthropic's pricing documentation says cache reads are charged at 0.1× the base input price (lower on some newer models), while the first write to the cache costs 1.25× for 5-minute retention or 2× for 1-hour retention. OpenAI's price list also shows a separate 'cached input' price.
For example, if 1,000 of the 1,500 input tokens are the same every time and cache reads are 0.1×, input cost drops from $45 to about $18 (example, excluding write cost).
Want a written plan for where to start?AI Readiness Assessment, KRW 490K · priorities and expected scope in a reportRequestCutting cost 2: try a smaller model first
Easy jobs such as classifying inquiries, short summaries or filling in a fixed format can often be handled well by a small model. Official price lists show unit prices varying by up to dozens of times between models from the same company. Run things on a small model first, and only send the jobs where results fall short to a larger model.
Cutting cost 3: cap answer length
Output is priced higher, so cost climbs quickly as answers get longer. Set a maximum number of output tokens on the API call, and add a length condition such as "within 3 lines" to your instructions. In the example above, shortening answers from 500 to 300 tokens takes output cost from $75 to $45 (example).
For work that doesn't need an immediate answer — say, summarizing documents piled up overnight in one go — look into batch processing as well. Claude says it applies a 50% discount on both input and output for batch processing, and OpenAI's price list also shows separate Batch prices lower than the standard ones.
A worksheet to fill in before development
- Estimated daily calls for each feature
- Measured input and output tokens with real question and answer samples
- Noted the unit price of the model you'll use, and the date you checked it, from the official pricing page
- Marked the fixed front matter that can be cached
- Separated jobs a small model can handle and jobs to run as batches
- Set a monthly usage limit and alerts
SOL LABS AI works on LLM integrations such as the Claude API as part of its AI feature development work. Whatever model you use, filling in this worksheet before development begins makes it much easier to settle feature scope and budget together.
References
- Anthropic, Claude API pricing documentation (Pricing · prompt caching multipliers · batch discount, checked 2026-11-09): https://platform.claude.com/docs/en/about-claude/pricing
- Claude pricing page, API section (input, output and cache prices by model, 50% batch discount, checked 2026-11-09): https://claude.com/pricing#api
- OpenAI, API pricing documentation (Pricing · input, cached input and output prices, Batch prices, checked 2026-11-09): https://developers.openai.com/api/docs/pricing
We share AI tips like these every week on SOL AI's Instagram, @sol_ai_kr.
In a one-hour AX consultation we map AI candidates and similar cases for you.