指南
關於接入、價格和整合的實用文章。
Mistral API 與 OpenRouter:你該選哪一個?直接供應商 API 還是 OpenRouter 這類聚合平台?誠實檢視控制權、計費與內容政策,以及單模型無審查 API 的適用情境。
Mistral API 定價與每 1M token 固定 $0.15 的替代方案如何解讀 Mistral API 定價,以及預付無審查 API 如何對輸入 token 收取每百萬 $0.15、輸出每百萬 $0.50 的費用,並附成本計算範例。
Mistral API Python:使用 OpenAI 相容端點使用 openai SDK 從 Python 呼叫託管的無審查模型:安裝、串流輸出、JSON 模式、函式呼叫、429 處理及從供應商 SDK 遷移。
GLM API 金鑰:成本分析與無審查替代方案GLM API 金鑰管理,提供無審查 LLM API 服務。採預付制按量付費,立即查看金鑰成本與限制。無審查 LLM API,預付 token 計費
Mistral API:獨立指南與即插即用替代方案
大型 LLM 供應商的透明預付替代方案。透過我們的 OpenAI 相容 API 存取無審查模型,具有精確的 token 計費且無隱藏訂閱。
- 每 1M 輸入 token $0.15
- 預付額度,無訂閱
- 加密貨幣儲值,即時金鑰
一個請求即可試用
curl https://api.mistralapi.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.mistralapi.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.mistralapi.cc/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);- 每 1M 輸入 token
- $0.15
- 輸出 token / 1M
- $0.50
- token 上下文
- 100,000
- 試用額度
- $0.50
- 每分鐘請求數
- 300