LLM Inference Cost and Gross Margin Calculator
calc_llm_inference_costEstimates monthly LLM spend, cost per user and per request, prompt-cache savings, savings from routing a share of requests to a cheaper model, and gross margin against a target, for an AI product on any current Claude, GPT, Gemini, DeepSeek or Grok model at list price. Compares 9 common models. Same math and the same dated price file as https://modevc.com/tools/llm-inference-calculator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Main model. Web default claude-sonnet-5-5. | |
| route_model | No | Cheaper model for routed requests. Web default claude-haiku-5-5. | |
| cache_hit_pct | No | Share of input tokens served from the prompt cache, in percent. Web default 40. | |
| route_share_pct | No | Share of requests sent to the cheaper model, in percent. Web default 0. | |
| requests_per_user | No | Requests per user per month. Web default 40. | |
| target_margin_pct | No | Target gross margin after model costs, in percent. Web default 80. | |
| price_per_user_usd | No | Monthly revenue per user in USD. Web default 20. | |
| monthly_active_users | No | Web default 5,000. | |
| input_tokens_per_request | No | Web default 1,200. | |
| output_tokens_per_request | No | Include thinking tokens. Web default 400. |