ai-economics

v1.0.1
pl.piszczek/ai-economics Checked 4 days ago Published 4 months ago

12 calculators for AI cost, energy and agent verification.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

revocation_exposure

Revocation Exposure: How long does a revoked token keep working across gateways, caches and workers? Returns the worst-case exposure window, an A–F grade and the weakest enforcement point. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/revocation-exposure. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
batchstringbatch/worker enforcement (default 'off') — 'jwt' | 'intro' | 'poll:N' (seconds) | 'off'
edgestringedge/CDN enforcement (default 'jwt') — 'jwt' | 'intro' | 'poll:N' (seconds) | 'off'
gwstringAPI gateway enforcement (default 'intro') — 'jwt' | 'intro' | 'poll:N' (seconds) | 'off'
meshstringservice-mesh enforcement (default 'jwt') — 'jwt' | 'intro' | 'poll:N' (seconds) | 'off'
ratenumberrequests/min of one credential (default 60)
ttlnumberaccess-token TTL in seconds (default 3600)

proof_adjusted_autonomy

Proof-Adjusted Autonomy (PAA): How autonomous is an AI agent once proof is required? PAA = P(A) × P(C|A) × P(R|A,C) × P(T|A,C,R). Returns the honest percentage, the gap vs claimed autonomy and the single gate where +5pp pays most. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/proof-adjusted-autonomy. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
anumberautonomous completion % (default 90)
cnumbercomplete evidence % (default 95)
rnumberindependent validation % (default 80)
tnumbertimeliness % (default 90)

token_cost

AI Token Cost: What does a monthly token volume cost across GPT, Claude, Gemini and DeepSeek? Input/output priced separately, prompt-cache discount applied. Returns the ranked bill per model. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/token-cost. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
cachenumberprompt-cache hit % (default 40)
innumberinput Mtok/month (default 200)
outnumberoutput Mtok/month (default 20)

context_window

Context Window: How many tokens is this content, does it fit the window, and what does carrying it cost per request? All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/context-window. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
amountnumberquantity (default 50)
pricenumber$ per 1M input tokens (default 3)
unitstringwords | pages | chars | loc (default pages)
windownumbercontext size in tokens (default 128000)

agent_hour

Agent-Hour Cost: Fully-loaded cost of one AI agent-hour: compute plus human verification, vs the human hour it replaces. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/agent-hour. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
human_ratenumberhuman $/h it replaces (default 60)
pricenumberblended $/1M tokens (default 6)
review_minnumberhuman verification minutes per agent-hour (default 15)
tokens_mnumberMtok consumed per agent-hour (default 1.5)

model_routing

Model Routing Savings: How much does routing the routable share of a workload to a cheaper tier save per month and per year? All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/model-routing. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
rationumbercheap tier price as % of flagship (default 20)
sharenumberroutable share % (default 60)
spendnumbermonthly flagship spend $ (default 15849)

llm_energy

LLM Energy: How much electricity does an AI query use? Tokens → Wh, joules, dollars, CO₂ and real-world equivalents. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/llm-energy. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
gco2_kwhnumbergCO₂ per kWh (default 400)
j_per_tokennumberjoules per token (default 1)
queriesnumberqueries per day (default 1000)
tokensnumbertokens per query (default 1000)
usd_kwhnumber$ per kWh (default 0.15)

joules_per_verified_task

Joules per Verified Task: Which model is most energy-efficient per task that actually passes verification? E = tokens × J/token ÷ pass rate — a lighter model with a lower pass rate can still win. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/joules-per-verified-task. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
janumbermodel A J/token (default 1)
jbnumbermodel B J/token (default 0.3)
panumbermodel A verified pass % (default 80)
pbnumbermodel B verified pass % (default 55)
tanumbermodel A tokens/attempt (default 8000)
tbnumbermodel B tokens/attempt (default 15000)

token_burn

Token Burn Meter: Org-wide token burn as money, kilowatt-hours, CO₂ and households powered — per day and per year. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/token-burn. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
gco2_kwhnumbergCO₂ per kWh (default 400)
j_per_tokennumberjoules per token (default 1)
pricenumberblended $/1M tokens (default 4)
tokens_daynumbertokens per day (default 316000000)

humanoid_energy

Humanoid Energy Budget: How long can a humanoid robot run per charge? Splits the battery between actuation, inference and idle. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/humanoid-energy. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
actuation_wnumberW while moving (default 400)
battery_kwhnumberbattery capacity kWh (default 2)
compute_wnumberinference W, always on (default 150)
dutynumberactive duty cycle % (default 60)
idle_wnumberoverhead W (default 40)

verification_bottleneck

Verification Bottleneck: Agents generate in parallel, humans review in series. Computes the real agent-fleet ceiling from review capacity, minutes per task and rework rate. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/verification-bottleneck. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
agentsnumberplanned agents (default 10)
hoursnumberreview h/person/week (default 6)
min_per_tasknumberreview minutes per task (default 10)
reviewersnumberpeople reviewing (default 4)
reworknumberrework % (default 20)
tasks_per_agentnumbertasks per agent per week (default 60)

proof_debt

Proof Debt Accumulator: What does unverified AI work cost over time? Backlog, deferred-review premium and expected incident liability. All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/proof-debt. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.

ParameterTypeDescription
incident_costnumber$ per incident (default 25000)
incident_pctnumberincident %/unverified task (default 0.5)
late_multnumberlate-review multiplier (default 3)
tasks_weeknumbertasks per week (default 224)
unverifiednumber% shipped unverified (default 35)
verify_costnumber$/task to verify now (default 15)
weeksnumberhorizon in weeks (default 26)