
Add Model Price
FreeStreamline model pricing updates and audits.
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 source1. Install with the skills CLI
npx skills add langfuse/langfuse/add-model-price --agent claude-code2. 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 langfuseAdd 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.mdas 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
matchPatternthat 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.tsif 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
updatedAtto today's ISO-8601 timestamp. - Validate the JSON after editing.
Reference Map
| Topic | Read this when | File |
|---|---|---|
| Schema and tier rules | You need the entry shape or pricing-tier invariants | references/schema-and-tiers.md |
| Provider sources and price keys | You need official pricing URLs, per-token conversion, or provider-specific usage keys | references/provider-sources-and-price-keys.md |
| Provider usage-key matrix | You are adding or changing OpenAI, Gemini, Anthropic, or Bedrock usage keys | references/provider-usage-key-matrix.md |
| Match patterns | You are editing matchPattern regexes or provider coverage | references/match-patterns.md |
| Workflow and validation | You are applying the end-to-end edit process or checking common mistakes | references/workflow-and-validation.md |
| Automated audit mode | You are running a scheduled/default-price audit and need CI-safe edit rules | references/automated-audit.md |
| Audit memory | You need optional per-model context retained from a useful prior automated audit | references/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
Spring Boot Testing
Master testing techniques for Spring Boot 4 applications.
GitHub Issues
Manage GitHub issues efficiently with MCP tools.
Geofeed Tuner
Optimize your IP geolocation feeds in CSV format.
Batch Files
Master Windows batch scripting for automation and task management.
Adobe Illustrator Scripting
Automate your Illustrator workflows with ExtendScript.
Plugin Structure
Create and organize Claude Code plugins effectively.
