minimax/minimax-m3.1-flash
MiniMax M3.1 系列的正式版 Flash 模型,2026 年 10 月 19 日发布,接替 9 月的预览版。面向日常开发与 Agent 任务的速度与成本:修 bug、写功能、Agent 编码。支持 100 万 token 上下文、文本与图像输入、工具调用与 prompt cache。思考始终开启、不能关闭;reasoning effort 可选 low / medium / high / xhigh / max(默认 max)。
缓存读 $0.0045/M · 缓存写 —/M
API 调用时用任一 ID 都可以。
minimax/minimax-m3.1-flashMiniMax-M3.1-Flash请求里的 model 可以直接使用这些名字。
把 ONEHOP_KEY 占位符替换为你的 API Key。 创建 →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="minimax/minimax-m3.1-flash",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)