@agent-finops/core 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modelPricing.js +15 -0
- package/package.json +1 -1
package/dist/modelPricing.js
CHANGED
|
@@ -18,6 +18,21 @@ const pricingRules = [
|
|
|
18
18
|
{ match: /^gpt-4o/i, inputPerM: 2.5, outputPerM: 10 },
|
|
19
19
|
{ match: /^o3$/i, inputPerM: 2, outputPerM: 8 },
|
|
20
20
|
{ match: /^o4-mini/i, inputPerM: 1.1, outputPerM: 4.4 },
|
|
21
|
+
// Google (Gemini API list prices)
|
|
22
|
+
{ match: /^gemini-2\.5-pro/i, inputPerM: 1.25, outputPerM: 10 },
|
|
23
|
+
{ match: /^gemini-2\.5-flash-lite/i, inputPerM: 0.1, outputPerM: 0.4 },
|
|
24
|
+
{ match: /^gemini-2\.5-flash/i, inputPerM: 0.3, outputPerM: 2.5 },
|
|
25
|
+
// DeepSeek (official API list prices)
|
|
26
|
+
{ match: /^deepseek-chat|^deepseek-v3/i, inputPerM: 0.27, outputPerM: 1.1 },
|
|
27
|
+
{ match: /^deepseek-reasoner|^deepseek-r1/i, inputPerM: 0.55, outputPerM: 2.19 },
|
|
28
|
+
// Moonshot / Kimi (official API list prices)
|
|
29
|
+
{ match: /^kimi-k2|^moonshot/i, inputPerM: 0.6, outputPerM: 2.5 },
|
|
30
|
+
// xAI / Grok (official API list prices)
|
|
31
|
+
{ match: /^grok-4|^grok-3$/i, inputPerM: 3, outputPerM: 15 },
|
|
32
|
+
{ match: /^grok-3-mini/i, inputPerM: 0.3, outputPerM: 0.5 },
|
|
33
|
+
// Open-weight models with NO canonical price (llama, qwen, mistral, glm):
|
|
34
|
+
// hosting rates vary several-fold by provider, so we deliberately return
|
|
35
|
+
// undefined -> costConfidence "missing" instead of inventing a number.
|
|
21
36
|
{ match: /codex/i, inputPerM: 1.25, outputPerM: 10, cacheReadPerM: 0.125 }
|
|
22
37
|
];
|
|
23
38
|
export function findPricingRule(model) {
|