返回模型列表

Ministral 3B

mistralmistral/ministral-3b

API 使用指南

聊天补全

标准聊天补全,支持系统提示词和多轮对话。流式响应实现实时用户体验。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -d '{
    "model": "mistral/ministral-3b",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Classify this sentence: The cat sat on the mat."}
    ],
    "temperature": 0.1,
    "max_tokens": 256,
    "stream": true
  }'

视觉(图像理解)

Ministral 3 3B 包含一个 4 亿参数的视觉编码器,每个提示支持最多 10 张图片。在 content 数组中通过 base64 data URL 或远程 URL 发送图像。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -d '{
    "model": "mistral/ministral-3b",
    "messages": [
      {
        "role": "user",
        "content": [
          {"type": "text", "text": "Describe this image in detail."},
          {"type": "image_url", "image_url": {"url": "https://therouter.ai/assets/vision-sample.png"}}
        ]
      }
    ],
    "max_tokens": 1024
  }'

函数调用(工具)

Ministral 3 3B 支持原生函数调用,通过工具定义实现。调用函数、解析工具调用 ID、执行并返回结果——全部在标准 chat completions 端点内完成。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -d '{
    "model": "mistral/ministral-3b",
    "messages": [
      {"role": "user", "content": "What is the weather like in Paris?"}
    ],
    "tools": [{
      "type": "function",
      "function": {
        "name": "get_weather",
        "description": "Get the current weather for a city",
        "parameters": {
          "type": "object",
          "properties": {
            "city": {"type": "string", "description": "City name"}
          },
          "required": ["city"]
        }
      }
    }],
    "tool_choice": "auto",
    "temperature": 0.1
  }'

结构化 JSON 输出

使用 response_format 强制结构化 JSON 输出,适用于数据提取和分类流程。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -d '{
    "model": "mistral/ministral-3b",
    "messages": [
      {"role": "user", "content": "Extract the name, date, and amount from this invoice."}
    ],
    "response_format": {
      "type": "json_schema",
      "json_schema": {
        "name": "invoice_extract",
        "strict": true,
        "schema": {
          "type": "object",
          "properties": {
            "name": {"type": "string"},
            "date": {"type": "string"},
            "amount": {"type": "number"}
          },
          "required": ["name", "date", "amount"],
          "additionalProperties": false
        }
      }
    },
    "temperature": 0.1
  }'
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
发布日期AWS Bedrock model card ↗2026-05-27已核实
架构Hugging Face model card ↗2026-05-27已核实
上下文窗口Hugging Face model card ↗2026-05-27已核实
最大输出 TokenAWS Bedrock model card ↗2026-05-27已核实
训练数据截止——未知
许可Hugging Face — License ↗2026-05-27已核实
支持语言Hugging Face — Languages ↗2026-05-27已核实
推荐温度参数Hugging Face — Recommended settings ↗2026-05-27已核实
显存需求(FP8)Hugging Face — Deployability ↗2026-05-27已核实
AIME 2025Hugging Face — Reasoning benchmarks ↗2026-05-27已核实
AIME 2024Hugging Face — Reasoning benchmarks ↗2026-05-27已核实
GPQA DiamondHugging Face — Reasoning benchmarks ↗2026-05-27已核实
LiveCodeBenchHugging Face — Reasoning benchmarks ↗2026-05-27已核实
Arena HardHugging Face — Instruct benchmarks ↗2026-05-27已核实
WildBenchHugging Face — Instruct benchmarks ↗2026-05-27已核实
MATH Maj@1Hugging Face — Instruct benchmarks ↗2026-05-27已核实
MM MTBenchHugging Face — Instruct benchmarks ↗2026-05-27已核实
Multilingual MMLUHugging Face — Base benchmarks ↗2026-05-27已核实
MMLU (5-shot)Hugging Face — Base benchmarks ↗2026-05-27已核实
Mistral 3 系列发布——从 3B 到 675BMistral AI Blog ↗2026-05-27已核实
指令版和推理版有什么区别?Hugging Face — Model variants ↗2026-05-27待核实
Ministral 3 3B 能在笔记本电脑上运行吗?Hugging Face — Deployability ↗2026-05-27待核实
Ministral 3 3B 支持图像输入吗?Hugging Face — Key Features ↗2026-05-27待核实
Ministral 3 3B 使用什么许可证?Hugging Face — License ↗2026-05-27待核实
帮助与联系