Mistral AI (La Plateforme)Mistral AI
欧洲顶尖大模型独角兽官方平台,Experimentation 开发者模式永久免费提供基础额度,代码与多语言极强。
核心免费额度
永久免费层 1 RPS / 500k TPM永久免费
验证手机号后开启永久免费 Experimentation 模式,支持 Codestral 编程模型。
刷新周期:永久
申领条件与风控要求
手机验证免绑手机
信用卡绑定免绑信用卡
网络环境全球直连
并发限制RPM 无特殊限制 · TPM 无限制
免费可用模型
mistral-large-latestcodestral-latestmistral-small-latest
10 秒快速接入代码
from openai import OpenAI
# 1. 初始化客户端(使用 Mistral AI (La Plateforme) 专属 API 接口地址)
client = OpenAI(
api_key="YOUR_API_KEY", # 填入申请到的 Mistral AI (La Plateforme) API Key
base_url="https://api.mistral.ai/v1"
)
# 2. 发起对话请求(使用官方免费支持的模型)
response = client.chat.completions.create(
model="mistral-large-latest",
messages=[
{"role": "user", "content": "你好!请用一句话介绍你自己。"}
]
)
print(response.choices[0].message.content)curl https://api.mistral.ai/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "mistral-large-latest",
"messages": [{"role": "user", "content": "你好!"}]
}'import OpenAI from "openai";
// 1. 初始化客户端
const openai = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://api.mistral.ai/v1",
});
// 2. 发起请求
const response = await openai.chat.completions.create({
model: "mistral-large-latest",
messages: [{ role: "user", content: "你好!" }],
});
console.log(response.choices[0].message.content);避坑提示与风控防范
- 需要绑定手机号激活 Experimentation 免费层。
