Mistral AI
Ministral 8B
Mistral AI 边缘优化中型模型,8B 参数,支持视觉理解和滑动窗口注意力机制
上下文长度128K tokens
模型规模8B 参数
开源协议Apache 2.0
定价与规格
💰 定价
输入$0.15 / M tokens
输出$0.15 / M tokens
⚙️ 规格
上下文长度128K tokens
模型规模8B 参数
开源协议Apache 2.0
特色能力视觉理解 · 滑动窗口注意力 · 边缘部署
API 调用示例
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.xairouter.com/v1",
api_key="your-api-key"
)
response = client.chat.completions.create(
model="ministral-8b-latest",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)cURL
curl https://api.xairouter.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "ministral-8b-latest",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'