Estimate monthly AI API cost and margin
estimate_costEstimate monthly AI API costs for one model and a SaaS workload, including token and request costs, revenue, gross profit, margin, and break-even points.
Instructions
Estimate the monthly AI API bill for one model and a SaaS workload: token costs (uncached input, cached input, output), cost per request, total cost with other variable and fixed costs, revenue, gross profit, gross margin, break-even price per user and break-even users. Start from a use_case preset and override any number.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id or name from list_models, e.g. gpt-6.1-sol or Claude Sonnet 5.5. Default: gpt-6.1-sol. | |
| users | No | Monthly active users. | |
| use_case | No | Preset workload to start from: chat (AI chat assistant), support (support bot), summarizer, documents (document processing). Any number you pass overrides the preset. Default: chat. | |
| custom_rates | No | Use your own rates instead of a listed model, for example a negotiated price or a model not in the list. | |
| input_tokens | No | Average input (prompt) tokens per request. | |
| output_tokens | No | Average output tokens per request. | |
| price_per_user | No | Subscription price per user per month in USD, used for revenue and margin. | |
| cached_input_pct | No | Share of input tokens served from the prompt cache, 0 to 100. | |
| requests_per_user | No | AI requests per user per month. | |
| fixed_monthly_cost | No | Fixed monthly cost in USD, such as hosting and team tools. | |
| extra_cost_per_request | No | Other metered cost per request in USD, such as search, tool calls or storage. Default 0. | |
| variable_cost_per_user | No | Other variable cost per user per month in USD. |