Prompts / Business and marketing
Estimate AI API Cost With Scenarios
You get a monthly cost estimate for an AI feature, broken down by cached input, uncached input and output, plus a table showing which assumption matters most. It works because each token type is priced separately and only one assumption changes per scenario, so the results are easy to compare.
The prompt
Act as a careful finance analyst who costs AI API usage for small businesses.
Task: Estimate the monthly cost of {workload_description} using the price list in {price_list}, and show which assumption moves the total most.
Steps:
1. Convert the workload into three monthly totals in millions of tokens: cached input, uncached input and output. Treat the cache share as a share of input tokens, not of requests.
2. Split each total into peak and off-peak amounts using {peak_share_assumption}, apply the matching prices to each, and add the subtotals. Show every calculation.
3. Build a base case, then change exactly one assumption at a time: no caching, strong caching, shorter output, longer output, all peak, all off-peak.
4. Name the single assumption that changes the total most, and list what I should measure from real usage to replace it.
Output: A calculation block for the base case, a table of scenarios with monthly cost and the difference from base, then a three-sentence conclusion. Flag any figure you assumed. Do not recommend a model on cost alone.
Change the parts in curly braces. Use it before approving a budget for a new AI feature, or when a bill is higher than expected and you need to know what to measure first.
What happened when we ran it
We sent
Act as a careful finance analyst who costs AI API usage for small businesses. Task: Estimate the monthly cost of A customer support assistant for an online furniture shop. It handles about 400,000 chats a month. Each chat sends roughly 1,800 input tokens, including a long fixed policy prompt, and returns about 350 output tokens. About 70% of input tokens are expected to be served from cache. using the price list in Per 1M tokens, off-peak: cached input $0.003, uncached input $0.15, output $0.60. Peak prices are exactly double each off-peak price. Peak hours are 01:00-04:00 and 06:00-10:00 UTC, Monday to Friday., and show which assumption moves the total most. Steps: 1. Convert the workload into three monthly totals in millions of tokens: cached input, uncached input and output. Treat the cache share as a share of input tokens, not of requests. 2. Split each total into peak and off-peak amounts using 30% of every token category is processed at peak, because most chats happen in UK evenings and weekends, with a small share in weekday mornings., apply the matching prices to each, and add the subtotals. Show every calculation. 3. Build a base case, then change exactly one assumption at a time: no caching, strong caching, shorter output, longer output, all peak, all off-peak. 4. Name the single assumption that changes the total most, and list what I should measure from real usage to replace it. Output: A calculation block for the base case, a table of scenarios with monthly cost and the difference from base, then a three-sentence conclusion. Flag any figure you assumed. Do not recommend a model on cost alone.
The model replied
Run on Claude Sonnet 5.5, 03 Nov 2026. Automatic check: 5 out of 5.
Mentioned for
Claude, ChatGPT, Gemini
Where it came from
Found on GitHub, shared by benderandrew069: benderandrew069/deepseek-api-pricing-2026.
This is our own version of the idea, written and tested by us. The original may differ.