Repository navigation
usage-tab@1.3.0
Minor Changes
-
a721a5f: Refresh every provider's pricing data (observed 2026-10-03) and add the models released since the last pass. 152 models to 172.
Azure now charges OpenAI's first-party price for
gpt-5.6-sol,gpt-5.6-terraandgpt-5.6-luna. Azure cut sol from $5.00/$30.00 to $4.00/$20.00, terra from $2.50/$15.00 to $2.00/$12.00 and luna from $1.00/$6.00 to $0.20/$1.20 per million tokens. The new rates apply from 2026-10-03. Lookups dated earlier still return the prices observed then, so luna on 2026-08-05 is still 5x apart. The README's headline example now usesgemma-4-31b, which costs 2.5x more on Together than on AWS Bedrock today.Retired models are removed, so a lookup for them now throws
UNKNOWN_MODELat any date; price historical usage for them with an override. They are Mistral'sdevstral-2,devstral-small-2,magistral-medium,magistral-small,mistral-nemo,mixtral-8x7bandmixtral-8x22b; Groq'sllama-3.1-8b-instant,llama-3.3-70b-versatileandqwen3.6-27b; and Cohere'saya-expanse-8b.gemini-omni-1.1-flashandgemini-omni-flash-previewrecord the $9.00 text output rate and carry aPARTIAL_TIER_PRICINGwarning, because video output costs $17.50 per million tokens.openai:gpt-3.5-turboloses its batch rate, since OpenAI's Batch table no longer lists it: a batch request for it is priced at standard rates with aBATCH_PRICING_UNAVAILABLEwarning.Other price changes:
together:qwen3.7-maxrose from $1.25/$3.75 to $1.50/$4.50, andtogether:qwen3.8-flashfell from $0.15/$0.47 to $0.09/$0.28.New models:
claude-opus-5-5,claude-sonnet-5-5;gpt-6.1-sol,gpt-6-sol,gpt-6-luna,chat-latest,gpt-5.3-codex,gpt-5-search-api,gpt-rosalind-research,gpt-5.6-cyber,gpt-5.5-cyber;gemini-3-flash-preview,gemini-omni-1.1-flash,gemini-omni-flash-preview,gemini-robotics-er-2-preview,gemini-robotics-er-2-streaming-preview;gpt-6-astraon Azure;gemma-4-26b-a4b,gemma-4-e2b,gemma-3-4bandnemotron-3-nano-30bon Bedrock;command-r7b-12-2024andcommand-r-08-2024on Cohere;zai-glm-5-3on Mistral; seven more on Together.Newly published rates fill in fields that were missing:
cacheWriteon four OpenAI models and OpenRouter's Gemini entry, so their cache writes are priced at the published rate instead of the input rate with a warning.cachedInputongemini-3.5-flash-lite, five Together models and four Mistral models.batchMultiplieron five Mistral models and on Azure'sgpt-4-turboandgpt-4.
-
c5113e6:
createPriceCalculatoraccepts a defaultprovider.An id registered under several providers, such as
gpt-5.6-lunaunderopenaiandazure-openai, used to throwAmbiguousAliasErrorunless every call repeated the qualifier. A per-calloptions.providerorrequest.providerstill takes precedence, and the default is a hard constraint like either of them: an id the provider does not list throwsUnknownModelError.
Patch Changes
-
b94effd:
normalizeAnthropicUsagenow warns withCACHE_WRITE_TTL_NOT_MODELEDwhen a response reports 1-hour cache writes.The registry records one cache-write rate per model, the 5-minute TTL rate. A 1-hour write costs more (2x input against 1.25x), so those tokens were under-priced with no warning. The cost is unchanged; the warning now says it is low.
cache_creation.ephemeral_5m_input_tokensandephemeral_1h_input_tokensare also validated whencache_creation_input_tokensis present, so a malformed value throwsInvalidUsageErrorinstead of being ignored. -
ac175df:
normalizeOpenAICompatibleUsagenow warns about unrecognized fields insideprompt_tokens_detailsandcompletion_tokens_details, matchingnormalizeOpenAIUsage.It used to check top-level keys only, so a token class a gateway added inside a details object, such as
image_tokens, went unpriced with no warning.