AI Inference Cost Calculator Guide: OpenAI API vs. AWS Bedrock vs. Self-Hosted GPU
Convert tokens, instance-hours and idle capacity into cost per successful request.
Start with a repeatable unit of work
Replay a representative sample of requests through each deployment. Hold the quality threshold, response length and latency target constant. Count retries and failed generations in the bill, then divide by successful requests. A cheaper token rate can lose its advantage when an endpoint needs a second attempt.
Price OpenAI and Bedrock from the meter
For token-metered inference, multiply uncached input, cached input and output tokens by their respective rates. Normalize prices to the same token quantity. Add applicable cache-write, tool, batch or provisioned-capacity charges. On Bedrock, choose the exact model, region and inference mode before recording your rates.
For an illustrative million successful requests with 800 input and 200 output tokens each, the meter records 800 million input and 200 million output tokens before retries. At example prices of $1 and $4 per million respectively, the invoice is $1,600, or $1.60 per thousand successful requests. These are example rates. Use the live model listings for a purchase decision.
Charge the GPU for idle hours too
A $2/hour instance kept online for 730 hours costs $1,460. With $200 of storage, networking and operations, the monthly total is $1,660. Against the example API cost of $0.0016 per request, break-even is 1,037,500 successful requests a month. Check that one instance can sustain that volume at peak load and meet your latency target.
In the homepage calculator, enter the chosen inference bill under AI and subtract it from general cloud spend if it already appears on your AWS bill. Use rates from OpenAI, Amazon Bedrock and EC2 On-Demand.