AgentSkillsCN

update-prices

从官方供应商定价页面更新 LLM 模型定价 CSV 文件。

SKILL.md
--- frontmatter
name: update-prices
description: Update LLM model pricing CSV from official provider pricing pages
user_invocable: true

LLM Model Pricing Update

Update src/data/llm_models.csv with the latest pricing information from each provider's official pricing page.

CSV Format

code
provider,model,input_price,output_price,pricing_url
  • input_price / output_price: USD per 1M tokens
  • pricing_url: The provider's official pricing page URL
  • Use - for output_price when it does not apply (e.g., image generation models)

Steps

1. Read the current CSV

Read src/data/llm_models.csv to understand the current list of providers and models.

2. Fetch pricing pages from each provider

Use WebFetch to retrieve the latest pricing information from the following URLs in parallel:

3. Update the CSV

Based on the fetched information, perform the following:

  • Add new models: Add models that exist on the official page but are missing from the CSV. Group models by provider.
  • Update prices: Update input_price / output_price for models whose prices have changed.
  • Remove deleted models: Remove rows for models that have been discontinued from the official page.
  • Maintain the existing provider order (OpenAI → Anthropic → Google → DeepSeek).
  • Order models within each provider according to the official page listing order.

4. Report changes

After the update is complete, report the following to the user:

  • List of newly added models
  • List of models with price changes (old price → new price)
  • List of removed models
  • If no changes were made, report that as well

Notes

  • If WebFetch fails or the page structure has changed, report the issue for that provider and prompt the user for manual verification.
  • Skip and report models with unclear pricing (e.g., per-request billing only, not per-token).
  • Ensure the CSV ends with a single trailing newline.