LLM Self-Host vs API Cost Calculator
llm_self_host_vs_api_calculatorLLM Self-Host vs API Cost Calculator — Find the monthly token volume where self-hosting an LLM on rented GPUs beats paying per token for an API. Compare costs, GPUs needed, and breakeven point.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"monthlyInputTokensM": "<monthlyInputTokensM>",
"monthlyOutputTokensM": "<monthlyOutputTokensM>",
"apiModelId": "<apiModelId>",
"gpuId": "<gpuId>",
"gpuHourlyUsd": "<gpuHourlyUsd>",
"throughputTokensPerSec": "<throughputTokensPerSec>",
"utilizationPct": "<utilizationPct>"
},
"name": "llm_self_host_vs_api_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gpuId | Yes | ||
| apiModelId | Yes | ||
| gpuHourlyUsd | Yes | ||
| utilizationPct | Yes | ||
| monthlyInputTokensM | Yes | ||
| monthlyOutputTokensM | Yes | ||
| throughputTokensPerSec | Yes |