unstale

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 init

@unstale/cli 0.3.1 on npm

genai-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.

    0.2.1release notes

  • Python 3.10 is no longer supported; the required Python version is now >=3.11.

    0.2.0release notes

New APIs and options 21

  • Pricing was added for this model.

    0.2.4release notes

  • Pricing was added for this model.

    0.2.4release notes

  • GitHub Copilot pricing was added for this model.

    0.2.4release notes

  • Pricing was added for this model.

    0.2.4release notes

  • Pricing was added for this model.

    0.2.4release notes

  • Pricing was added for Azure and OpenRouter, giving developers pricing data for this model.

    0.2.4release notes

  • Adds pricing for Anthropic fast mode on Claude Fable 5.2, Mythos 5.2, Opus 5.5, Opus 5 and Opus 4.8.

    0.2.3release notes

  • Adds pricing for Kimi K3 and K3.1 on AWS Bedrock.

    0.2.2release notes

  • Adds pricing for GPT-6.1 Terra and GLM 5.3 on AWS Bedrock.

    0.2.2release notes

  • Adds batch and web-search pricing for Claude Fable 5.2, plus pricing for it on Bedrock and Vertex AI.

    0.2.2release notes

  • Adds pricing for Mythos 5.2, including on Bedrock and Vertex AI.

    0.2.2release notes

  • Prices OpenRouter models from a representative endpoint.

    0.2.2release notes

  • Adds a systemone extractor flavor to OpenRouter.

    0.2.2release notes

  • Finds provider information, including IDs, names, models and supported API flavors, as part of the read-only Rust catalog.

    0.2.1release notes

  • Lists providers with their IDs, names, models and supported API flavors, so Rust users can inspect the catalog without pricing a call.

    0.2.1release notes

  • The native Rust crate is published to crates.io with the same price data as the Python and JavaScript packages.

    0.2.1release notes

  • A new provider prices ElevenLabs Realtime API usage as connected audio time plus tokens.

    0.2.0release notes

  • The bundled database adds OpenAI GPT-6.1 Terra, Kimi K3.1 Pro, and GLM-5.3-FlashX-Legal.

    0.2.0release notes

  • 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.

    0.2.0release notes

  • The model is priced at $2.50 per thousand searches, with a $1 Fast Search rate available through price_context.

    0.2.0release notes

  • Set search_type to fast to use Perplexity's $1 Fast Search rate.

    0.2.0release notes

Behavior and default changes 6

  • Adds pricing for TypeSafe Jev System One calls relayed through OpenRouter.

    0.2.2release notes

  • Usage extraction now reads xAI Responses API bodies, including cached input and reasoning tokens.

    0.2.0release notes

  • It now uses Mistral Small 4 rates from 2026-03-16.

    0.2.0release notes

  • Its price now matches Mistral's own prices.

    0.2.0release notes

  • Provider prices now refresh hourly from official pricing pages, with dated entries preserving historical rates for past requests.

    0.2.0release notes

  • Extraction now keeps reasoning details and web-search counts for Perplexity Responses.

    0.2.0release notes

Fixes and other changes 14

  • Pricing for Google Gemini 4 Neon was added, allowing developers to account for its costs.

    0.2.5release notes

  • Pricing was added for this model.

    0.2.4release notes

  • Pricing was added for this model.

    0.2.4release notes

  • The OpenRouter Jev entry now matches the bare jev-1.14 name.

    0.2.4release notes

  • The OpenRouter Jev entry now matches the bare jev-latest name.

    0.2.4release notes

  • Retries Azure retail price queries when they are throttled.

    0.2.2release notes

  • Fixes the Baseten, Google and Fireworks importers.

    0.2.2release notes

  • Reads the Baseten catalog table past its component prelude, allowing the importer to find catalog data.

    0.2.2release notes

  • Stops doubling the US suffix on Fireworks router IDs.

    0.2.2release notes

  • Fixes the Meta price importer.

    0.2.2release notes

  • Read blockquoted tables from these providers.

    0.2.2release notes

  • Provider prices were updated from official sources.

    0.2.2release notes

  • Its price now reflects the 2026-04-30 price cut.

    0.2.0release notes

  • Variants that are a fixed share of a standard rate now receive matching dated entries when that standard rate changes.

    0.2.0release notes

genai-prices 0.195 changes

Breaking changes 3

Security 1

  • JavaScript provider data activation was hardened.

    0.1.1release notes

Deprecations 1

  • v1 pricing data is frozen and will no longer be updated.

    0.1.0release notes

New APIs and options 47

  • Batch API pricing was added for Anthropic, OpenAI, Google, Mistral, Groq and xAI.

    0.1.12release notes

  • Pricing was added for Google Gemini 4 Argon.

    0.1.12release notes

  • Pricing was added for Muse Wonder and Mistral Large.

    0.1.12release notes

  • Pricing was added for unversioned AWS Bedrock Claude Fable 5 and 5.1 IDs.

    0.1.10release notes

  • Decision-model prices were added for Cloudflare, Together, Perplexity, and OpenRouter.

    0.1.10release notes

  • Pricing was added for Gemini grounding with Google Search.

    0.1.10release notes

  • OpenRouter pricing was added for this model.

    0.1.10release notes

  • GitHub Copilot pricing was added for this model.

    0.1.10release notes

  • OpenAI Decisions pricing was added.

    0.1.10release notes

  • Provider models were added and catalog removals were marked.

    0.1.10release notes

  • Adds a 32k context window for TypeSafe Jev.

    0.1.9release notes

  • Adds pricing for Google Gemini 3.8 Live.

    0.1.9release notes

  • Adds pricing for Google Gemini 3.8 Live Extended Thinking.

    0.1.9release notes

  • Adds AWS Bedrock pricing for GPT-6 Astra.

    0.1.9release notes

  • AWS Bedrock pricing was added for this model.

    0.1.9release notesrelease notes

  • Adds pricing for GPT Image 2.5 Flare.

    0.1.9release notes

  • Adds OpenAI pricing for gpt-live-1.

    0.1.9release notes

  • Adds AWS Bedrock pricing for Luna.

    0.1.9release notes

  • Adds pricing for Sunburst.

    0.1.9release notes

  • Adds Claude Opus 5.5 pricing.

    0.1.8release notes

  • Adds Doubleword DeepSeek V4.1 Flash pricing.

    0.1.8release notes

  • Adds OpenAI gpt-6-luna pricing.

    0.1.8release notes

  • Adds OpenAI gpt-6-sol pricing.

    0.1.8release notes

  • Adds TypeSafe's Jev pricing, billed per input token.

    0.1.8release notes

  • Pricing was added for GitHub Copilot.

    0.1.7release notes

  • Pricing was added for Google Gemini 3.8 Flash.

    0.1.7release notes

  • Pricing was added for OpenAI GPT-6 Astra.

    0.1.7release notes

  • Adds pricing for Claude Fable 5.1, which developers can use when working with that model.

    0.1.6release notes

  • Adds Arcee provider pricing.

    0.1.5release notes

  • Prices Azure AI Foundry marketplace models through their origin providers.

    0.1.5release notes

  • Extracts cached audio usage for Azure Realtime.

    0.1.5release notes

  • Adds Baseten Model API pricing.

    0.1.5release notes

  • Adds Cloudflare Workers AI pricing.

    0.1.5release notes

  • Adds Cursor model pricing.

    0.1.5release notes

  • Adds Gemini 2.5 TTS pricing.

    0.1.5release notes

  • Adds a native Go pricing package.

    0.1.5release notes

  • Adds Mistral OCR pricing.

    0.1.5release notes

  • Fills OpenRouter record context windows from the OpenRouter API.

    0.1.5release notes

  • OpenAI-compatible extractors map reasoning tokens, making this usage available to developers.

    0.1.5release notes

  • Adds transcription prices for OpenAI and Mistral.

    0.1.5release notes

  • Adds support for mapping usage inputs.

    0.1.5release notes

  • Pricing was added for GLM-5.3 through Z.AI and OpenRouter.

    0.1.4release notes

  • Pricing was added for GPT-5.6 models in AWS Bedrock.

    0.1.4release notes

  • Adds pricing for Gemini 3.7 Flash, giving developers pricing information for this model.

    0.1.3release notes

  • Serverless pricing coverage for Fireworks was completed.

    0.1.2release notes

  • Dated snapshot aliases Sol, Luna, and Terra were added.

    0.1.2release notes

  • Pricing was added for realtime models.

    0.1.2release notes

Behavior and default changes 15

  • Cache writes are priced by TTL using cacheDetails.

    0.1.11release notes

  • Explicit OpenAI service-tier pricing was added across all packages.

    0.1.11release notes

  • Provider prices were updated, changing the pricing data available to developers.

    0.1.11release notes

  • Long-context rates now start above 272K input tokens; GPT-6.1 Sol pricing was also added.

    0.1.10release notes

  • Pricing was added for web and file search calls by OpenAI deep research models.

    0.1.10release notes

  • xAI realtime reports billable audio seconds as a running total.

    0.1.9release notes

  • AWS GPT-5.6 (Luna, Sol, Terra) prices are now split into global and regional pricing.

    0.1.7release notes

  • Encodes OpenAI's long-context boundary as inclusive, affecting how usage is classified at the boundary.

    0.1.6release notes

  • Shares one background price updater across UpdatePrices instances.

    0.1.6release notes

  • Infers the Cloudflare native model from the request URL.

    0.1.5release notes

  • Applies billing minimums to Groq transcription.

    0.1.5release notes

  • Generated HuggingFace and OVHcloud providers expose a default api_flavor.

    0.1.5release notes

  • Adds file search tool call pricing to OpenAI models.

    0.1.5release notes

  • Adds web search tool call pricing to OpenAI models.

    0.1.5release notes

  • Usage values can now be fractional.

    0.1.4release notes

Fixes and other changes 28

  • Bedrock inference profile matching was added for Claude Haiku 4.5, Opus 5 and Sonnet 5.

    0.1.12release notes

  • Pricing was added for Muse Spark 1.1, 1.2 and 1.3, including Contributor mode.

    0.1.12release notes

  • AWS Titan Text Embeddings V2 is priced separately from V1.

    0.1.11release notes

  • Pricing is available for Claude Opus 4.5 on Google Vertex.

    0.1.11release notes

  • Fixed the cache-read price for Claude Sonnet 5.5.

    0.1.11release notes

  • Matched mistral-medium-2604 to Mistral Medium 3.5 for pricing.

    0.1.11release notes

  • Pricing was added for Claude Haiku 5.5.

    0.1.10release notes

  • Pricing was added for Claude Sonnet 5.5.

    0.1.10release notes

  • Pricing was added for open-weight models on Databricks Foundation Model APIs.

    0.1.10release notes

  • Gemini family aliases were matched and dataset gaps were filled.

    0.1.10release notes

  • The OpenRouter slug was matched to its dated form.

    0.1.10release notes

  • Price-check findings were fixed for Groq, DeepSeek, and GitHub Copilot.

    0.1.10release notes

  • Adds one-hour cache-write pricing on Bedrock and Vertex AI.

    0.1.9release notes

  • Fixes the root used to extract xAI realtime usage.

    0.1.6release notes

  • Matches the Azure AI Foundry host for Anthropic models.

    0.1.5release notes

  • Maps cache_write_tokens in Azure responses and chat extractors.

    0.1.5release notes

  • Matches Pixtral and Mixtral models to Mistral.

    0.1.5release notes

  • Fixes order-dependent price lookup by ensuring the cache write key matches its read key.

    0.1.5release notes

  • Refuses to overwrite provider YAML when an importer response is empty or sharply shrunken.

    0.1.5release notes

  • Prices xAI Realtime voice usage.

    0.1.5release notes

  • Corrects Gemini 3.6 Flash rates, affecting pricing information developers use for this model.

    0.1.3release notes

  • Pricing was added for Writer Palmyra X4 and X5 on AWS Bedrock.

    0.1.2release notes

  • Pricing was added for Modal Shared Endpoint.

    0.1.2release notes

  • Pricing was added for Z.AI GLM-5.2.

    0.1.2release notes

  • Normalized downloaded price constraints.

    0.1.1release notes

  • OpenAI gpt-5.6 family prices were updated, with terra and luna prices reduced.

    0.1.1release notes

  • Fixed the GPT-5.6 Luna and Terra price history.

    0.1.1release notes

  • v2 pricing data was published, giving developers a new version of the pricing data to use.

    0.1.0release notes

genai-prices 0.0154 changes

Breaking changes 2

  • Python 3.9 is no longer supported, so developers must use a supported Python version.

    0.0.62release notes

  • Model matching now enforces uniqueness.

    0.0.51release notes

New APIs and options 87

Behavior and default changes 20

  • Google pricing extraction now includes tool-use prompt audio tokens.

    0.0.72release notes

  • Opus and Sonnet pricing no longer uses tiered pricing.

    0.0.70release notes

  • TypeScript match logic is now case insensitive.

    0.0.65release notes

  • Provider matching now includes an amazon provider match for aws.

    0.0.62release notes

  • Updated gpt-5.5 aliases, which may affect model name resolution.

    0.0.61release notes

  • Adds support for the GA version of Gemini 3.1 Flash-Lite.

    0.0.60release notes

  • Updates Claude 4.6 pricing for OpenRouter and adds dated aliases.

    0.0.59release notes

  • Pricing was updated to reflect no long context costs.

    0.0.56release notes

  • Matchers were loosened for regional-only AWS Claude 3.* models.

    0.0.56release notes

  • AWS model identifiers can omit the version suffix, the regional prefix, or both.

    0.0.56release notes

  • AWS model matchers are loosened to support inference profiles.

    0.0.55release notes

  • Automates AWS price updates.

    0.0.48release notes

  • Updated Hugging Face prices.

    0.0.45release notesrelease notesrelease notes

  • AWS Anthropic model matchers were loosened, changing which model names the package recognizes.

    0.0.43release notes

  • AWS Anthropic support now covers all regions.

    0.0.43release notes

  • AWS model matches were loosened.

    0.0.39release notes

  • AWS model prices were updated.

    0.0.39release notes

  • The updatePrices factory now supports failure mode handling.

    0.0.38release notes

  • Updates prices for the Gemini 2.5 family of models.

    0.0.37release notes

  • Updates pricing for the GLM 4.5 and 4.6 models.

    0.0.37release notes

Fixes and other changes 45

  • Matches the GA Gemini Live model id so it can be recognized.

    0.0.73release notes

  • Validates Python pricing inputs.

    0.0.73release notes

  • JavaScript now honors timezone-aware price intervals.

    0.0.73release notes

  • Adds pricing for Gemini 3.5 Flash-Lite.

    0.0.72release notes

  • Groq maps prompt_tokens_details.cached_tokens to cache_read_tokens.

    0.0.70release notes

  • Missing multimodal pricing and an alias were added.

    0.0.70release notes

  • Mistral cached_tokens is mapped to cache_read_tokens.

    0.0.69release notes

  • Prices for OpenAI GPT-5 on Bedrock were added.

    0.0.68release notes

  • Pricing was added for Fireworks minimax-m3.

    0.0.67release notes

  • Pricing was added for Kimi K2.7 Code.

    0.0.67release notes

  • Mirror model IDs are now preserved for OpenRouter.

    0.0.67release notes

  • Official support for Python 3.14 was added.

    0.0.67release notes

  • Models with adaptive or negative pricing are now skipped.

    0.0.66release notes

  • Pricing for Claude Opus 4.8 was added.

    0.0.63release notes

  • Pricing was updated to the new permanent pricing.

    0.0.63release notes

  • Fixes the mapping of Google tool-use prompt token counts.

    0.0.60release notes

  • Fixes audio pricing data.

    0.0.59release notes

  • Keeps _background_task alive to update_prices after failed attempts.

    0.0.59release notes

  • Adds DeepSeek V3.2 pricing for OpenRouter.

    0.0.59release notes

  • Handles cases where fallback providers are missing.

    0.0.59release notes

  • Adds pricing for Nvidia Nemotron Bedrock models.

    0.0.59release notes

  • Fixes pricing for unpriced descendants.

    0.0.59release notes

  • Missing OpenAI GPT-5.x model name aliases were added.

    0.0.53release notes

  • The model name for qwen3-max (thinking) was corrected.

    0.0.53release notes

  • The LiteLLM provider is specially handled so price calculation is possible.

    0.0.52release notes

  • Fixed the tiered pricing calculation.

    0.0.50release notes

  • Fixes context windows for OpenAI embedding models.

    0.0.48release notes

  • Updates the OpenAI model pricing data.

    0.0.48release notes

  • Adds the latest x-ai models to the pricing data.

    0.0.48release notes

  • HuggingFace model names are lowercased.

    0.0.46release notes

  • Added the missing OpenAI computer-use model.

    0.0.40release notes

  • Fixed extraction of Google usage.

    0.0.40release notes

  • Added the missing OpenAI gpt-5.1-codex-mini model.

    0.0.40release notes

  • Google model usage now accounts for toolUsePromptTokenCount.

    0.0.40release notes

  • Groq prices were fixed, improving pricing information for Groq models.

    0.0.39release notes

  • Adds missing Google models to the pricing data.

    0.0.37release notes

  • Updates pricing for gpt-4o-mini-realtime-preview.

    0.0.37release notes

  • Adds missing OpenAI and Anthropic models to the pricing data.

    0.0.37release notes

  • Adds previously missing DeepSeek models to the OpenRouter pricing data.

    0.0.37release notes

  • Fixes JS pricing calculation.

    0.0.36release notes

  • Fixes JS extraction errors for optional fields.

    0.0.36release notes

  • The URL for simonw llm-prices was updated.

    0.0.35release notes

  • Pricing for Claude Haiku 4.5 was added, giving developers pricing information for this model.

    0.0.34release notes

  • The OpenRouter script now includes an audio field.

    0.0.33release notes

  • The AWS match statement was updated.

    0.0.33release notes