langfuse-model-list

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Langfuse Model List

Langfuse 模型列表

List all registered models and their pricing information.
列出所有已注册的模型及其定价信息。

Setup

配置

Set the following environment variables before use:
VariableRequiredDescription
LANGFUSE_PUBLIC_KEY
YesLangfuse public key
LANGFUSE_SECRET_KEY
YesLangfuse secret key
LANGFUSE_HOST
or
LANGFUSE_BASE_URL
NoLangfuse host URL (default:
https://cloud.langfuse.com
)
使用前请设置以下环境变量:
变量是否必填说明
LANGFUSE_PUBLIC_KEY
Langfuse公钥
LANGFUSE_SECRET_KEY
Langfuse密钥
LANGFUSE_HOST
LANGFUSE_BASE_URL
Langfuse主机URL(默认值:
https://cloud.langfuse.com

When to Use

使用场景

  • Checking the model list
  • Verifying pricing configuration
  • "What models are available?"
  • "I want to check pricing"
  • 查看模型列表
  • 验证定价配置
  • 查询“有哪些可用模型?”
  • 查询“我想查看定价信息”

Commands

命令

1. Get Model List

1. 获取模型列表

bash
npx tsx scripts/langfuse-model-list.ts
bash
npx tsx scripts/langfuse-model-list.ts

2. JSON Output (for programmatic processing)

2. JSON格式输出(用于程序化处理)

bash
npx tsx scripts/langfuse-model-list.ts --json
bash
npx tsx scripts/langfuse-model-list.ts --json

Output Example

输出示例

Langfuse Models
===============

Model Name                                        Input $/1M Output $/1M  Match Pattern
----------------------------------------------------------------------------------------------------
deepseek-v3                                           $0.2000      $0.6000  (?i)^deepseek-v3$
qwen/qwen3-32b                                        $0.2900      $0.5900  (?i)^qwen/qwen3-32b$

Total: 2 models
Langfuse Models
===============

Model Name                                        Input $/1M Output $/1M  Match Pattern
----------------------------------------------------------------------------------------------------
deepseek-v3                                           $0.2000      $0.6000  (?i)^deepseek-v3$
qwen/qwen3-32b                                        $0.2900      $0.5900  (?i)^qwen/qwen3-32b$

Total: 2 models

Fields

字段说明

FieldDescription
Model NameModel identifier
Input $/1MCost per 1M input tokens (USD)
Output $/1MCost per 1M output tokens (USD)
Match PatternRegex pattern for model name matching
字段说明
Model Name模型标识符
Input $/1M每100万输入token的成本(美元)
Output $/1M每100万输出token的成本(美元)
Match Pattern用于匹配模型名称的正则表达式