NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #686 most downloaded on PyPI
Calculate prices for calling LLM inference APIs.
Last release 9 days ago
25 Sep 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
70 releases · first in 2025
One column per month.
Add AWS Bedrock GPT-6 Astra, Sol and Luna pricing by @sevakva in #713
gpt-live-1 pricing by @DouweM in #719context_window by @DouweM in #720Full Changelog: v0.1.8...v0.1.9
Add TypeSafe's Jev, billed per input token by @DouweM in #704
Add Google Gemini 3.8 Flash pricing by @dsfaccini in #678
Full Changelog: v0.1.6...v0.1.7
Encode OpenAI's inclusive long-context boundary by @alexmojaki in #667
UpdatePrices instances by @adtyavrdhn in #404Full Changelog: v0.1.5...v0.1.6
Refresh Cerebras provider: add Gemma 4 31B and GLM 4.7, deprecate delisted models by @ayaangazali in #469
claude-opus-4-6 and claude-sonnet-4-5 by @xyzs996 in #585openrouter record context windows from the OpenRouter API by @adtyavrdhn in #641azure record context windows from Microsoft's model docs by @adtyavrdhn in #652perplexity record context windows from Perplexity's model cards by @adtyavrdhn in #655x-ai record context windows from xAI's model docs by @adtyavrdhn in #654deepseek record context windows from DeepSeek's API docs by @adtyavrdhn in #653Full Changelog: v0.1.4...v0.1.5
Support fractional usage values by @alexmojaki in #568
Full Changelog: v0.1.3...v0.1.4
Add Gemini 3.7 Flash pricing and correct Gemini 3.6 Flash rates by @dsfaccini in #564
Full Changelog: v0.1.2...v0.1.3
Add Z.AI GLM-5.2 pricing by @dsfaccini in #551
Full Changelog: v0.1.1...v0.1.2
Update OpenAI gpt-5.6 family prices (terra & luna reduced) by @dsfaccini in #531
Full Changelog: v0.1.0...v0.1.1
feat: publish v2 pricing data and freeze v1 by @alexmojaki in #512
Full Changelog: v0.0.73...v0.1.0
Ignore generated price JSON in reviews by @dsfaccini in #499
Full Changelog: v0.0.72...v0.0.73
feat(openai): add GPT-5.6 cache write pricing by @Wh1isper in #463
kimi-k3) pricing by @dsfaccini in #467Full Changelog: v0.0.71...v0.0.72
chore: gitignore .env by @dsfaccini in #458
Full Changelog: v0.0.70...v0.0.71
Update AWS Anthropic's opus and sonnet 4.6 pricing that no longer use tiered pricing by @XG-xin in #428
tokens api_flavor for raw token extraction by @adtyavrdhn in #453Full Changelog: v0.0.69...v0.0.70
Map Mistral cached_tokens to cache_read_tokens by @adtyavrdhn in #444
cached_tokens to cache_read_tokens by @adtyavrdhn in #444Full Changelog: v0.0.68...v0.0.69
Add 4 new Fireworks models (June 2026) by @jlegewie in https://github.com/pydantic/genai-prices/pull/420
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.67...v0.0.68
Add amazon nova 2 pricing by @XG-xin in https://github.com/pydantic/genai-prices/pull/405
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.66...v0.0.67
Add Claude Fable 5 pricing by @dsfaccini in https://github.com/pydantic/genai-prices/pull/399
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.65...v0.0.66
refactor: make typescript match logic case insensitive by @ddanielcruzz in https://github.com/pydantic/genai-prices/pull/396
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.64...v0.0.65
chore: add Doubleword as a provider by @ddanielcruzz in https://github.com/pydantic/genai-prices/pull/394
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.63...v0.0.64
Add Claude Opus 4.8 pricing by @dsfaccini in https://github.com/pydantic/genai-prices/pull/389
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.62...v0.0.63
feat: add Gemini 3.5 Flash pricing by @dsfaccini in https://github.com/pydantic/genai-prices/pull/379
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.61...v0.0.62
chore: update gpt-5.5 aliases by @ddanielcruzz in https://github.com/pydantic/genai-prices/pull/376
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.60...v0.0.61
Introduce zizmor by @Viicos in https://github.com/pydantic/genai-prices/pull/362
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.59...v0.0.60
Add OpenRouter date-suffixed Claude 4.5 model aliases by @nirnaim in https://github.com/pydantic/genai-prices/pull/319
_background_task alive to update_prices after failed attempts by @adtyavrdhn in https://github.com/pydantic/genai-prices/pull/323Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.56...v0.0.59
Nothing published for this version
feat: add gpt-5.3-codex pricing by @sigglep in https://github.com/pydantic/genai-prices/pull/301
-v1) and/or regional prefix (e.g. us.anthropic) by @alexmojaki in https://github.com/pydantic/genai-prices/pull/306Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.55...v0.0.56
Loosen AWS model matchers to support inference profiles by @alexmojaki in https://github.com/pydantic/genai-prices/pull/292
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.54...v0.0.55
feat: add model lifecycle management (deprecated & removed) by @Kludex in https://github.com/pydantic/genai-prices/pull/284
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.53...v0.0.54
feat: add Claude Opus 4.6 pricing by @dsfaccini in https://github.com/pydantic/genai-prices/pull/277
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.52...v0.0.53
Add Python tests for model fallback matching by @Copilot in https://github.com/pydantic/genai-prices/pull/263
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.51...v0.0.52
Update js sdk docs with custom provider instructions by @saeedesmaili in https://github.com/pydantic/genai-prices/pull/257
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.50...v0.0.51
add prices for gemini 3 flash and pro image preview by @dsfaccini in https://github.com/pydantic/genai-prices/pull/254
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.49...v0.0.50
feat: add Qwen3-Coder-480B-A35B-Instruct model with pricing details by @iyehuda in https://github.com/pydantic/genai-prices/pull/248
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.48...v0.0.49
fix: broken link to openrouter in readme by @juanfabrega in https://github.com/pydantic/genai-prices/pull/227
__add__ method for easy usage accumulation when streaming by @monkeyusage in https://github.com/pydantic/genai-prices/pull/234eval-type-backport Python version constraint by @Viicos in https://github.com/pydantic/genai-prices/pull/238Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.47...v0.0.48
chore(*): soften httpx python dependency by @forforeach in https://github.com/pydantic/genai-prices/pull/226
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.46...v0.0.47
Update huggingface prices by @alexmojaki in https://github.com/pydantic/genai-prices/pull/222
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.45...v0.0.46
Huggingface prices by @alexmojaki in https://github.com/pydantic/genai-prices/pull/218
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.44...v0.0.45
feat(azure): add extractors by @Kludex in https://github.com/pydantic/genai-prices/pull/216
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.43...v0.0.44
AWS Anthropic model prices by @alexmojaki in https://github.com/pydantic/genai-prices/pull/211
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.42...v0.0.43
Add AWS prices from API by @alexmojaki in https://github.com/pydantic/genai-prices/pull/208
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.41...v0.0.42
Add Gemini 3.0 by @samuelcolvin in https://github.com/pydantic/genai-prices/pull/206
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.40...v0.0.41
Account for toolUsePromptTokenCount in google models by @alexmojaki in https://github.com/pydantic/genai-prices/pull/200
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.39...v0.0.40
Groq prices fixes by @alexmojaki in https://github.com/pydantic/genai-prices/pull/194
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.38...v0.0.39
Support failure mode for updatePrices factory by @petyosi in https://github.com/pydantic/genai-prices/pull/192
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.37...v0.0.38
feat(openrouter): add deepseek models that were missing by @lironesamoun in https://github.com/pydantic/genai-prices/pull/172
price_discrepancies.py directly from PyCharm by @alexmojaki in https://github.com/pydantic/genai-prices/pull/182Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.36...v0.0.37
Extend OpenRouter support for Google Gemini 2.5 models by @lionpeloux in https://github.com/pydantic/genai-prices/pull/160
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.35...v0.0.36
Update simonw llm-prices url by @Kludex in https://github.com/pydantic/genai-prices/pull/168
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.34...v0.0.35
prices for claude haiku 4.5 by @pedrurrego in https://github.com/pydantic/genai-prices/pull/165
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.33...v0.0.34
fix: add audio field on OpenRouter script by @Kludex in https://github.com/pydantic/genai-prices/pull/162
audio field on OpenRouter script by @Kludex in https://github.com/pydantic/genai-prices/pull/162Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.32...v0.0.33
feat(aws): extract prices on AWS Bedrock models by @Kludex in https://github.com/pydantic/genai-prices/pull/158
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.31...v0.0.32
Extract OpenAI input_audio_tokens by @alexmojaki in https://github.com/pydantic/genai-prices/pull/155
input_audio_tokens by @alexmojaki in https://github.com/pydantic/genai-prices/pull/155Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.30...v0.0.31
Better handle missing optional fields when extracting usage by @alexmojaki in https://github.com/pydantic/genai-prices/pull/153
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.29...v0.0.30
prices for claude sonnet 4.5 by @samuelcolvin in https://github.com/pydantic/genai-prices/pull/150
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.28...v0.0.29
Extract input_audio_tokens for Google, account for (cached) audio in price by @alexmojaki in https://github.com/pydantic/genai-prices/pull/141
input_audio_tokens for Google, account for (cached) audio in price by @alexmojaki in https://github.com/pydantic/genai-prices/pull/141Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.27...v0.0.28
add license file by @samuelcolvin in https://github.com/pydantic/genai-prices/pull/137
thoughtsTokenCount optional by @samuelcolvin in https://github.com/pydantic/genai-prices/pull/139Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.26...v0.0.27
add thoughtsTokenCount to output_tokens for gemini by @samuelcolvin in https://github.com/pydantic/genai-prices/pull/135
thoughtsTokenCount to output_tokens for gemini by @samuelcolvin in https://github.com/pydantic/genai-prices/pull/135Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.25...v0.0.26
Upgrade uv_build to latest to fix wheel permissions issue by @edaniels in https://github.com/pydantic/genai-prices/pull/131
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.24...v0.0.25
Google vertex usage by @samuelcolvin in https://github.com/pydantic/genai-prices/pull/129
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.23...v0.0.24
change extraction logic for Anthropic by @samuelcolvin in https://github.com/pydantic/genai-prices/pull/125
Full Changelog: https://github.com/pydantic/genai-prices/compare/v0.0.22...v0.0.23
Your coding agent can read these notes before it upgrades. Set up the MCP server →