it's free*.ai

llama.cpp

llama.cpp は他のほぼすべてのローカルツールが包んでいるC++エンジンです。Pythonは不要で、依存はコンパイラ(またはリリースバイナリ)だけ。`llama-server -hf ggml-org/gpt-oss-120b-GGUF` がポート8080でOpenAIを話します。

llama.cpp は他のほぼすべてのローカルツールが包んでいるC++エンジンです。Pythonは不要で、依存はコンパイラ(またはリリースバイナリ)だけ。`llama-server -hf ggml-org/gpt-oss-120b-GGUF` がポート8080でOpenAIを話します。

コンテキストは起動時の -c で指定。CPU、Metal、CUDA、ROCm に対応。金属に寄り添いたいとき、あるいはOllamaやLM Studioの「モデルの周りのアプリ」が厚すぎると感じたときに使いましょう。

最大コンテキスト
Set with -c at launch
無料プラン
無制限・プライベート
条件
不要 — アカウントなし

エンドポイント

ベースURLhttp://localhost:8080/v1
レート制限None — it is your machine

コード例

npm install openai
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'http://localhost:8080/v1',
  apiKey: 'not-needed'
})

const response = await client.chat.completions.create({
  model: 'gpt-oss-120b',
  messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})

console.log(response.choices[0].message.content)

知っておくべきこと

無料で利用できるモデル2