An editorial model of monthly model spend for a coding-assistant inference workflow across countries.
The screenshot above shows the opening frame of the project: the fixed monthly coding-assistant inference scenario, the headline spread in the estimate, and the editorial setup for the country cost gap.
This project asks a simple question:
If you hold the same coding-assistant inference workflow constant, where does the estimated monthly model spend land lowest?
The site is built as an editorial story, not a live benchmark. It combines current model API pricing with country-level electricity and price-level proxies to show how the same inference workload can look different across national cost conditions.
- A sourced editorial model
- A comparison of the same monthly coding-assistant inference workflow across countries
- A way to explore how electricity and local price levels can move estimated inference spend
- A narrative UI built around cost gap -> power -> PPP-adjusted second view -> implications
- Not a live benchmark of what companies actually pay
- Not a map of local API list prices by country
- Not a benchmark of retail AI seat prices for tools like Cursor, ChatGPT, or Claude
- Not a complete measure of real-world AI infrastructure quality
The current country model is intentionally narrow. It does not directly model datacenter maturity, GPU availability, network quality, enterprise discounts, caching, SaaS markup, taxes beyond the price-level proxy, or procurement terms.
The standard scenario is:
- 1 month of a coding-assistant inference workflow
22 workdays10 coding sessions / day~45K total tokens / session9.9M total tokens70% input / 30% output
The model basket is weighted toward coding-relevant inference usage and currently uses official list prices reviewed on April 20, 2026 for:
- OpenAI
- Anthropic
- Start with a coding-focused basket of model API prices.
- Convert that basket into a fixed monthly inference scenario.
- Adjust the scenario by country using:
- a World Bank business-electricity benchmark
- a World Bank price-level ratio
- Show the result as an estimated monthly model spend
- Add a PPP-adjusted second view for affordability context
This is the core formula used in the app:
monthly inference cost =
base monthly basket × (
0.50 baseline +
0.35 × electricity / median electricity +
0.15 × price level ratio
)This second screenshot shows the explanatory middle of the story: the power chart that anchors the main cost lever in the model, followed by the PPP-adjusted view that adds a second affordability lens.
This repo is intentionally written as an estimate and editorial model.
That matters because:
- API prices are mostly global
- country differences here come from the model inputs, not vendor country pricing pages
- lower estimated cost does not automatically mean stronger real-world AI infrastructure
For example, if one country ranks cheaper than another, that only means it scores lower in this model given the current inputs. It does not prove that it has better datacenter infrastructure or a better production environment for AI deployment.
Primary pricing references:
Country-level proxy inputs:
- World Bank Doing Business electricity benchmark
- World Bank indicators API
- World Bank price level ratio indicator
Context:
Current source dates used in the app:
- Model pricing reviewed: April 20, 2026
- Electricity benchmark year: 2019
- Price-level ratio year: 2024
- TanStack Start
- React 19
- TypeScript
- Vite
- Tailwind CSS v4
- Recharts
- react-simple-maps
bun install
bun run devbun run buildbunx tsc --noEmitIf you prefer npm:
npm install
npm run devsrc/
components/token/ editorial sections and visualizations
lib/tokenIndex.ts scenario definition, country inputs, and model math
routes/index.tsx homepage composition and narrative flow
styles.css global visual systemIf you share or cite the project, the safest description is:
A sourced editorial model of estimated monthly model spend for a coding-assistant inference workflow under different national cost conditions.
That is the honest version of the project.

