pypi / genai-prices
genai-prices
What changed in genai-prices 0.0 to 0.2, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
7 breaking1 security1 deprecations155 new APIs and options41 behavior and defaults87 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initgenai-prices 0.243 changes
Breaking changes 2
Rejects non-string model names and invalid context windows when loading JSON, with an error that names the model.
Python 3.10 is no longer supported; the required Python version is now >=3.11.
New APIs and options 21
Pricing was added for this model.
Pricing was added for this model.
GitHub Copilot pricing was added for this model.
Pricing was added for this model.
Pricing was added for this model.
Pricing was added for Azure and OpenRouter, giving developers pricing data for this model.
Adds pricing for Anthropic fast mode on Claude Fable 5.2, Mythos 5.2, Opus 5.5, Opus 5 and Opus 4.8.
Adds pricing for Kimi K3 and K3.1 on AWS Bedrock.
Adds pricing for GPT-6.1 Terra and GLM 5.3 on AWS Bedrock.
Adds batch and web-search pricing for Claude Fable 5.2, plus pricing for it on Bedrock and Vertex AI.
Adds pricing for Mythos 5.2, including on Bedrock and Vertex AI.
Prices OpenRouter models from a representative endpoint.
Adds a systemone extractor flavor to OpenRouter.
Finds provider information, including IDs, names, models and supported API flavors, as part of the read-only Rust catalog.
Lists providers with their IDs, names, models and supported API flavors, so Rust users can inspect the catalog without pricing a call.
The native Rust crate is published to crates.io with the same price data as the Python and JavaScript packages.
A new provider prices ElevenLabs Realtime API usage as connected audio time plus tokens.
The bundled database adds OpenAI GPT-6.1 Terra, Kimi K3.1 Pro, and GLM-5.3-FlashX-Legal.
A native Rust pricing crate ports the pricing engine with the v2 data bundled and parity with the Python reference; it is not yet on crates.io.
The model is priced at $2.50 per thousand searches, with a $1 Fast Search rate available through price_context.
Set
search_typetofastto use Perplexity's $1 Fast Search rate.
Behavior and default changes 6
Adds pricing for TypeSafe Jev System One calls relayed through OpenRouter.
Usage extraction now reads xAI Responses API bodies, including cached input and reasoning tokens.
It now uses Mistral Small 4 rates from 2026-03-16.
Its price now matches Mistral's own prices.
Provider prices now refresh hourly from official pricing pages, with dated entries preserving historical rates for past requests.
Extraction now keeps reasoning details and web-search counts for Perplexity Responses.
Fixes and other changes 14
Pricing for Google Gemini 4 Neon was added, allowing developers to account for its costs.
Pricing was added for this model.
Pricing was added for this model.
The OpenRouter Jev entry now matches the bare jev-1.14 name.
The OpenRouter Jev entry now matches the bare jev-latest name.
Retries Azure retail price queries when they are throttled.
Fixes the Baseten, Google and Fireworks importers.
Reads the Baseten catalog table past its component prelude, allowing the importer to find catalog data.
Stops doubling the US suffix on Fireworks router IDs.
Fixes the Meta price importer.
Read blockquoted tables from these providers.
Provider prices were updated from official sources.
Its price now reflects the 2026-04-30 price cut.
Variants that are a fixed share of a standard rate now receive matching dated entries when that standard rate changes.
genai-prices 0.195 changes
Breaking changes 3
Warnings for price_context are dropped.
Drops Vertex AI's Opus 4.6 long-context premium.
Restricts Command A pricing to known models.
Security 1
JavaScript provider data activation was hardened.
Deprecations 1
v1 pricing data is frozen and will no longer be updated.
New APIs and options 47
Batch API pricing was added for Anthropic, OpenAI, Google, Mistral, Groq and xAI.
Pricing was added for Google Gemini 4 Argon.
Pricing was added for Muse Wonder and Mistral Large.
Pricing was added for unversioned AWS Bedrock Claude Fable 5 and 5.1 IDs.
Decision-model prices were added for Cloudflare, Together, Perplexity, and OpenRouter.
Pricing was added for Gemini grounding with Google Search.
OpenRouter pricing was added for this model.
GitHub Copilot pricing was added for this model.
OpenAI Decisions pricing was added.
Provider models were added and catalog removals were marked.
Adds a 32k context window for TypeSafe Jev.
Adds pricing for Google Gemini 3.8 Live.
Adds pricing for Google Gemini 3.8 Live Extended Thinking.
Adds AWS Bedrock pricing for GPT-6 Astra.
AWS Bedrock pricing was added for this model.
Adds pricing for GPT Image 2.5 Flare.
Adds OpenAI pricing for gpt-live-1.
Adds AWS Bedrock pricing for Luna.
Adds pricing for Sunburst.
Adds Claude Opus 5.5 pricing.
Adds Doubleword DeepSeek V4.1 Flash pricing.
Adds OpenAI gpt-6-luna pricing.
Adds OpenAI gpt-6-sol pricing.
Adds TypeSafe's Jev pricing, billed per input token.
Pricing was added for GitHub Copilot.
Pricing was added for Google Gemini 3.8 Flash.
Pricing was added for OpenAI GPT-6 Astra.
Adds pricing for Claude Fable 5.1, which developers can use when working with that model.
Adds Arcee provider pricing.
Prices Azure AI Foundry marketplace models through their origin providers.
Extracts cached audio usage for Azure Realtime.
Adds Baseten Model API pricing.
Adds Cloudflare Workers AI pricing.
Adds Cursor model pricing.
Adds Gemini 2.5 TTS pricing.
Adds a native Go pricing package.
Adds Mistral OCR pricing.
Fills OpenRouter record context windows from the OpenRouter API.
OpenAI-compatible extractors map reasoning tokens, making this usage available to developers.
Adds transcription prices for OpenAI and Mistral.
Adds support for mapping usage inputs.
Pricing was added for GLM-5.3 through Z.AI and OpenRouter.
Pricing was added for GPT-5.6 models in AWS Bedrock.
Adds pricing for Gemini 3.7 Flash, giving developers pricing information for this model.
Serverless pricing coverage for Fireworks was completed.
Dated snapshot aliases Sol, Luna, and Terra were added.
Pricing was added for realtime models.
Behavior and default changes 15
Cache writes are priced by TTL using cacheDetails.
Explicit OpenAI service-tier pricing was added across all packages.
Provider prices were updated, changing the pricing data available to developers.
Long-context rates now start above 272K input tokens; GPT-6.1 Sol pricing was also added.
Pricing was added for web and file search calls by OpenAI deep research models.
xAI realtime reports billable audio seconds as a running total.
AWS GPT-5.6 (Luna, Sol, Terra) prices are now split into global and regional pricing.
Encodes OpenAI's long-context boundary as inclusive, affecting how usage is classified at the boundary.
Shares one background price updater across UpdatePrices instances.
Infers the Cloudflare native model from the request URL.
Applies billing minimums to Groq transcription.
Generated HuggingFace and OVHcloud providers expose a default api_flavor.
Adds file search tool call pricing to OpenAI models.
Adds web search tool call pricing to OpenAI models.
Usage values can now be fractional.
Fixes and other changes 28
Bedrock inference profile matching was added for Claude Haiku 4.5, Opus 5 and Sonnet 5.
Pricing was added for Muse Spark 1.1, 1.2 and 1.3, including Contributor mode.
AWS Titan Text Embeddings V2 is priced separately from V1.
Pricing is available for Claude Opus 4.5 on Google Vertex.
Fixed the cache-read price for Claude Sonnet 5.5.
Matched mistral-medium-2604 to Mistral Medium 3.5 for pricing.
Pricing was added for Claude Haiku 5.5.
Pricing was added for Claude Sonnet 5.5.
Pricing was added for open-weight models on Databricks Foundation Model APIs.
Gemini family aliases were matched and dataset gaps were filled.
The OpenRouter slug was matched to its dated form.
Price-check findings were fixed for Groq, DeepSeek, and GitHub Copilot.
Adds one-hour cache-write pricing on Bedrock and Vertex AI.
Fixes the root used to extract xAI realtime usage.
Matches the Azure AI Foundry host for Anthropic models.
Maps cache_write_tokens in Azure responses and chat extractors.
Matches Pixtral and Mixtral models to Mistral.
Fixes order-dependent price lookup by ensuring the cache write key matches its read key.
Refuses to overwrite provider YAML when an importer response is empty or sharply shrunken.
Prices xAI Realtime voice usage.
Corrects Gemini 3.6 Flash rates, affecting pricing information developers use for this model.
Pricing was added for Writer Palmyra X4 and X5 on AWS Bedrock.
Pricing was added for Modal Shared Endpoint.
Pricing was added for Z.AI GLM-5.2.
Normalized downloaded price constraints.
OpenAI gpt-5.6 family prices were updated, with terra and luna prices reduced.
Fixed the GPT-5.6 Luna and Terra price history.
v2 pricing data was published, giving developers a new version of the pricing data to use.
genai-prices 0.0154 changes
Breaking changes 2
Python 3.9 is no longer supported, so developers must use a supported Python version.
Model matching now enforces uniqueness.
New APIs and options 87
Adds Claude Opus 5 pricing for Anthropic, Bedrock, Vertex and OpenRouter.
Adds pricing for Gemini 3.6 Flash.
Adds cache write pricing for GPT-5.6, allowing developers to account for that cost.
Adds pricing for the Kimi K3 model.
Pricing for GPT-5.6 was added.
Pricing for xAI Grok 4.5 was added.
Cohere adds the tokens API flavor for raw token extraction.
Pricing includes a length tier for requests over 512K.
AWS Bedrock pricing for Claude Sonnet 5 was added.
Pricing for Claude Sonnet 5 was added.
Dated provider-prefixed model aliases were added.
Four new Fireworks models were added to the pricing data.
MiniMax Anthropic and OpenAI-Responses usage extractors were added.
Pricing was added for Amazon Nova 2 models.
Six new Fireworks models were added.
OpenRouter aliases were added.
Models are synced from the OpenRouter API.
Voyage AI text embedding models were added.
Zhipu GLM 5.2 was added.
Pricing was added for Claude Fable 5.
kimi-k2.6 was added.
MiniMax was added as a provider.
Zhipu AI was added as a provider.
Adds Doubleword as a provider.
Google and Mistral AI models on AWS were added.
Pricing was added for Gemini 3.5 Flash, allowing developers to use its pricing information.
Adds pricing for deepseek-v4-flash.
Adds pricing for deepseek-v4-pro.
Adds pricing for grok-4.3.
Adds pricing for Claude Opus 4.7.
Adds pricing for gpt-5.3-chat-latest.
Adds pricing for GPT-5.5 Pro.
Adds pricing for GPT-5.5.
Adds date-suffixed Claude 4.5 model aliases for OpenRouter.
Adds an OpenRouter usage extractor with cache write token support.
An api-flavor was added for the xAI native SDK.
OpenRouter pricing was added for this model.
Pricing was added for this model.
Pricing was added for this model.
Pricing was added for this model.
Pricing was added for this model.
Pricing was added for these models.
Snapshot aliases were added for GPT-5.4 mini and nano.
A prices file was added for Moonshot AI.
OpenRouter pricing was added for this model.
OpenRouter pricing was added for this model.
This model was added.
Dated snapshotted IDs were added.
AWS Bedrock pricing is added for Claude Opus 4.5.
AWS Bedrock pricing is added for Claude Opus 4.6.
AWS Bedrock pricing is added for Claude Sonnet 4.6.
Gemini 3.1 Pro (Preview) is added.
Adds Claude Sonnet 4.6.
Adds management of deprecated and removed models.
Pricing for Claude Opus 4.6 was added, allowing developers to use its pricing data.
Support was added for additional Fireworks.ai models.
Pricing support was added for gpt-5.2-codex.
Pricing support was added for grok-4-fast alongside grok-4-1-fast.
Pricing support for Kimi K2.5 was added to OpenRouter.
Pricing support for Qwen 3 Max Thinking was added to OpenRouter.
Claude 4.5 models were added to OpenRouter pricing.
Fallback model providers were added.
Prices were added for gemini 3 flash.
Prices were added for gemini 3 pro image preview.
Prices were added for grok-4-1-fast.
Prices were added for grok-code-fast-1.
Added provider prices for OVHcloud AI Endpoints.
Added the model with pricing details.
Adds a usage addition method for accumulating usage while streaming.
Adds Cohere Embed v4.0 to the pricing data.
Accepts gpt-5-1 as well as gpt-5.1.
Adds gpt-5.2 and gpt-5.2-pro to the pricing data.
Prices for Claude Opus 4.5 were added, affecting the pricing information available to developers.
Adds extractors for Azure.
Anthropic support was added for chat completions.
Prices for AWS Anthropic models were added, letting developers use the package's pricing data for those models.
An anthropic extractor was added to AWS prices.
AWS prices can now be obtained from the API.
Gemini 3.0 was added, allowing developers to use its pricing information.
Cerebras support was added.
Support for gpt-5.1 was added.
An OpenAI embedding usage extractor was added.
Adds the Nano Banana model to the Google pricing data.
Adds the o4-mini-deep-research model to the pricing data.
OpenRouter support now includes Google Gemini 2.5 models.
An Anthropic extractor was added to Google Vertex.
Price extraction now supports AWS Bedrock models.
Behavior and default changes 20
Google pricing extraction now includes tool-use prompt audio tokens.
Opus and Sonnet pricing no longer uses tiered pricing.
TypeScript match logic is now case insensitive.
Provider matching now includes an amazon provider match for aws.
Updated gpt-5.5 aliases, which may affect model name resolution.
Adds support for the GA version of Gemini 3.1 Flash-Lite.
Updates Claude 4.6 pricing for OpenRouter and adds dated aliases.
Pricing was updated to reflect no long context costs.
Matchers were loosened for regional-only AWS Claude 3.* models.
AWS model identifiers can omit the version suffix, the regional prefix, or both.
AWS model matchers are loosened to support inference profiles.
Automates AWS price updates.
Updated Hugging Face prices.
AWS Anthropic model matchers were loosened, changing which model names the package recognizes.
AWS Anthropic support now covers all regions.
AWS model matches were loosened.
AWS model prices were updated.
The updatePrices factory now supports failure mode handling.
Updates prices for the Gemini 2.5 family of models.
Updates pricing for the GLM 4.5 and 4.6 models.
Fixes and other changes 45
Matches the GA Gemini Live model id so it can be recognized.
Validates Python pricing inputs.
JavaScript now honors timezone-aware price intervals.
Adds pricing for Gemini 3.5 Flash-Lite.
Groq maps prompt_tokens_details.cached_tokens to cache_read_tokens.
Missing multimodal pricing and an alias were added.
Mistral cached_tokens is mapped to cache_read_tokens.
Prices for OpenAI GPT-5 on Bedrock were added.
Pricing was added for Fireworks minimax-m3.
Pricing was added for Kimi K2.7 Code.
Mirror model IDs are now preserved for OpenRouter.
Official support for Python 3.14 was added.
Models with adaptive or negative pricing are now skipped.
Pricing for Claude Opus 4.8 was added.
Pricing was updated to the new permanent pricing.
Fixes the mapping of Google tool-use prompt token counts.
Fixes audio pricing data.
Keeps _background_task alive to update_prices after failed attempts.
Adds DeepSeek V3.2 pricing for OpenRouter.
Handles cases where fallback providers are missing.
Adds pricing for Nvidia Nemotron Bedrock models.
Fixes pricing for unpriced descendants.
Missing OpenAI GPT-5.x model name aliases were added.
The model name for qwen3-max (thinking) was corrected.
The LiteLLM provider is specially handled so price calculation is possible.
Fixed the tiered pricing calculation.
Fixes context windows for OpenAI embedding models.
Updates the OpenAI model pricing data.
Adds the latest x-ai models to the pricing data.
HuggingFace model names are lowercased.
Added the missing OpenAI computer-use model.
Fixed extraction of Google usage.
Added the missing OpenAI gpt-5.1-codex-mini model.
Google model usage now accounts for toolUsePromptTokenCount.
Groq prices were fixed, improving pricing information for Groq models.
Adds missing Google models to the pricing data.
Updates pricing for gpt-4o-mini-realtime-preview.
Adds missing OpenAI and Anthropic models to the pricing data.
Adds previously missing DeepSeek models to the OpenRouter pricing data.
Fixes JS pricing calculation.
Fixes JS extraction errors for optional fields.
The URL for simonw llm-prices was updated.
Pricing for Claude Haiku 4.5 was added, giving developers pricing information for this model.
The OpenRouter script now includes an audio field.
The AWS match statement was updated.