Cost: buy vs rent vs API
cost_compareBuy vs rent vs API cost to run a model locally: monthly/1y/3y totals, break-even months, and the energy cost per 1M tokens. Same math as /cost-calculator/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | No | API $/million tokens (default 1.0) | |
| kwh | No | Electricity $/kWh (default 0.16) | |
| rent | No | Cloud GPU $/hour (default 0.59) | |
| hours | No | Active hours per day (default 3) | |
| tdp_w | No | For custom hardware: board power draw in watts | |
| tokens | No | Tokens generated per day, for the API comparison (default 300000) | |
| hardware | No | Catalogued hardware name/id (see list_hardware), e.g. 'rtx-3090-used' | |
| price_usd | No | For custom hardware: price in USD |