Logo: Check Prices

Check Prices

OrganisatiounBeléift
GetStream
check_prices

Check every price the router bills with against what each vendor charges today, and prepare the price changes for each one that is wrong. Use when a vendor announced new prices, before a release, or when asked whether our prices are right.

Iwwersiicht

EditeurGetStream
RepositoryAgents
Skill-Nummcheck_prices
Stären
8.2K
Forks
709
Matgeliwwert Dateien
1
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    GetStream huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Check Prices an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/GetStream/Agents/tree/main/.claude/skills/check_prices
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GetStream/Agents.git /tmp/Agents
mkdir -p .claude/skills
cp -r /tmp/Agents/.claude/skills/check_prices .claude/skills/check_prices
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Check Prices an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Check Prices automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Check Prices net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Check prices

Every unit of work the router records is priced by one price list (acceleration/internal/pricing). Each entry's rates are the vendors' list prices, kept for reference; what customers are charged is its prices, set by the operator, and never this skill's business.

Every entry names its region (us, eu), and vendor.json is all us. Every llm, knowledge and sandbox entry also has a BYOK twin ("byok": true), for work done with the customer's own key: the router makes it when it reads a price file, with the same rates and a price of 20% of them. Check the us entries that are not BYOK against the vendors' pages. A twin's rates are its entry's, so they are right when the entry's are. An entry of another region is checked against that region's prices on the vendor's page.

WhereWhat it isHow it changes
acceleration/prices/vendor.jsonThe vendors' published list prices, embedded in the router. A new database is seeded from it at the router's first startA PR. Editing it never changes a database that already has the item
A deployment's database (price_changes, price_list_entries)The list once seeded, from vendor.json and any price file of the deployment's own (ROUTER_PRICES_FILE) laid over it. A router that does not yet price from the database prices from those two filesA new price change through the router's management API. A release's start only adds items the database never priced

So a wrong price is fixed twice: a price change for each environment, and a PR to vendor.json so new deployments start right. This skill prepares both and writes neither to a shared environment.

1. What we charge

The vendor rates in force, read-only. Pick one:

  • The public list itself: read acceleration/prices/vendor.json.
  • An environment's list: in one of its router pods, router prices show --json (kubectl exec … -- router prices show --json). It reads the database and writes nothing. When the router serves the management API's price-list read (GET /v1/manage/price-lists/active), that answers the same: call it through kubectl port-forward to the router's Service with that environment's manage key and X-Stream-Actor-Id: skill:check_prices. Read the key inside a subshell from the environment's secret; never print it, log it or write it to a file, and let the port-forward stop when the subshell exits.
  • No cluster access: start a router on a scratch database (the local Postgres the integration tests use, never a shared environment's); it seeds itself from vendor.json. Then router prices show --json.

router prices show --unpriced lists the routed models no entry prices: each is missing.

Skip the entries that are not a vendor's price: a model the routing config marks local: true (its rate, if any, estimates what running it costs the deployment), and the phone vendors' free call, transfer and number entries.

2. What vendors charge

Group the entries by provider. Dispatch one subagent per provider, in parallel, as integrate_new_models does. Each fetches the vendor's public pricing page and returns, per entry: the figure and unit as the page writes them, a short quote of the text around it, the URL and the date read. A page that needs a login, or is ambiguous about which model or tier a figure is for, is unclear: never guess.

Pages to start from. A subagent that finds one moved, or a provider missing, fixes this table in the same PR.

ProviderPricing page
openaihttps://developers.openai.com/api/docs/pricing (each model's page under https://developers.openai.com/api/docs/models/)
anthropichttps://platform.claude.com/docs/en/about-claude/pricing
gemini, googlehttps://ai.google.dev/gemini-api/docs/pricing
xai, grokhttps://docs.x.ai/developers/pricing
deepgramhttps://deepgram.com/pricing
elevenlabshttps://elevenlabs.io/pricing/api
cartesiahttps://cartesia.ai/pricing
assemblyaihttps://www.assemblyai.com/pricing
inworldhttps://inworld.ai/pricing
together, together-*https://www.together.ai/pricing
openrouterhttps://openrouter.ai/models (each model's page). Decision models are often not listed: check them with step 4b
perplexityhttps://docs.perplexity.ai/docs/getting-started/pricing
deepseek, basetenhttps://www.baseten.co/library/ (each model's page): the deepseek provider calls Baseten's Model APIs unless DEEPSEEK_BASE_URL names another endpoint, so DeepSeek's own prices do not apply
qwenhttps://www.alibabacloud.com/help/en/model-studio/model-pricing (International)
fishhttps://docs.fish.audio/developer-guide/models-pricing/pricing-and-rate-limits
telnyxhttps://telnyx.com/pricing/voice-api and https://telnyx.com/pricing/elastic-sip: call_minutes in the US is the per-minute voice rate plus the SIP leg to the Stream trunk (Voice API $0.002 + Elastic SIP); in Canada, outbound is Voice API $0.002 + Zone 3 termination $0.02 from the pay-as-you-go rate deck (https://portal.telnyx.com/downloads/global_conversational/global_conver_884e43be81.csv) (standing in for the Elastic SIP fee; Zones 4, 5 and N11 are not covered), and there is no inbound Canada rate. Inbound rates are local-number rates; calls to toll-free numbers are billed at them too, because a leg does not carry the number type
twiliohttps://www.twilio.com/en-us/voice/pricing/us (and /ca): call_minutes is the local per-minute rate plus the SIP interface. Inbound rates are local-number rates; calls to toll-free numbers are billed at them too, because a leg does not carry the number type
meta (WhatsApp)https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing
exahttps://exa.ai/pricing
tavilyhttps://www.tavily.com/pricing
falhttps://fal.ai/pricing (each model's page)
anyone elsethe vendor's own docs; add the row

3. A second opinion

bash
uv run --no-project .claude/skills/check_prices/litellm.py

It reads LiteLLM's price catalog at its latest release tag (it prints the tag; never main) and prints its figures for the same items in our meters and units: input_cost_per_token × 1,000,000 is input_tokens per 1,000,000, cache_read_input_token_cost is cached_input_tokens, cache_creation_input_token_cost is cache_write_input_tokens, *_above_<n>k_tokens is a context tier above <n>,000, input_cost_per_audio_token is input_audio_tokens, input_cost_per_second × 3,600 is audio_ms per 3,600,000, *_cost_per_character is characters per 1,000,000, and output_cost_per_image is images. Pass --list a file from step 1 to check an environment's list, and --json for rows to work with. An item it cannot find reads no match. It compares only the us entries that are not BYOK, since LiteLLM lists the vendors' US list prices, and counts the rest as skipped.

A service-tier entry (when: {"service_tier": …}) is compared with LiteLLM's figures for that tier (its _flex, _batches, _priority and _ultrafast fields; fast is billed as priority). For a speech-to-speech model compare the per-modality meters (input_audio_tokens, output_text_tokens and the rest): its generic input_tokens and output_tokens are the fallback for a vendor that reports no split, at the audio rates, while LiteLLM's generic fields are the text rates.

Where the vendor's page and LiteLLM disagree, the page wins and the report says so. LiteLLM is never the source of a price.

4. Compare

Vendor rates with vendor rates, never with what a customer is charged, after converting units: per minute is audio_ms per 3,600,000 at 60×, per 1K characters is per 1,000,000 at 1,000×. Each entry is one of:

StatusMeaning
okwithin half a percent
underour vendor rate is below the vendor's: money lost on every request. Fixed first
overabove it: the customer overpays
missingrouted and unpriced (--unpriced)
gonethe vendor no longer lists the model
unclearthe page did not say

Compare every tier too: each service-tier entry (when: {"service_tier": …}), each context tier, a cached or cache-write rate the vendor lists and the entry lacks (the list then charges those tokens the input rate: over), and a dated change the vendor announced that no scheduled change in the list carries yet.

4b. Against what the vendor billed

Some vendors say in their answer what the work cost them; the router keeps that figure on the row as attributes.vendor_cost_micros. In a router pod of the environment:

bash
router prices drift --since 168h --json

It reads every shard and gives, per model, the number of such rows, the median gap between the list's cost at the vendor's rates and the vendor's figure (negative where the list billed less), and the ten rows with the widest gap. A median gap past 1% either way is drift: a wrong rate or a meter the list misses, never something to correct row by row. Report it with the command's example rows. For a model whose vendor publishes no price list, this is the only check there is.

5. Prepare the changes

For each vendor announcement, one price change as JSON in .claude/skills/check_prices/out/<date>_<provider>.json (git-ignored): never one per model, and never one for the whole run.

json
{
  "name": "openai_gpt_price_change",
  "reason": "gpt-x input $2.00 → $2.50 per 1M tokens, cached $0.20 → $0.25",
  "source": "https://platform.openai.com/docs/pricing, read 2026-11-02",
  "effective_at": "2026-12-01T00:00:00Z",
  "entries": [
    {"modality": "llm", "provider": "openai", "model": "gpt-x", "region": "us",
     "rates": {"input_tokens": {"usd": 2.5, "per": 1000000}, "cached_input_tokens": {"usd": 0.25, "per": 1000000}},
     "prices": {"input_tokens": {"usd": 2.4, "per": 1000000}, "cached_input_tokens": {"usd": 0.24, "per": 1000000}}},
    {"modality": "llm", "provider": "openai", "model": "gpt-x", "region": "us", "byok": true,
     "rates": {"input_tokens": {"usd": 2.5, "per": 1000000}, "cached_input_tokens": {"usd": 0.25, "per": 1000000}},
     "prices": {"input_tokens": {"usd": 0.4, "per": 1000000}, "cached_input_tokens": {"usd": 0.04, "per": 1000000}}}
  ]
}
  • Every entry names its region; a change without one is refused. The BYOK twin is an item of its own, so a vendor's new rate is written to it too, with the same rates and its own price in force.
  • An entry replaces the item's entry whole, so it carries every rate and tier the item has, not only the one that moved.
  • It carries the item's price too (prices, and price_tiers for each of its tiers), with the same meters as its rates: the price in force, unchanged, as router prices show --json gives it. What customers are charged is the operator's decision, never this skill's; a new item takes its new rates times 1.08 (pricing.PriceFactorBps) and says so in reason.
  • reason says old → new with units for each model; source the URL and the date read; effective_at the vendor's date when it is in the future, else leave it out.
  • A gone model is withdrawn ("withdrawn": true, one entry for each when it has) only when it is also gone from router.yaml; otherwise report it.
  • Never a markup, and never a price moved.

6. Check them

Each file's entries must build a list: put them in a price file and run router prices check --file <path>. When the router serves the management API's preview (POST /v1/manage/price-lists/changes/preview), send each body there too, on a router started locally on the scratch database or through the port-forward of step 1 (it writes nothing): its old and new vendor rates must be exactly the report's.

7. Hand over

  • A draft PR updating vendor.json with the same vendor rates, per the pr skill, so new deployments start from them. Rates only: the PR never adds a price or a markup.
  • The change files, for an operator to apply through each environment's management API. The skill never writes a price to a shared environment.

8. Report

One table of every entry checked, with its status, then what was prepared. Put the run's date, the LiteLLM tag and the count per status in the PR description.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Check Prices?

Check every price the router bills with against what each vendor charges today, and prepare the price changes for each one that is wrong. Use when a vendor announced new prices, before a release, or when asked whether our prices are right.

Firwat Check Prices op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Check Prices besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Check Prices an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/GetStream/Agents/tree/main/.claude/skills/check_prices an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Check Prices benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Check Prices benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Check Prices domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Check Prices gratis?

Jo. GetStream huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇