pricing
БесплатноБез исполняемых скриптовНе проверенGuide for updating model pricing in Splitrail. Use when adding new AI model costs or updating existing pricing data.
Об этом скилле
Pricing Model Updates
Token pricing is defined in src/models.rs. Built-in models are populated by populate_defaults() into the runtime model registry, and user/config models can be merged with init_external_models().
Adding a New Model
- Add a
ModelInfoentry inpopulate_defaults()with:pricing: UsePricingStructure::Flat { input_per_1m, output_per_1m }for flat-rate models, orPricingStructure::Tieredfor threshold-based pricing.caching: Use the appropriateCachingSupportvariant (None,OpenAI,Anthropic,OpenAIWithWrites, orTiered).service_tiers: Leave empty unless the provider has distinct priority/flex/batch rates.dated_pricing: Leave empty unless pricing changes by usage date.is_estimated: Set totrueonly when pricing is not confirmed by a provider/tool source.input_token_semantics: Auto-derived for built-in models (defaults toExcludesCache); only GPT/o-series models typically needIncludesCacheRead. External model configs should set this explicitly if it affects cache-read counting.
- If the model has aliases (date suffixes, provider-prefixed names, regional names, etc.), add entries to the alias section mapping each observed name to the canonical model name.
- Add or update tests in
src/models.rsfor canonical pricing, aliases, caching, and estimated/non-estimated status.
Dated Pricing Overrides
Use dated_pricing when a model has temporary promotional pricing, launch pricing, or another time-bounded rate that should apply based on the original usage timestamp.
The default pricing and caching fields should represent the durable/current sticker price. Each DatedPricing override has a valid_until: NaiveDate exclusive end date and applies when usage_date < valid_until. For example, an introductory rate that applies through 2026-08-31 should use valid_until = NaiveDate::from_ymd_opt(2026, 9, 1).expect("valid date").
When adding a dated override:
- Keep the model's default
pricing/cachingat the post-promo or durable rate. - Add the temporary rate with
add_dated_pricing!()afteradd_model!(). - Add boundary tests for the final day of the temporary rate and the first day after it ends.
- Prefer dated calculator functions in analyzers that know the usage timestamp.
Price Calculation
Use models::calculate_total_cost_for_service_tier_at() when an analyzer has a message or event timestamp. This preserves historical costs across dated pricing windows.
Use the undated compatibility helpers, such as models::calculate_total_cost(), only for tests, config-like calculations, or call sites that truly do not know the usage date. Undated helpers use the model's default pricing/caching, not temporary dated overrides.
Common Pricing Sources
Установить pricing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pricing?
Guide for updating model pricing in Splitrail. Use when adding new AI model costs or updating existing pricing data.
Как установить скилл pricing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pricing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic