langfuse-model-upsert

Create or update Langfuse model pricing. Use when setting up new models, updating pricing, or configuring model costs.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "langfuse-model-upsert" with this command: npx skills add neuradex/langfuse-skills/neuradex-langfuse-skills-langfuse-model-upsert

Langfuse Model Upsert

Create or update model pricing information.

Setup

Set the following environment variables before use:

VariableRequiredDescription
LANGFUSE_PUBLIC_KEYYesLangfuse public key
LANGFUSE_SECRET_KEYYesLangfuse secret key
LANGFUSE_HOST or LANGFUSE_BASE_URLNoLangfuse host URL (default: https://us.cloud.langfuse.com)

When to Use

  • Setting model pricing
  • Adding a new model
  • Updating pricing

Commands

1. Set Model Pricing

npx tsx scripts/langfuse-model-upsert.ts "<model-name>" --input <input-price> --output <output-price>

2. With Custom Match Pattern

npx tsx scripts/langfuse-model-upsert.ts "<model-name>" --input <input-price> --output <output-price> --pattern "<regex>"

Examples

# Set pricing for Groq qwen3-32b
npx tsx scripts/langfuse-model-upsert.ts "qwen/qwen3-32b" --input 0.29 --output 0.59

# Set pricing for Fireworks deepseek-v3 (with pattern)
npx tsx scripts/langfuse-model-upsert.ts "deepseek-v3" --input 0.20 --output 0.60 --pattern ".*deepseek-v3.*"

Output Example

Updating existing model: qwen/qwen3-32b
  Current: input=$0.20, output=$0.40
  Deleted old model definition

Model updated successfully!
  Model Name: qwen/qwen3-32b
  Input Price: $0.29/1M tokens
  Output Price: $0.59/1M tokens

Parameters

ParameterDescription
<model-name>Model identifier (required)
--inputCost per 1M input tokens (USD)
--outputCost per 1M output tokens (USD)
--patternRegex pattern for model name matching (default: exact match)

Notes

  • Prices are in USD per 1M tokens
  • Existing models are deleted and re-created (update)
  • If no pattern is specified, the model name is used as an exact match

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

langfuse-prompt-list

No summary provided by upstream source.

Repository SourceNeeds Review
General

langfuse-session-list

No summary provided by upstream source.

Repository SourceNeeds Review
General

langfuse-prompt-upsert

No summary provided by upstream source.

Repository SourceNeeds Review
General

langfuse-trace-view

No summary provided by upstream source.

Repository SourceNeeds Review
langfuse-model-upsert | V50.AI