compare_llm_vs_selfhost
Compare monthly LLM API token costs with self-hosting GPU servers on AWS, Azure, GCP and OCI, and find the break-even volume from measured throughput.
Instructions
Pay per token or rent GPUs and serve the model yourself? Prices a monthly token volume on an LLM API, then the GPU servers needed to serve the same volume on AWS, Azure, GCP and OCI, and the break-even volume. Needs the measured generation throughput of one server (output tokens/second, e.g. from a vLLM benchmark): it decides the answer and is never guessed. Use for: 'should we self-host Llama 3.3 70B instead of paying Together', 'at what volume do H100s beat the DeepSeek API', 'cheapest cloud to serve our open model'. Self-host cost is GPU rental only; see honest_gaps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | API model ID to price, as in the LLM catalogue, e.g. 'deepseek/deepseek-chat', 'together_ai/meta-llama/Llama-3.3-70B-Instruct-Turbo'. | |
| targets | No | ||
| gpu_type | Yes | GPU to self-host on: T4, L4, A10, A10G, L40S, V100, A100, H100. | |
| gpu_count | No | GPUs per server. | |
| utilization | No | Share of each hour the server is busy. Real traffic is bursty; 0.4-0.7 is typical. | |
| api_provider | No | Host for the API price. Default: first-party. | |
| prefill_speedup | No | How much faster input (prefill) is processed than output is generated. | |
| monthly_input_tokens | No | ||
| monthly_output_tokens | No | ||
| output_tokens_per_second | Yes | Measured aggregate generation throughput of ONE server of this size for this model, across concurrent requests. |