LM Studio
LM Studio 是給不想碰終端機的人準備的桌面應用:瀏覽 GGUF 和 MLX、下載、對話,然後打開 Developer 分頁,在 localhost:1234/v1 上啟動本機伺服器。
LM Studio 是給不想碰終端機的人準備的桌面應用:瀏覽 GGUF 和 MLX、下載、對話,然後打開 Developer 分頁,在 localhost:1234/v1 上啟動本機伺服器。
待遇和 Ollama 一樣 —— 無限、私有、天花板是你的記憶體 —— 還帶圖形介面和內建對話。在你的編輯器呼叫之前,先把伺服器啟動。
- 最大上下文
- Whatever your RAM allows
- 免費額度
- 無限且私密
- 註冊要求
- 什麼都不用 —— 無帳號
端點
基底網址
http://localhost:1234/v1速率限制
None — it is your machine- OpenAI 相容
- 文字
- 視覺
程式碼範例
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'http://localhost:1234/v1',
apiKey: 'not-needed'
})
const response = await client.chat.completions.create({
model: 'qwen3-8b',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaifrom openai import OpenAI
client = OpenAI(
base_url="http://localhost:1234/v1",
api_key="not-needed",
)
response = client.chat.completions.create(
model="qwen3-8b",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl http://localhost:1234/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-8b",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'值得注意
- 呼叫之前,先在 Developer 分頁裡啟動本機伺服器。
你能免費使用的模型3
- Qwen 3
qwen3 - GPT-OSS 120B
gpt-oss-120b - Mixtral 8x7B
open-mixtral-8x7b