暂无描述。
from openai import OpenAI
client = OpenAI(
base_url="https://api.openroute.cn/v1",
api_key="<ONTOROUTE_API_KEY>",
)
completion = client.chat.completions.create(
model="minimax/minimax-m2.7-highspeed",
messages=[
{
"role": "user",
"content": "Write a one-sentence bedtime story about a unicorn.",
}
],
)
print(completion.choices[0].message.content)价格为人民币(¥)/ 百万 token,按量计费;缓存读取可显著降低重复上下文成本。
| 提供商 | 输入价格 | 输出价格 | 缓存读取 | 上下文长度 | 延迟 | 可用率 | 状态 |
|---|---|---|---|---|---|---|---|
minimax minimax/MiniMax-M2.7-highspeed | ¥4.20 | ¥16.80 | 支持 | 205K | 3.2s | 88.70% | 最低价 |
| 参数 | 说明 | 默认值 |
|---|---|---|
| temperature | 温度 | 由请求决定 |
| top_p | Top P | 由请求决定 |
| max_tokens | 最大词元数 | 由请求决定 |
| tools | 工具 | 由请求决定 |