modelmix 4.5.6 → 4.5.8
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/README.md +33 -32
- package/index.js +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -133,38 +133,39 @@ The Model Context Protocol makes it easy to add any capability to your models, f
|
|
|
133
133
|
ModelMix provides convenient shorthand methods for quickly accessing different AI models.
|
|
134
134
|
Here's a comprehensive list of available methods:
|
|
135
135
|
|
|
136
|
-
| Method
|
|
137
|
-
|
|
|
138
|
-
| `gpt54()`
|
|
139
|
-
| `gpt54mini()`
|
|
140
|
-
| `gpt54nano()`
|
|
141
|
-
| `gpt53codex()`
|
|
142
|
-
| `gpt52()`
|
|
143
|
-
| `gpt51()`
|
|
144
|
-
| `gpt5mini()`
|
|
145
|
-
| `gpt5nano()`
|
|
146
|
-
| `gpt41()`
|
|
147
|
-
| `gpt41mini()`
|
|
148
|
-
| `gpt41nano()`
|
|
149
|
-
| `gptOss()`
|
|
150
|
-
| `opus46[think]()`
|
|
151
|
-
| `opus45[think]()`
|
|
152
|
-
| `sonnet46[think]()
|
|
153
|
-
| `sonnet45[think]()
|
|
154
|
-
| `haiku45[think]()`
|
|
155
|
-
| `gemini31pro()`
|
|
156
|
-
| `gemini3pro()`
|
|
157
|
-
| `gemini3flash()`
|
|
158
|
-
| `
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
166
|
-
| `
|
|
167
|
-
| `
|
|
136
|
+
| Method | Provider | Model | Price (I/O) per 1 M tokens |
|
|
137
|
+
| ------------------- | ---------- | ---------------------------- | -------------------------- |
|
|
138
|
+
| `gpt54()` | OpenAI | gpt-5.4 | [\$2.50 / \$15.00][1] |
|
|
139
|
+
| `gpt54mini()` | OpenAI | gpt-5.4-mini | [\$0.75 / \$4.50][1] |
|
|
140
|
+
| `gpt54nano()` | OpenAI | gpt-5.4-nano | [\$0.20 / \$1.25][1] |
|
|
141
|
+
| `gpt53codex()` | OpenAI | gpt-5.3-codex | [\$1.25 / \$14.00][1] |
|
|
142
|
+
| `gpt52()` | OpenAI | gpt-5.2 | [\$1.75 / \$14.00][1] |
|
|
143
|
+
| `gpt51()` | OpenAI | gpt-5.1 | [\$1.25 / \$10.00][1] |
|
|
144
|
+
| `gpt5mini()` | OpenAI | gpt-5-mini | [\$0.25 / \$2.00][1] |
|
|
145
|
+
| `gpt5nano()` | OpenAI | gpt-5-nano | [\$0.05 / \$0.40][1] |
|
|
146
|
+
| `gpt41()` | OpenAI | gpt-4.1 | [\$2.00 / \$8.00][1] |
|
|
147
|
+
| `gpt41mini()` | OpenAI | gpt-4.1-mini | [\$0.40 / \$1.60][1] |
|
|
148
|
+
| `gpt41nano()` | OpenAI | gpt-4.1-nano | [\$0.10 / \$0.40][1] |
|
|
149
|
+
| `gptOss()` | Together | gpt-oss-120B | [\$0.15 / \$0.60][7] |
|
|
150
|
+
| `opus46[think]()` | Anthropic | claude-opus-4-6 | [\$5.00 / \$25.00][2] |
|
|
151
|
+
| `opus45[think]()` | Anthropic | claude-opus-4-5-20251101 | [\$5.00 / \$25.00][2] |
|
|
152
|
+
| `sonnet46[think]()` | Anthropic | claude-sonnet-4-6 | [\$3.00 / \$15.00][2] |
|
|
153
|
+
| `sonnet45[think]()` | Anthropic | claude-sonnet-4-5-20250929 | [\$3.00 / \$15.00][2] |
|
|
154
|
+
| `haiku45[think]()` | Anthropic | claude-haiku-4-5-20251001 | [\$1.00 / \$5.00][2] |
|
|
155
|
+
| `gemini31pro()` | Google | gemini-3.1-pro-preview | [\$2.00 / \$12.00][3] |
|
|
156
|
+
| `gemini3pro()` | Google | gemini-3-pro-preview | [\$2.00 / \$12.00][3] |
|
|
157
|
+
| `gemini3flash()` | Google | gemini-3-flash-preview | [\$0.50 / \$3.00][3] |
|
|
158
|
+
| `gemini31flashLite()`| Google | gemini-3.1-flash-lite-preview | [\$0.25 / \$1.50][3] |
|
|
159
|
+
| `grok4()` | Grok | grok-4-0709 | [\$3.00 / \$15.00][6] |
|
|
160
|
+
| `grok41[think]()` | Grok | grok-4-1-fast | [\$0.20 / \$0.50][6] |
|
|
161
|
+
| `deepseekV32()` | Fireworks | fireworks/models/deepseek-v3p2| [\$0.56 / \$1.68][10] |
|
|
162
|
+
| `GLM47()` | Fireworks | fireworks/models/glm-4p7 | [\$0.55 / \$2.19][10] |
|
|
163
|
+
| `minimaxM27()` | MiniMax | MiniMax-M2.7 | [\$0.30 / \$1.20][9] |
|
|
164
|
+
| `sonar()` | Perplexity | sonar | [\$1.00 / \$1.00][4] |
|
|
165
|
+
| `sonarPro()` | Perplexity | sonar-pro | [\$3.00 / \$15.00][4] |
|
|
166
|
+
| `hermes3()` | Lambda | Hermes-3-Llama-3.1-405B-FP8 | [\$0.80 / \$0.80][8] |
|
|
167
|
+
| `qwen3()` | Together | Qwen3-235B-A22B-fp8-tput | [\$0.20 / \$0.60][7] |
|
|
168
|
+
| `kimiK25think()` | Together | Kimi-K2.5 | [\$0.50 / \$2.80][7] |
|
|
168
169
|
|
|
169
170
|
[1]: https://platform.openai.com/docs/pricing "Pricing | OpenAI"
|
|
170
171
|
[2]: https://docs.anthropic.com/en/docs/about-claude/pricing "Pricing - Anthropic"
|
package/index.js
CHANGED
|
@@ -70,6 +70,7 @@ const MODEL_PRICING = {
|
|
|
70
70
|
'gemini-3-flash-preview': [0.50, 3.00],
|
|
71
71
|
'gemini-2.5-pro': [1.25, 10.00],
|
|
72
72
|
'gemini-2.5-flash': [0.30, 2.50],
|
|
73
|
+
'gemini-3.1-flash-lite-preview': [0.25, 1.50],
|
|
73
74
|
// Grok
|
|
74
75
|
'grok-4-0709': [3.00, 15.00],
|
|
75
76
|
'grok-4-1-fast-reasoning': [0.20, 0.50],
|
|
@@ -396,6 +397,9 @@ class ModelMix {
|
|
|
396
397
|
gemini3flash({ options = {}, config = {} } = {}) {
|
|
397
398
|
return this.attach('gemini-3-flash-preview', new MixGoogle({ options, config }));
|
|
398
399
|
}
|
|
400
|
+
gemini31flashLite({ options = {}, config = {} } = {}) {
|
|
401
|
+
return this.attach('gemini-3.1-flash-lite-preview', new MixGoogle({ options, config }));
|
|
402
|
+
}
|
|
399
403
|
gemini25pro({ options = {}, config = {} } = {}) {
|
|
400
404
|
return this.attach('gemini-2.5-pro', new MixGoogle({ options, config }));
|
|
401
405
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modelmix",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.8",
|
|
4
4
|
"description": "🧬 Reliable interface with automatic fallback for AI LLMs.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
"test:tokens": "mocha test/tokens.test.js --timeout 10000 --require test/setup.js",
|
|
77
77
|
"test:offline": "mocha test/json.test.js test/fallback.test.js test/templates.test.js test/images.test.js test/bottleneck.test.js test/tokens.test.js test/history.test.js --timeout 10000 --require test/setup.js"
|
|
78
78
|
}
|
|
79
|
-
}
|
|
79
|
+
}
|