Open History to see the last commit
1// Excerpts of platform.minimax.io docs pages, fetched 2026-10-06.
2
3/** api-reference/text-anthropic-api.md: Supported Models through Messages Field Support. */
4export const MINIMAX_SDK_PAGE = [
5 '## Supported Models',
6 '',
7 'When using the Anthropic SDK, the `MiniMax-M3.1-Flash-Preview` `MiniMax-M3` `MiniMax-M2.7` `MiniMax-M2.7-highspeed` `MiniMax-M2.5` `MiniMax-M2.5-highspeed` `MiniMax-M2.1` `MiniMax-M2.1-highspeed` `MiniMax-M2` model is supported:',
8 '',
9 '| Model Name | Context Window | Description |',
10 '| :- | :- | :- |',
11 '| <span style={{whiteSpace:"nowrap"}}>MiniMax-M3.1-Flash-Preview</span> | 1,000,000 | **Frontier multimodal coding model with 1M context window and tunable thinking depth** |',
12 '| MiniMax-M3 | 1,000,000 | **Frontier multimodal coding model with 1M context window** |',
13 '| MiniMax-M2.7 | 204,800 | **Beginning the journey of recursive self-improvement** (output speed approximately 60 tps) |',
14 '| MiniMax-M2.7-highspeed | 204,800 | **M2.7 Highspeed: Same performance, faster and more agile (output speed approximately 100 tps)** |',
15 '| MiniMax-M2.5 | 204,800 | **Peak Performance. Ultimate Value. Master the Complex (output speed approximately 60 tps)** |',
16 '| MiniMax-M2.5-highspeed | 204,800 | **M2.5 highspeed: Same performance, faster and more agile (output speed approximately 100 tps)** |',
17 '| MiniMax-M2.1 | 204,800 | **Powerful Multi-Language Programming Capabilities with Comprehensively Enhanced Programming Experience (output speed approximately 60 tps)** |',
18 '| MiniMax-M2.1-highspeed | 204,800 | **Faster and More Agile (output speed approximately 100 tps)** |',
19 '| MiniMax-M2 | 204,800 | **Agentic capabilities, Advanced reasoning** |',
20 '',
21 '<Note>',
22 ' For details on how tps (Tokens Per Second) is calculated, please refer to [FAQ > About APIs](/docs/faq/about-apis#q-how-is-tps-tokens-per-second-calculated-for-llms).',
23 '</Note>',
24 '',
25 '<Note>',
26 ' The Anthropic API compatibility interface currently only supports the',
27 ' `MiniMax-M3.1-Flash-Preview` `MiniMax-M3` `MiniMax-M2.7` `MiniMax-M2.7-highspeed` `MiniMax-M2.5` `MiniMax-M2.5-highspeed` `MiniMax-M2.1` `MiniMax-M2.1-highspeed` `MiniMax-M2` model. For other models, please use the standard MiniMax API',
28 ' interface.',
29 '</Note>',
30 '',
31 '## Compatibility',
32 '',
33 '### Supported Parameters',
34 '',
35 'When using the Anthropic SDK, we support the following input parameters:',
36 '',
37 '| Parameter | Support Status | Description |',
38 '| :- | :- | :- |',
39 '| `model` | Fully supported | supports `MiniMax-M3.1-Flash-Preview` `MiniMax-M3` `MiniMax-M2.7` `MiniMax-M2.7-highspeed` `MiniMax-M2.5` `MiniMax-M2.5-highspeed` `MiniMax-M2.1` `MiniMax-M2.1-highspeed` `MiniMax-M2` model |',
40 '| `messages` | Partial support | `MiniMax-M3.1-Flash-Preview` and `MiniMax-M3` support text, image, video, tool use, tool result, and thinking blocks. The M2.7, M2.5, M2.1, and M2 series support text and tool-call content blocks only; they do not support image or video input |',
41 '| `max_tokens` | Fully supported | Maximum number of tokens to generate. Thinking tokens count toward it too, so a value that is too small yields `stop_reason: "max_tokens"` with no text output |',
42 '| `stream` | Fully supported | Streaming response |',
43 '| `system` | Fully supported | System prompt |',
44 '| `temperature` | Fully supported | Range \\[0, 2], controls output randomness, recommended value: 1 |',
45 '| `tool_choice` | Fully supported | Tool selection strategy |',
46 '| `tools` | Fully supported | Tool definitions |',
47 '| `top_p` | Fully supported | Nucleus sampling parameter, range \\[0, 1]. Default 0.95 for `MiniMax-M3.1-Flash-Preview` and `MiniMax-M3`, and 0.9 for M2.x models |',
48 '| `metadata` | Fully Supported | Metadata |',
49 '| `thinking` | Fully Supported | `MiniMax-M3.1-Flash-Preview` always thinks and returns `400` if `disabled` is sent. Thinking is off by default for `MiniMax-M3` and can be enabled with `adaptive`. Thinking cannot be disabled for M2.x models. |',
50 '| `output_config.effort` | Fully Supported | Tunes thinking depth for `MiniMax-M3.1-Flash-Preview`. Accepts `low`, `medium`, `high`, `xhigh`, and `max`; defaults to `max` when omitted. |',
51 '| `service_tier` | Fully Supported | Request admission tier. Supported values are `standard` and `priority`; if omitted, requests use `standard`. The `priority` [price](https://platform.minimax.io/docs/pricing/overview) is 1.5 times the `standard` price and ensures priority admission so the request is processed ahead of other requests, leading to faster responses and fewer failures. |',
52 '| `top_k` | Ignored | This parameter will be ignored |',
53 '| `stop_sequences` | Ignored | This parameter will be ignored |',
54 '| `mcp_servers` | Ignored | This parameter will be ignored |',
55 '| `context_management` | Ignored | This parameter will be ignored |',
56 '| `container` | Ignored | This parameter will be ignored |',
57 '',
58 '### Thinking Control',
59 '',
60 'The `thinking` parameter controls whether the model can emit `thinking` content blocks. Behavior differs per model:',
61 '',
62 '| Model | `thinking` omitted | `{"type": "adaptive"}` | `{"type": "disabled"}` |',
63 '| :- | :- | :- | :- |',
64 '| `MiniMax-M3.1-Flash-Preview` | Thinking on | Thinking on | **Returns `400`** — thinking cannot be disabled |',
65 '| `MiniMax-M3` | Thinking off | Thinking on | Thinking stays off |',
66 '| M2.x | Thinking on | Thinking on | Accepted but ignored; thinking remains on |',
67 '',
68 '<Note>',
69 ' The error returned for `thinking: {"type": "disabled"}`:',
70 '',
71 ' ```text theme={null}',
72 ' model "MiniMax-M3.1-Flash-Preview" requires adaptive thinking; thinking.type="disabled" (including reasoning.effort=none) is not allowed (2013)',
73 ' ```',
74 '</Note>',
75 '',
76 'When a response includes `thinking` blocks, preserve them unchanged in later turns, especially in tool-use conversations.',
77 '',
78 '### Thinking Depth Control (MiniMax-M3.1-Flash-Preview only)',
79 '',
80 '`MiniMax-M3.1-Flash-Preview` supports tuning thinking depth through `output_config.effort`, from `low` through `medium`, `high`, `xhigh`, to `max`. Higher levels make the model think more thoroughly, producing more thinking tokens at higher latency. When omitted, `output_config.effort` defaults to `max`.',
81 '',
82 '`none` is not supported and returns `400`.',
83 '',
84 '```bash curl theme={null}',
85 'curl https://api.minimax.io/anthropic/v1/messages \\',
86 ' -H "Authorization: Bearer <MINIMAX_API_KEY>" \\',
87 ' -H "Content-Type: application/json" \\',
88 " -d '{",
89 ' "model": "MiniMax-M3.1-Flash-Preview",',
90 ' "max_tokens": 2048,',
91 ' "output_config": { "effort": "max" },',
92 ' "messages": [{ "role": "user", "content": "Hi, how are you?" }]',
93 " }'",
94 '```',
95 '',
96 '### Messages Field Support',
97 '',
98 '| Field Type | Support Status | Description |',
99 '| :- | :- | :- |',
100 '| `type="text"` | Fully supported | Text messages |',
101 '| `type="image"` | M3.1-Flash-Preview / M3 only | Image input via URL or base64. Supports JPEG, PNG, GIF, WEBP |',
102 '| `type="video"` | M3.1-Flash-Preview / M3 only | Video input via URL, base64, or `mm_file://{file_id}`. Supports MP4, AVI, MOV, MKV |',
103 '| `type="tool_use"` | Fully supported | Tool calls |',
104 '| `type="tool_result"` | Fully supported | Tool call results |',
105 '| `type="thinking"` | Fully supported | Reasoning content. Return the block unchanged in multi-turn thinking conversations |',
106].join('\n')
107
108/** guides/pricing-paygo.md: the LLM section and the start of Audio. */
109export const MINIMAX_PRICING_PAGE = [
110 '# Pay as You Go',
111 '',
112 '## LLM',
113 '',
114 '[Recharge Now](https://platform.minimax.io/user-center/payment/balance)',
115 '',
116 '<Tabs>',
117 ' <Tab title="Standard">',
118 ' | Model | Input | Output | Prompt caching Read |',
119 ' | :- | :- | :- | :- |',
120 ' | **MiniMax-M3**<br />≤ 512k input tokens <span className="inline-flex items-center rounded-full bg-red-50 px-2 py-0.5 text-xs font-semibold text-red-700 dark:bg-red-900/30 dark:text-red-300">Permanent 50% off</span> | ~~\\$0.60~~ \\$0.30 / M tokens | ~~\\$2.40~~ \\$1.20 / M tokens | ~~\\$0.12~~ \\$0.06 / M tokens |',
121 ' | **MiniMax-M3**<br />> 512k input tokens\\* <span className="inline-flex items-center rounded-full bg-red-50 px-2 py-0.5 text-xs font-semibold text-red-700 dark:bg-red-900/30 dark:text-red-300">Permanent 50% off</span> | ~~\\$1.20~~ \\$0.60 / M tokens | ~~\\$4.80~~ \\$2.40 / M tokens | ~~\\$0.24~~ \\$0.12 / M tokens |',
122 ' </Tab>',
123 '',
124 ' <Tab title="Priority*">',
125 ' | Model | Input | Output | Prompt caching Read |',
126 ' | :- | :- | :- | :- |',
127 ' | **MiniMax-M3**<br />≤ 512k input tokens <span className="inline-flex items-center rounded-full bg-red-50 px-2 py-0.5 text-xs font-semibold text-red-700 dark:bg-red-900/30 dark:text-red-300">Permanent 50% off</span> | ~~\\$0.90~~ \\$0.45 / M tokens | ~~\\$3.60~~ \\$1.80 / M tokens | ~~\\$0.18~~ \\$0.09 / M tokens |',
128 ' | **MiniMax-M3**<br />> 512k input tokens <span className="inline-flex items-center rounded-full bg-red-50 px-2 py-0.5 text-xs font-semibold text-red-700 dark:bg-red-900/30 dark:text-red-300">Permanent 50% off</span> | ~~\\$1.80~~ \\$0.90 / M tokens | ~~\\$7.20~~ \\$3.60 / M tokens | ~~\\$0.36~~ \\$0.18 / M tokens |',
129 '',
130 ' \\* Priority provides priority admission for faster response times and improved request reliability. Set `service_tier` to `priority` to enable it. Pricing is 1.5x standard.',
131 ' </Tab>',
132 '</Tabs>',
133 '',
134 '| Model | Input | Output | Prompt caching Read | Prompt caching Write |',
135 '| :- | :- | :- | :- | :- |',
136 '| **MiniMax-M2.7** | \\$0.3 / M tokens | \\$1.2 / M tokens | \\$0.06 / M tokens | \\$0.375 / M tokens |',
137 '| **MiniMax-M2.7-highspeed** | \\$0.6 / M tokens | \\$2.4 / M tokens | \\$0.06 / M tokens | \\$0.375 / M tokens |',
138 '',
139 '<Accordion title="Legacy Models">',
140 ' | Model | Input | Output | Prompt caching Read | Prompt caching Write |',
141 ' | :- | :- | :- | :- | :- |',
142 ' | **MiniMax-M2.5** | \\$0.3 / M tokens | \\$1.2 / M tokens | \\$0.03 / M tokens | \\$0.375 / M tokens |',
143 ' | **MiniMax-M2.5-highspeed** | \\$0.6 / M tokens | \\$2.4 / M tokens | \\$0.03 / M tokens | \\$0.375 / M tokens |',
144 ' | **MiniMax-M2.1** | \\$0.3 / M tokens | \\$1.2 / M tokens | \\$0.03 / M tokens | \\$0.375 / M tokens |',
145 ' | **MiniMax-M2.1-highspeed** | \\$0.6 / M tokens | \\$2.4 / M tokens | \\$0.03 / M tokens | \\$0.375 / M tokens |',
146 ' | **MiniMax-M2** | \\$0.3 / M tokens | \\$1.2 / M tokens | \\$0.03 / M tokens | \\$0.375 / M tokens |',
147 '</Accordion>',
148 '',
149 '<Info>',
150 ' Note:',
151 '',
152 ' 1. The billing item is token count; the token-to-character ratio varies slightly depending on the usage scenario, subject to actual consumption',
153 ' 2. Token to English word ratio (estimate): approximately 750 English words consume 1000 tokens',
154 '</Info>',
155 '',
156 '## Audio',
157 '',
158 '[Recharge Now](https://platform.minimax.io/user-center/payment/balance)',
159 '',
160 '**Automatic Speech Recognition (ASR)**',
161 '',
162 '| **API** | **Endpoint** | **Description** | **Price** |',
163 '| :- | :- | :- | :- |',
164 '| Speech Recognition | Speech-to-Text | Audio-to-text transcription with streaming, speaker diarization, and subtitle (srt/vtt) export. | \\$0.38 / hour |',
165].join('\n')
166
167/** `max_completion_tokens.description` in openapi-chat-openai.json. */
168export const MINIMAX_MAX_COMPLETION_TOKENS =
169 'Specifies the upper limit for generated content length, in tokens. For MiniMax-M3.1-Flash-Preview and MiniMax-M3 the recommended value is 131072 (128K) and the maximum is 524288 (512K); for other models the recommended value is 65536 (64K) and the maximum is 204800 (200K). If generation stops due to `length`, try increasing this value.'
170
171// Excerpts of platform.minimaxi.com docs pages, fetched 2026-10-07.
172
173/** api-reference/text-anthropic-api.md: 支持的模型 through Messages 字段支持. */
174export const MINIMAX_CN_SDK_PAGE = [
175 '## 支持的模型',
176 '',
177 '使用 Anthropic SDK 时,支持 `MiniMax-M3.1-Flash-Preview` `MiniMax-M3` `MiniMax-M2.7` `MiniMax-M2.7-highspeed` `MiniMax-M2.5` `MiniMax-M2.5-highspeed` `MiniMax-M2.1` `MiniMax-M2.1-highspeed` `MiniMax-M2` 模型:',
178 '',
179 '| 模型名称 | 上下文窗口 | 模型介绍 |',
180 '| :- | :-: | :- |',
181 '| <span style={{whiteSpace:"nowrap"}}>MiniMax-M3.1-Flash-Preview</span> | 1,000,000 | **原生多模态、1M 上下文的 Frontier Coding 模型,思考深度可调** |',
182 '| MiniMax-M3 | 1,000,000 | **原生多模态、1M 上下文的 Frontier Coding 模型** |',
183 '| MiniMax-M2.7 | 204,800 | **开启模型的自我迭代**(输出速度约 60 TPS) |',
184 '| MiniMax-M2.7-highspeed | 204,800 | **M2.7 极速版:效果不变,更快,更敏捷**(输出速度约 100 TPS) |',
185 '| MiniMax-M2.5 | 204,800 | **顶尖性能与极致性价比,轻松驾驭复杂任务**(输出速度约 60 TPS) |',
186 '| MiniMax-M2.5-highspeed | 204,800 | **M2.5 极速版:效果不变,更快,更敏捷**(输出速度约 100 TPS) |',
187 '| MiniMax-M2.1 | 204,800 | **强大多语言编程能力,全面升级编程体验**(输出速度约 60 TPS) |',
188 '| MiniMax-M2.1-highspeed | 204,800 | **M2.1 极速版:效果不变,更快,更敏捷**(输出速度约 100 TPS) |',
189 '| MiniMax-M2 | 204,800 | **专为高效编码与 Agent 工作流而生** |',
190 '',
191 '<Note>',
192 ' TPS(Tokens Per Second)的计算方式详见[常见问题 > 接口相关](/docs/faq/about-apis#%E9%97%AE%EF%BC%9A%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B%E7%9A%84-tps%EF%BC%88tokens-per-second%EF%BC%89%E6%98%AF%E5%A6%82%E4%BD%95%E8%AE%A1%E7%AE%97%E7%9A%84)。',
193 '</Note>',
194 '',
195 '<Note>',
196 ' Anthropic API 兼容接口支持 `MiniMax-M3.1-Flash-Preview` `MiniMax-M3` `MiniMax-M2.7` `MiniMax-M2.7-highspeed` `MiniMax-M2.5` `MiniMax-M2.5-highspeed` `MiniMax-M2.1` `MiniMax-M2.1-highspeed` `MiniMax-M2`',
197 ' 模型。如需使用其他模型,请使用标准的 MiniMax API 接口。',
198 '</Note>',
199 '',
200 '## 兼容性说明',
201 '',
202 '### 支持的参数',
203 '',
204 '在使用 Anthropic SDK 接入时,我们支持以下输入参数:',
205 '',
206 '| 参数 | 支持状态 | 说明 |',
207 '| :- | :- | :- |',
208 '| `model` | 完全支持 | 支持 `MiniMax-M3.1-Flash-Preview` `MiniMax-M3` `MiniMax-M2.7` `MiniMax-M2.7-highspeed` `MiniMax-M2.5` `MiniMax-M2.5-highspeed` `MiniMax-M2.1` `MiniMax-M2.1-highspeed` `MiniMax-M2` 模型 |',
209 '| `messages` | 部分支持 | `MiniMax-M3.1-Flash-Preview` 和 `MiniMax-M3` 支持文本、图片、视频、工具调用、工具结果和 thinking 内容块。M2.7、M2.5、M2.1 和 M2 系列仅支持文本与工具调用相关内容块,不支持图片和视频输入 |',
210 '| `max_tokens` | 完全支持 | 最大生成 token 数。思考 token 也计入此上限,设置过小会导致 `stop_reason` 为 `max_tokens` 且无文本输出 |',
211 '| `stream` | 完全支持 | 流式响应 |',
212 '| `system` | 完全支持 | 系统提示词 |',
213 '| `temperature` | 完全支持 | 取值范围 \\[0, 2],控制输出随机性,建议取值 1 |',
214 '| `tool_choice` | 完全支持 | 工具选择策略 |',
215 '| `tools` | 完全支持 | 工具定义 |',
216 '| `top_p` | 完全支持 | 核采样参数,取值范围 \\[0, 1],`MiniMax-M3.1-Flash-Preview` 和 `MiniMax-M3` 默认值 0.95,M2.x 系列默认值 0.9 |',
217 '| `thinking` | 完全支持 | `MiniMax-M3.1-Flash-Preview` 强制开启 thinking,传入 `disabled` 会返回 `400`。`MiniMax-M3` 默认关闭 thinking,可通过 `adaptive` 开启。M2.x 模型的 thinking 无法关闭。 |',
218 '| `output_config.effort` | 完全支持 | 调节 `MiniMax-M3.1-Flash-Preview` 的思考深度,可取 `low`、`medium`、`high`、`xhigh`、`max`;省略时默认为 `max`。 |',
219 '| `metadata` | 完全支持 | 元信息 |',
220 '| `service_tier` | 完全支持 | 请求准入服务层级。支持的取值为 `standard` 和 `priority`;省略时默认使用 `standard`。`priority` 的[价格](/docs/pricing/overview#overview)为 `standard` 的 1.5 倍,并会确保请求获得优先准入,使其排在其他请求之前处理,从而带来更快响应并减少失败。 |',
221 '| `top_k` | 忽略 | 该参数会被忽略 |',
222 '| `stop_sequences` | 忽略 | 该参数会被忽略 |',
223 '| `mcp_servers` | 忽略 | 该参数会被忽略 |',
224 '| `context_management` | 忽略 | 该参数会被忽略 |',
225 '| `container` | 忽略 | 该参数会被忽略 |',
226 '',
227 '### Thinking 控制',
228 '',
229 '`thinking` 参数用于控制模型是否可以输出 `thinking` 内容块。不同模型的行为不同:',
230 '',
231 '| 模型 | 省略 `thinking` | `{"type": "adaptive"}` | `{"type": "disabled"}` |',
232 '| :- | :- | :- | :- |',
233 '| `MiniMax-M3.1-Flash-Preview` | 开启 thinking | 开启 thinking | **返回 `400`**,thinking 无法关闭 |',
234 '| `MiniMax-M3` | 关闭 thinking | 开启 thinking | 保持 thinking 关闭 |',
235 '| M2.x | 开启 thinking | 开启 thinking | 被接收但不生效,thinking 仍保持开启 |',
236 '',
237 '<Note>',
238 ' 传入 `thinking: {"type": "disabled"}` 时返回的错误信息:',
239 '',
240 ' ```text theme={null}',
241 ' model "MiniMax-M3.1-Flash-Preview" requires adaptive thinking; thinking.type="disabled" (including reasoning.effort=none) is not allowed (2013)',
242 ' ```',
243 '</Note>',
244 '',
245 '当响应包含 `thinking` 内容块时,后续轮次中应原样保留这些内容块,尤其是在工具调用对话中。',
246 '',
247 '### 思考深度控制(仅 MiniMax-M3.1-Flash-Preview)',
248 '',
249 '`MiniMax-M3.1-Flash-Preview` 支持通过 `output_config.effort` 调节思考深度,档位从低到高为 `low`、`medium`、`high`、`xhigh`、`max`。档位越高,模型思考越充分,输出的 thinking token 和响应耗时也越多。省略 `output_config.effort` 时默认为 `max`。',
250 '',
251 '`none` 不支持,会返回 `400`。',
252 '',
253 '```bash curl theme={null}',
254 'curl https://api.minimax.cn/anthropic/v1/messages \\',
255 ' -H "Authorization: Bearer <MINIMAX_API_KEY>" \\',
256 ' -H "Content-Type: application/json" \\',
257 " -d '{",
258 ' "model": "MiniMax-M3.1-Flash-Preview",',
259 ' "max_tokens": 2048,',
260 ' "output_config": { "effort": "max" },',
261 ' "messages": [{ "role": "user", "content": "Hi, how are you?" }]',
262 " }'",
263 '```',
264 '',
265 '### Messages 字段支持',
266 '',
267 '| 字段类型 | 支持状态 | 说明 |',
268 '| :- | :- | :- |',
269 '| `type="text"` | 完全支持 | 文本消息 |',
270 '| `type="image"` | 仅 M3.1-Flash-Preview / M3 | 通过 URL 或 base64 输入图片,支持 JPEG、PNG、GIF、WEBP |',
271 '| `type="video"` | 仅 M3.1-Flash-Preview / M3 | 通过 URL、base64 或 `mm_file://{file_id}` 输入视频,支持 MP4、AVI、MOV、MKV |',
272 '| `type="tool_use"` | 完全支持 | 工具调用 |',
273 '| `type="tool_result"` | 完全支持 | 工具调用结果 |',
274 '| `type="thinking"` | 完全支持 | 推理内容。多轮 thinking 对话中需要原样回带 |',
275].join('\n')
276
277/** `max_completion_tokens.description` in the China openapi-chat-openai.json. */
278export const MINIMAX_CN_MAX_COMPLETION_TOKENS =
279 '指定生成内容长度的上限(Token 数)。MiniMax-M3.1-Flash-Preview 和 MiniMax-M3 推荐值为 131072(128K),上限为 524288(512K);其他模型推荐值为 65536(64K),上限为 204800(200K)。如果生成因 `length` 原因中断,请尝试调高此值。'
280
281/** platform.minimaxi.com/docs/guides/pricing-paygo.md through `## 语音` (2026-10-07). Prices are yuan. */
282export const MINIMAX_CN_PRICING_PAGE = [
283 '# 按量计费',
284 '',
285 '> MiniMax按量计费定价',
286 '',
287 '按量计费使用开放平台普通 API Key,并按实际用量消耗账户余额。积分是通过订阅 Key 使用的独立预付余额,资源覆盖范围与 Token Plan 相同。积分定价和使用规则请参考 [Token Plan 定价](/docs/guides/pricing-token-plan)。',
288 '',
289 '## 语言模型',
290 '',
291 '[立即充值](https://platform.minimax.cn/user-center/payment/balance)',
292 '',
293 '<Tabs>',
294 ' <Tab title="标准">',
295 ' | **模型** | **输入价格**<br /> 元/百万 tokens | **输出价格**<br /> 元/百万 tokens | **缓存读取**<br /> 元/百万 tokens |',
296 ' | :- | :-: | :-: | :-: |',
297 ' | **MiniMax-M3**<br />≤ 512k 输入 tokens <span className="inline-flex items-center rounded-full bg-red-50 px-2 py-0.5 text-xs font-semibold text-red-700 dark:bg-red-900/30 dark:text-red-300">永久五折</span> | ~~4.20~~ 2.10 | ~~16.80~~ 8.40 | ~~0.84~~ 0.42 |',
298 ' | **MiniMax-M3**<br />> 512k 输入 tokens\\* <span className="inline-flex items-center rounded-full bg-red-50 px-2 py-0.5 text-xs font-semibold text-red-700 dark:bg-red-900/30 dark:text-red-300">永久五折</span> | ~~8.40~~ 4.20 | ~~33.60~~ 16.80 | ~~1.68~~ 0.84 |',
299 ' </Tab>',
300 '',
301 ' <Tab title="优先*">',
302 ' | **模型** | **输入价格**<br /> 元/百万 tokens | **输出价格**<br /> 元/百万 tokens | **缓存读取**<br /> 元/百万 tokens |',
303 ' | :- | :-: | :-: | :-: |',
304 ' | **MiniMax-M3**<br />≤ 512k 输入 tokens <span className="inline-flex items-center rounded-full bg-red-50 px-2 py-0.5 text-xs font-semibold text-red-700 dark:bg-red-900/30 dark:text-red-300">永久五折</span> | ~~6.30~~ 3.15 | ~~25.20~~ 12.60 | ~~1.26~~ 0.63 |',
305 ' | **MiniMax-M3**<br />> 512k 输入 tokens <span className="inline-flex items-center rounded-full bg-red-50 px-2 py-0.5 text-xs font-semibold text-red-700 dark:bg-red-900/30 dark:text-red-300">永久五折</span> | ~~12.60~~ 6.30 | ~~50.40~~ 25.20 | ~~2.52~~ 1.26 |',
306 '',
307 ' \\* 优先服务可让请求获得优先准入,从而更快响应并降低失败率。调用时将 `service_tier` 设为 `priority` 即可启用。该层级按标准价格的 1.5 倍计费。',
308 ' </Tab>',
309 '</Tabs>',
310 '',
311 '| **模型** | **输入价格**<br /> 元/百万 tokens | **输出价格**<br /> 元/百万 tokens | **缓存读取**<br /> 元/百万 tokens | **缓存写入**<br /> 元/百万 tokens |',
312 '| :- | :-: | :-: | :-: | :-: |',
313 '| **MiniMax-M2.7** | 2.1 | 8.4 | 0.42 | 2.625 |',
314 '| **MiniMax-M2.7-highspeed** | 4.2 | 16.8 | 0.42 | 2.625 |',
315 '',
316 '<Accordion title="历史模型">',
317 ' | **模型** | **输入价格**<br /> 元/百万 tokens | **输出价格**<br /> 元/百万 tokens | **缓存读取**<br /> 元/百万 tokens | **缓存写入**<br /> 元/百万 tokens |',
318 ' | :- | :-: | :-: | :-: | :-: |',
319 ' | **MiniMax-M2.5** | 2.1 | 8.4 | 0.21 | 2.625 |',
320 ' | **MiniMax-M2.5-highspeed** | 4.2 | 16.8 | 0.21 | 2.625 |',
321 ' | **MiniMax-M2.1** | 2.1 | 8.4 | 0.21 | 2.625 |',
322 ' | **MiniMax-M2.1-highspeed** | 4.2 | 16.8 | 0.21 | 2.625 |',
323 ' | **MiniMax-M2** | 2.1 | 8.4 | 0.21 | 2.625 |',
324 '</Accordion>',
325 '',
326 '<Info>',
327 ' 请注意:',
328 '',
329 ' 1. 计费项是token数;tokens字符比值根据使用场景的不同略有浮动,以实际消耗为准,字符数包括标点等',
330 ' 2. Token与字符比(估算):1600 中文字符约消耗 1000 tokens',
331 '</Info>',
332 '',
333 '## 语音',
334].join('\n')