TensaHub › OpenRouter

Mistral: Mistral Small 3.2 24B

OpenRouter 提供的 mistralai/mistral-small-3.2-24b-instruct 模型 API,$0.075 / $0.2 每百万 token,上下文 256,000 token。提供 curl、Python、JavaScript 示例及在线测试。

在目录中测试并评分

Mistral-Small-3.2-24B-Instruct-2506 is an updated 24B parameter model from Mistral optimized for instruction following, repetition reduction, and improved function calling. Compared to the 3.1 release, version 3.2 significantly improves accuracy on...

类型
模型
服务商
OpenRouter
模型 ID
mistralai/mistral-small-3.2-24b-instruct
价格
付费
输入 / 输出价格
$0.075 / $0.2 每百万 token
无需密钥访问
否
密钥环境变量
OPENROUTER_API_KEY
Base URL(兼容 OpenAI)
https://openrouter.ai/api/v1
上下文
256,000 token
输入
图像, 文本
功能
JSON 输出, 工具调用
开发者评分
暂无评分
文档
https://openrouter.ai/mistralai/mistral-small-3.2-24b-instruct

代码示例

cURL

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{"model":"mistralai/mistral-small-3.2-24b-instruct","messages":[{"role":"user","content":"你好,请用一句话介绍你自己。"}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
    model="mistralai/mistral-small-3.2-24b-instruct",
    messages=[{"role": "user", "content": "你好,请用一句话介绍你自己。"}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://openrouter.ai/api/v1', apiKey: process.env.OPENROUTER_API_KEY })
const r = await client.chat.completions.create({
  model: 'mistralai/mistral-small-3.2-24b-instruct',
  messages: [{ role: 'user', content: '你好,请用一句话介绍你自己。' }],
})
console.log(r.choices[0].message.content)

生成集成代码 →

热门搜索

常见问题

Mistral: Mistral Small 3.2 24B API 免费吗?

否:Mistral: Mistral Small 3.2 24B 是付费 API($0.075 / $0.2 每百万 token)。

如何在代码中调用 Mistral: Mistral Small 3.2 24B?

Mistral: Mistral Small 3.2 24B 在 https://openrouter.ai/api/v1 提供兼容 OpenAI 的 API:使用任意 OpenAI SDK(Python、JavaScript 等)并设置该基础 URL 即可。 模型标识:mistralai/mistral-small-3.2-24b-instruct。 开发者工具箱中提供了即用代码(流式输出、JSON、重试)。

Mistral: Mistral Small 3.2 24B 的上下文窗口有多大?

Mistral: Mistral Small 3.2 24B 最多支持 256,000 个令牌的上下文(提示词和历史记录)。

Mistral: Mistral Small 3.2 24B 有哪些替代方案?

目录中的类似 API:Mistral-Large-4-1T-A52B · Mistral, Mistral: Pixtral Large 2502, Mistral: Mistral Large 4, Mistral: Mistral Medium 3.5, Mistral: Mistral Medium 3.5 (batch)。

替代方案