real-api-pricing: dividing AI coding subscription fees by the tokens you can actually use
Real API pricing: subscription fee divided by usable tokens, with allowance, unit price and leaderboard Pareto charts.
At a glance
- What is it?
- real-api-pricing turns flat monthly AI coding plans into a price per million tokens and plots it against public leaderboard scores. Its numbers rest on a stated saturation assumption and a fixed workload mix, and those two conventions decide how far you can trust any single point.
- Who is it for?
- real-api-pricing is a good starting point if you are choosing between flat-fee AI coding plans and metered APIs and want one comparable price per million tokens. It is a poor guide if your workload is not heavy on cached reads, or if you will not use your full allowance, because both assumptions are built into every subscription point.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly HTML, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- FeiZhuLulu/real-api-pricing1,194 ★ · +797
| Repository | 2026-09-21 | 2026-11-25 |
|---|---|---|
| FeiZhuLulu/real-api-pricing | 397 | 1.2k |
797 Stars in the last 65 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
One formula, and it assumes you drain the whole allowance
AI coding subscriptions sell a monthly fee, not a per-token price. The project defines real price as the monthly fee divided by the tokens you can actually use in a month, and reports it in USD per million tokens. Every subscription point on the charts is a fee divided by a full month of saturated use.
That last part is where a reader can be misled. Subscription prices assume you use the whole allowance, so if you use half of it your real price doubles. A plan that looks cheap on the chart is cheap only for someone who actually burns through the quota. A light user of a flat plan can pay far more per token than the plotted point, while a metered API at list price keeps its plotted price whatever you use.
Each point is a plan crossed with a model, and the frontier is a Pareto line
Each point on a chart is one plan multiplied by the model it serves. The X axis is the real price on a log scale, with cheaper to the right, and the Y axis is the score from the chosen leaderboard. Filled squares are subscriptions and hollow diamonds are metered APIs at list price, and both compete on the same frontier.
The black line is the Pareto frontier. For every point on it, no other point is both cheaper and higher scoring. Because one plan can serve several models, each model on a plan gets its own point, and those allowances are alternatives that do not add up. You cannot read two points from the same plan and conclude that you may spend the monthly allowance on both at once.
A fixed workload of 97% cache reads converts dollar pools into tokens
When a vendor sells a dollar or credit pool instead of a token count, and for API list prices, the project converts to tokens with one standard workload: 97% cache reads, 2.5% fresh input and 0.5% output. It calls this a comparison convention, not a claim about anyone's real usage.
The consequence is direct. If your own traffic has little caching, such as many short one-off prompts, the converted token counts overstate what the pool buys you, and the real price for you is higher than the chart shows. Some vendors get special handling: Anthropic models price the fresh-input share at the cache-write rate, and StepFun and Google use a low-cache variant. The full rules sit in CONVENTIONS.md.
Measured allowances beat converted ones, and every row carries a confidence grade
The best evidence for a monthly allowance is a direct measurement: tokens used against the change in the dashboard's quota percentage, local usage logs, controlled saturation runs, or an official absolute-token table. A month is four weeks unless the vendor defines its own monthly pool, and Kimi's is five times the weekly pool. Input, output and cache tokens all count.
Samples with a token breakdown are converted to dollar worth at public list prices and then to the channel's workload tier. Samples without a breakdown, and official token tables, use raw totals as they are and are flagged not workload-normalized on the site. Every row is rated high, medium or low. High means a dashboard back-calculation, a controlled test or an official table. Low means a single report or a cross-plan assumption. Derived values are never presented as measurements, so low-confidence rows deserve a second look.
Scores stay inside their own leaderboard and carry version caveats
Scores are copied from each leaderboard and never mixed across boards, so there is one Pareto chart per board: AA Intelligence, AA Coding Agent, Code Arena, Agent Arena, OpenDesign Arena and Terminal-Bench 4.0. A model missing from a board is left off that chart but stays in the price and allowance data.
The boards have limits you should know. AA Intelligence is Index v4.3, and its scores are not comparable with earlier versions, so a lower number after the version change does not mean a model got worse. Coding Agent Index v1.5 scores belong to a harness, model and effort configuration, and higher effort leaves the price per token alone while possibly changing the tokens a task uses. Code Arena measures web-app building, not general coding ability. Terminal-Bench 4.0 is a 66-task board with a snapshot dated 2026-09-03 covering 38 published configurations.
The CLI must be built from a checkout until the npm package is published
The TypeScript CLI queries the website's current dataset and separates model, company, channel and plan. It falls back to cached or bundled data when offline, and it requires Node.js 22.12 or newer. Build it from the repository:
npm --prefix cli ci
npm --prefix cli run build
node cli/dist/main.js price --company Anthropic
node cli/dist/main.js allowance --company Anthropic --fee-band 0-30Version 0.1.0 is available from this checkout. Only after the maintainer publishes the npm package can you install it with npm install -g real-api-pricing, so that command does not work until then. JSON and CSV exports, filtering, evidence and comparisons are available, with output examples in docs/cli-command-reference.md. For coding agents there is a Real Model Price skill, invoked in Codex as $real-model-price from a session that loads the repository's skills.
Off-peak pricing and free promotions are drawn as special cases
Off-peak pricing for GLM, DeepSeek and MiMo is shown as separate scenario points rather than averaged into one number. If your usage mostly falls in the off-peak window you need those points; if it does not, the standard points apply.
A model that a plan temporarily does not meter is drawn at about $0 on a dedicated slot at the right edge of the chart. The README names one such point at snapshot time: SWE-2 on Devin Pro, until 2026-10-31. That end date falls before the repository's last push on 2026-11-02, so check the live site to see whether the point is still shown. A promotional zero says nothing about what the plan costs once the promotion ends, and it should not be compared against steady-state prices as if it were one.
Evidence files and a dated snapshot back the numbers
The snapshot in the README is dated 2026-10-27 and covers 337 plan and model points. Every adopted value, its evidence and the reason for choosing it are recorded in DECISIONS.md and in the decision_note column of data/adopted.csv, with further files named SOURCES.md, BUILD.md and PUBLICATION.md at the top level.
Charts are rendered by a render script in package.json that calls scripts/render_svg.cjs and depends on sharp, and requirements.txt asks for matplotlib at version 3.8 or later but below 4. The wrangler dev dependency is pinned to 4.145.0, and a vercel.json and a wrangler.jsonc sit in the root. The repository has no GitHub releases, so the 2026-10-27 snapshot, not a version tag, tells you how fresh the data is. The interactive site is at realapipricing.com, and English and Chinese versions are available.
Editorial conclusion
real-api-pricing is a good starting point if you are choosing between flat-fee AI coding plans and metered APIs and want one comparable price per million tokens. It is a poor guide if your workload is not heavy on cached reads, or if you will not use your full allowance, because both assumptions are built into every subscription point. Check the confidence rating on any row you plan to act on, and the end date of any promotion.
Frequently asked questions
How much do APIs typically cost?
The project does not give one typical price. It computes a real price in USD per million tokens for each plan and model pair, 337 points in the 2026-10-27 snapshot, and plots it on a log scale.
How much do 1000 tokens cost?
Prices are reported per million tokens, so divide a plotted price by 1000 for 1000 tokens. For subscriptions the price is the monthly fee divided by the tokens you can use in a month, assuming you use the whole allowance.
How do you price your API?
real-api-pricing does not price an API of its own. It prices other vendors' plans: real price equals monthly fee divided by usable monthly tokens, with dollar pools converted by a 97% cache-read workload.
Can I get an API for free?
Only through promotions. A model that a plan temporarily does not meter is drawn at about $0 on the charts, and the README names SWE-2 on Devin Pro until 2026-10-31 as the one such point at snapshot time.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/feizhululu-real-api-pricing)Star history chart for your README
[](https://hysenlabs.com/projects/feizhululu-real-api-pricing)Was this useful?