New to Claude Skills? Learn how to install them →

Alangfuse on GitHub

Add Model Price

Free

Streamline model pricing updates and audits.

by langfuse32.8k stars on langfuse/langfuse
1 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Add Model Price does

The Add Model Price skill is designed for developers and teams managing model pricing configurations in AI applications. It facilitates the process of editing pricing data for various models, including those from OpenAI, Anthropic, and others. By utilizing this skill, users can efficiently update model prices, add new models, and ensure that pricing information remains current and accurate across their systems.

This skill provides a structured approach to modifying critical files such as default-model-prices.json and types.ts. Users can easily follow the provided checklist for adding or updating models, ensuring that all necessary steps are taken to maintain consistency and accuracy in pricing. The skill also includes a set of reference documents that guide users through specific tasks, such as creating match patterns or auditing existing pricing for discrepancies.

The Add Model Price skill is particularly useful for teams that frequently interact with multiple AI model providers. It helps streamline the process of integrating new pricing information and validating existing data, reducing the risk of errors that can arise from manual updates. Additionally, the skill includes deterministic helpers, such as a pricing file validator and match-pattern tester, which enhance the reliability of the updates made.

In summary, this skill is an essential tool for any developer or team involved in managing AI model pricing, providing a clear workflow and validation mechanisms to ensure data integrity and compliance with provider specifications.

When to use it

Use this skill when you need to edit model pricing files or update shared LLM type definitions in your project.

When not to use it

This skill is not suitable for tasks unrelated to model pricing or if you are not working with the specified AI model providers.

What you can build with it

Adding a New Model

When integrating a new AI model, use this skill to gather pricing and create necessary entries in your pricing files.

Updating Existing Prices

Utilize this skill to refresh pricing details and ensure all model entries reflect the latest information.

Auditing Pricing Data

Run audits on your model pricing to identify stale or unmatched entries, ensuring compliance with provider documentation.

How to install Add Model Price

View source

1. Install with the skills CLI

npx skills add langfuse/langfuse/add-model-price --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by langfuse

Add Model Price

Use this skill for model pricing changes in worker/ and shared LLM type updates in packages/shared/.

When to Apply

  • Editing worker/src/constants/default-model-prices.json
  • Editing packages/shared/src/server/llm/types.ts
  • Adding a new priced model
  • Updating provider prices, cache pricing, or tier conditions
  • Expanding regex coverage for Bedrock, Vertex, Azure, or provider-prefixed model names
  • Auditing default model prices for stale, missing, or unmatched provider pricing
  • Auditing official provider docs for newly released major models that should receive default pricing and, when appropriate, selectable-model coverage

How to Read This Skill

  • Use this SKILL.md as the high-level workflow and helper index.
  • Open only the specific reference file that matches the task.

Quick Start Checklist

Adding a New Model

  • Gather official pricing from the provider documentation.
  • Generate a lowercase UUID for the model entry.
  • Create a matchPattern that covers supported provider formats.
  • Add at least one default pricing tier.
  • Map every supported semantic usage bucket to the provider aliases Langfuse may persist.
  • Insert the pricing entry into worker/src/constants/default-model-prices.json.
  • Update packages/shared/src/server/llm/types.ts if the model should be selectable in playground or evaluation flows.
  • Validate the JSON after editing.

Updating an Existing Model

  • Update the relevant prices, keys, tiers, or regexes.
  • Refresh updatedAt to today's ISO-8601 timestamp.
  • Validate the JSON after editing.

Reference Map

TopicRead this whenFile
Schema and tier rulesYou need the entry shape or pricing-tier invariantsreferences/schema-and-tiers.md
Provider sources and price keysYou need official pricing URLs, per-token conversion, or provider-specific usage keysreferences/provider-sources-and-price-keys.md
Provider usage-key matrixYou are adding or changing OpenAI, Gemini, Anthropic, or Bedrock usage keysreferences/provider-usage-key-matrix.md
Match patternsYou are editing matchPattern regexes or provider coveragereferences/match-patterns.md
Workflow and validationYou are applying the end-to-end edit process or checking common mistakesreferences/workflow-and-validation.md
Automated audit modeYou are running a scheduled/default-price audit and need CI-safe edit rulesreferences/automated-audit.md
Audit memoryYou need optional per-model context retained from a useful prior automated auditreferences/model-audit-memory.md

Deterministic Helpers

  • Pricing file validator: node .agents/skills/add-model-price/scripts/validate-pricing-file.mjs
  • Match-pattern tester: node .agents/skills/add-model-price/scripts/test-match-pattern.mjs --model <modelName> --accept <sample...> --reject <sample...>
  • Direct regex tester: node .agents/skills/add-model-price/scripts/test-match-pattern.mjs --pattern '(?i)^(openai/)?(gpt-4o)$' --accept gpt-4o openai/gpt-4o --reject gpt-4o-mini

Frequently asked questions about Add Model Price

Similar skills