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
-foroutput_pricewhen 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:
- •
OpenAI: https://platform.openai.com/docs/pricing
- •Extract API prices (per 1M tokens) from the "Language models" section
- •Use standard API prices, not Batch API prices
- •Exclude models explicitly marked as deprecated/legacy
- •Include audio, realtime, search, computer-use, and image models
- •
Anthropic: https://www.anthropic.com/pricing
- •Extract model prices (per 1M tokens) from the API section
- •If prices are shown in MTok notation, they are already in per-1M-token units
- •
Google: https://ai.google.dev/pricing
- •Extract Gemini model prices (per 1M tokens)
- •Use Pay-as-you-go prices, not the free tier
- •Use the price for prompts up to 128K tokens when tiered pricing exists
- •
DeepSeek: https://platform.deepseek.com/pricing (or https://api-docs.deepseek.com/quick_start/pricing)
- •Extract API prices (per 1M tokens)
- •Use standard prices, not cache hit prices
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_pricefor 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.