langfuse-model-list
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLangfuse Model List
Langfuse 模型列表
List all registered models and their pricing information.
列出所有已注册的模型及其定价信息。
Setup
配置
Set the following environment variables before use:
| Variable | Required | Description |
|---|---|---|
| Yes | Langfuse public key |
| Yes | Langfuse secret key |
| No | Langfuse host URL (default: |
使用前请设置以下环境变量:
| 变量 | 是否必填 | 说明 |
|---|---|---|
| 是 | Langfuse公钥 |
| 是 | Langfuse密钥 |
| 否 | Langfuse主机URL(默认值: |
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.tsbash
npx tsx scripts/langfuse-model-list.ts2. JSON Output (for programmatic processing)
2. JSON格式输出(用于程序化处理)
bash
npx tsx scripts/langfuse-model-list.ts --jsonbash
npx tsx scripts/langfuse-model-list.ts --jsonOutput 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 modelsLangfuse 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 modelsFields
字段说明
| Field | Description |
|---|---|
| Model Name | Model identifier |
| Input $/1M | Cost per 1M input tokens (USD) |
| Output $/1M | Cost per 1M output tokens (USD) |
| Match Pattern | Regex pattern for model name matching |
| 字段 | 说明 |
|---|---|
| Model Name | 模型标识符 |
| Input $/1M | 每100万输入token的成本(美元) |
| Output $/1M | 每100万输出token的成本(美元) |
| Match Pattern | 用于匹配模型名称的正则表达式 |