Skip to content

Installation

Terminal window
bun add llmist

Set an API key for at least one provider:

Terminal window
export OPENAI_API_KEY="sk-..."
# or
export ANTHROPIC_API_KEY="sk-ant-..."
# or
export GEMINI_API_KEY="..."
import { LLMist } from 'llmist';
const answer = await LLMist.complete('Hello!');
console.log(answer);

llmist is written in TypeScript with full type definitions included. Recommended tsconfig.json:

{
"compilerOptions": {
"strict": true,
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler"
}
}