🧮 Chapter 07 · Cost Calculator

Token Billing Calculator

Cloud API vs Microsoft Foundry Local — see where the money goes. Compare GPT-4o, GPT-5, DeepSeek, and Qwen against $0/month local inference.

Cloud API Cost Calculator

Compare API billing vs Foundry Local — see your annual savings

GPT-4o
$0.0050 / 1K
Cloud
GPT-5
$0.0150 / 1K
Cloud
DeepSeek
$0.0014 / 1K
Open API
Qwen
$0.0004 / 1K
Open API
GPT-4o$0.0050 per 1,000 tokens
Tokens per request (prompt size)
3,000
Number of users
1,000
Requests per user per day
10
Tokens / day
30M
total tokens
Cost / day
$150
at $0.005 / 1K
Cost / month
$4,500
30 days
Weekly Cost Comparison
GPT-4o Foundry Local
☁ GPT-4o (Cloud)
$4,500 / mo
billed per token
💻 Foundry Local
$0 / mo
hardware already paid
Annual savings: $54,000
Get started
winget install Microsoft.FoundryLocal
foundry model run phi-4-mini
✓ $0/month · <50ms · data stays local
Learn About Foundry Local →