|
|
@@ -1,11 +1,11 @@
|
|
|
import type { ModelInfo } from "../model.js"
|
|
|
|
|
|
// Minimax
|
|
|
-// https://platform.minimax.io/docs/guides/pricing
|
|
|
-// https://platform.minimax.io/docs/api-reference/text-openai-api
|
|
|
-// https://platform.minimax.io/docs/api-reference/text-anthropic-api
|
|
|
+// https://platform.minimax.io/docs/guides/models-intro
|
|
|
+// https://platform.minimax.io/docs/guides/pricing-paygo
|
|
|
+// https://platform.minimax.io/docs/guides/pricing-tokenplan
|
|
|
export type MinimaxModelId = keyof typeof minimaxModels
|
|
|
-export const minimaxDefaultModelId: MinimaxModelId = "MiniMax-M2.5"
|
|
|
+export const minimaxDefaultModelId: MinimaxModelId = "MiniMax-M2.7"
|
|
|
|
|
|
export const minimaxModels = {
|
|
|
"MiniMax-M2.5": {
|
|
|
@@ -21,11 +21,56 @@ export const minimaxModels = {
|
|
|
cacheWritesPrice: 0.375,
|
|
|
cacheReadsPrice: 0.03,
|
|
|
description:
|
|
|
- "MiniMax M2.5, the latest MiniMax model with enhanced coding and agentic capabilities, building on the strengths of the M2 series.",
|
|
|
+ "MiniMax M2.5, the latest MiniMax model with enhanced coding and agentic capabilities, building on the strengths of the M2 series. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.",
|
|
|
+ },
|
|
|
+ "MiniMax-M2.5-highspeed": {
|
|
|
+ maxTokens: 16_384,
|
|
|
+ contextWindow: 204_800,
|
|
|
+ supportsImages: false,
|
|
|
+ supportsPromptCache: true,
|
|
|
+ includedTools: ["search_and_replace"],
|
|
|
+ excludedTools: ["apply_diff"],
|
|
|
+ preserveReasoning: true,
|
|
|
+ inputPrice: 0.6,
|
|
|
+ outputPrice: 2.4,
|
|
|
+ cacheWritesPrice: 0.375,
|
|
|
+ cacheReadsPrice: 0.03,
|
|
|
+ description:
|
|
|
+ "MiniMax M2.5 highspeed: same performance as M2.5 but with faster response (approximately 100 tps vs 60 tps). See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Requires TokenPlan High-Speed subscription for use with TokenPlan keys. Note: When using TokenPlan, usage is billed per request, not per token.",
|
|
|
+ },
|
|
|
+ "MiniMax-M2.7": {
|
|
|
+ maxTokens: 16_384,
|
|
|
+ contextWindow: 204_800,
|
|
|
+ supportsImages: false,
|
|
|
+ supportsPromptCache: true,
|
|
|
+ includedTools: ["search_and_replace"],
|
|
|
+ excludedTools: ["apply_diff"],
|
|
|
+ preserveReasoning: true,
|
|
|
+ inputPrice: 0.3,
|
|
|
+ outputPrice: 1.2,
|
|
|
+ cacheWritesPrice: 0.375,
|
|
|
+ cacheReadsPrice: 0.06,
|
|
|
+ description:
|
|
|
+ "MiniMax M2.7, the latest MiniMax model with recursive self-improvement capabilities. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.",
|
|
|
+ },
|
|
|
+ "MiniMax-M2.7-highspeed": {
|
|
|
+ maxTokens: 16_384,
|
|
|
+ contextWindow: 204_800,
|
|
|
+ supportsImages: false,
|
|
|
+ supportsPromptCache: true,
|
|
|
+ includedTools: ["search_and_replace"],
|
|
|
+ excludedTools: ["apply_diff"],
|
|
|
+ preserveReasoning: true,
|
|
|
+ inputPrice: 0.6,
|
|
|
+ outputPrice: 2.4,
|
|
|
+ cacheWritesPrice: 0.375,
|
|
|
+ cacheReadsPrice: 0.06,
|
|
|
+ description:
|
|
|
+ "MiniMax M2.7 highspeed: same performance as M2.7 but with faster response (approximately 100 tps vs 60 tps). See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Requires TokenPlan High-Speed subscription for use with TokenPlan keys. Note: When using TokenPlan, usage is billed per request, not per token.",
|
|
|
},
|
|
|
"MiniMax-M2": {
|
|
|
maxTokens: 16_384,
|
|
|
- contextWindow: 192_000,
|
|
|
+ contextWindow: 204_800,
|
|
|
supportsImages: false,
|
|
|
supportsPromptCache: true,
|
|
|
includedTools: ["search_and_replace"],
|
|
|
@@ -36,11 +81,11 @@ export const minimaxModels = {
|
|
|
cacheWritesPrice: 0.375,
|
|
|
cacheReadsPrice: 0.03,
|
|
|
description:
|
|
|
- "MiniMax M2, a model born for Agents and code, featuring Top-tier Coding Capabilities, Powerful Agentic Performance, and Ultimate Cost-Effectiveness & Speed.",
|
|
|
+ "MiniMax M2, a model born for Agents and code, featuring Top-tier Coding Capabilities, Powerful Agentic Performance, and Ultimate Cost-Effectiveness & Speed. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.",
|
|
|
},
|
|
|
"MiniMax-M2-Stable": {
|
|
|
maxTokens: 16_384,
|
|
|
- contextWindow: 192_000,
|
|
|
+ contextWindow: 204_800,
|
|
|
supportsImages: false,
|
|
|
supportsPromptCache: true,
|
|
|
includedTools: ["search_and_replace"],
|
|
|
@@ -51,11 +96,11 @@ export const minimaxModels = {
|
|
|
cacheWritesPrice: 0.375,
|
|
|
cacheReadsPrice: 0.03,
|
|
|
description:
|
|
|
- "MiniMax M2 Stable (High Concurrency, Commercial Use), a model born for Agents and code, featuring Top-tier Coding Capabilities, Powerful Agentic Performance, and Ultimate Cost-Effectiveness & Speed.",
|
|
|
+ "MiniMax M2 Stable (High Concurrency, Commercial Use), a model born for Agents and code, featuring Top-tier Coding Capabilities, Powerful Agentic Performance, and Ultimate Cost-Effectiveness & Speed. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.",
|
|
|
},
|
|
|
"MiniMax-M2.1": {
|
|
|
maxTokens: 16_384,
|
|
|
- contextWindow: 192_000,
|
|
|
+ contextWindow: 204_800,
|
|
|
supportsImages: false,
|
|
|
supportsPromptCache: true,
|
|
|
includedTools: ["search_and_replace"],
|
|
|
@@ -66,7 +111,22 @@ export const minimaxModels = {
|
|
|
cacheWritesPrice: 0.375,
|
|
|
cacheReadsPrice: 0.03,
|
|
|
description:
|
|
|
- "MiniMax M2.1 builds on M2 with improved overall performance for agentic coding tasks and significantly faster response times.",
|
|
|
+ "MiniMax M2.1 builds on M2 with improved overall performance for agentic coding tasks and significantly faster response times. See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Note: When using TokenPlan, usage is billed per request, not per token.",
|
|
|
+ },
|
|
|
+ "MiniMax-M2.1-highspeed": {
|
|
|
+ maxTokens: 16_384,
|
|
|
+ contextWindow: 204_800,
|
|
|
+ supportsImages: false,
|
|
|
+ supportsPromptCache: true,
|
|
|
+ includedTools: ["search_and_replace"],
|
|
|
+ excludedTools: ["apply_diff"],
|
|
|
+ preserveReasoning: true,
|
|
|
+ inputPrice: 0.6,
|
|
|
+ outputPrice: 2.4,
|
|
|
+ cacheWritesPrice: 0.375,
|
|
|
+ cacheReadsPrice: 0.03,
|
|
|
+ description:
|
|
|
+ "MiniMax M2.1 highspeed: same performance as M2.1 but with faster response (approximately 100 tps vs 60 tps). See pricing at https://platform.minimax.io/docs/guides/pricing-paygo. Requires TokenPlan High-Speed subscription for use with TokenPlan keys. Note: When using TokenPlan, usage is billed per request, not per token.",
|
|
|
},
|
|
|
} as const satisfies Record<string, ModelInfo>
|
|
|
|