API vs GPU inference cost calculator
Decide whether to keep a metered API or validate one rented GPU for the same interactive workload. Compare billed costs and check whether both choices meet your latency and task-quality limits.
All calculations run in this page. Use short references and summary numbers. Keep prompts, customer records, credentials and private endpoint URLs out of the tool. Downloads contain the numbers entered.
Workload and decision limits
Use the same model revision, workload, frozen task set and scoring rubric for both options. Use the same currency and tax treatment throughout.
Current metered API
Enter flat input and output rates. The calculator does not predict cache hits, model tiers or commitments. For a verified fixed cache mix, check the cached-input example before entering an effective input rate. Keep the token split and tariff with the report and rerun each mix separately. Enter zero only when a charge is known to be zero.
Rented GPU alternative
Enter full-window minimum hours for a GPU you pay for continuously. For flexible billing, estimate the share of billed hours spent serving at the measured sustainable rate. The scenario rounds billed hours up to the next whole hour. Include migration and validation costs.
Ask for a free fit check if a real buying decision still turns on an unknown. The draft contains blank prompts. Read what the £450 review covers.
Recheck a saved comparison
Choose a saved JSON file, then update prices or trial results. Compare again to see what changed. Reassessment requires the same workload, decision limits and configurations.
When a lower bill raises cost per accepted task
In this fictional three-month comparison, both deployments meet the buyer’s workload limits. The API costs US$3,660 and accepts 994 of 1,000 trial tasks. The GPU costs US$3,650 including migration and accepts 984 of the same 1,000 tasks. Assume the trial rates apply to 1.8 million attempted tasks over three months.
- API: US$3,660 ÷ 1,789,200 projected accepted tasks × 1,000 = US$2.05 per 1,000 accepted tasks.
- GPU: US$3,650 ÷ 1,771,200 projected accepted tasks × 1,000 = US$2.06 per 1,000 accepted tasks.
The GPU bill would need to fall to about US$3,623 to reach unit-cost parity at these acceptance rates (US$3,660 × 984 ÷ 994). The difference here is small. Repeat the trial or keep the incumbent when a narrow advantage depends on the stability of the acceptance rate.
Collect paired latency, quality and billing evidence before entering your own numbers.
How the comparison works
- API cost uses billed attempts and token rates, subject to the monthly minimum, plus fixed charges.
- GPU cost uses attempts divided by the productive share of paid hours and the lower of measured sustained rate and the workload’s peak. This avoids assuming the GPU serves more requests per second than arrive. Minimum billed hours, recurring charges and one-time migration costs are included.
- Both options need date-valid quotes and matched application evidence from the last 30 days. We require at least 100 paired tasks and apply a two-sided 95% Wilson interval’s lower bound to the accepted-task rate.
- A GPU can qualify for validation only if it meets required quality, first-token latency and peak rate, fits the monthly hours, and lowers total cost and cost per accepted task across the utilization range.
- When the paired evidence and available hours qualify, the result shows the highest hourly GPU quote in whole cents or pence that could meet the cost checks across the stated range, with other charges fixed.
Results are estimates using your inputs and extend the quoted price across the decision horizon. They cover one API and one GPU configuration for the same model revision. This tool does not evaluate cross-model quality, hybrid routing or guaranteed capacity. Read the GPU cost guide for the underlying benchmark method.