it's free*.ai

llamafile

One file that is both the model and the runtime. Download, chmod +x, run. No install at all.

llamafile is Mozilla’s trick: one file that is both the GGUF weights and the runtime (llama.cpp plus Cosmopolitan Libc). Download, chmod +x, run. No install, no Python, no Docker.

`--server` exposes OpenAI-compat on port 8080. Context is -c at launch. The right tool when you want to hand someone a model as an executable.

Max context
Set with -c at launch
Free tier
Unlimited and private
Requirement
Nothing — no account

Endpoint

Base URLhttp://localhost:8080/v1
Rate limitNone — it is your machine

Code examples

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: 'LLaMA_CPP',
  messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})

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

Worth knowing

Models you get for free2