samestrin/llm-interface
A simple NPM interface for seamlessly interacting with 36 Large Language Model (LLM) providers, including OpenAI, Anthropic, Google Gemini, Cohere, Hugging Face Inference, NVIDIA AI, Mistral AI, AI21 Studio, LLaMA.CPP, and Ollama, and hundreds of models.
This is a tool for developers building applications that use large language models (LLMs). It helps them connect their Node.js applications to many different LLM providers like OpenAI, Anthropic, and Google Gemini with a single, consistent interface. Developers input their prompts and desired LLM provider, and the tool returns the LLM's response, handling communication and potential errors in between. This is designed for software developers and engineers who are integrating AI into their products.
120 stars. Used by 1 other package. Available on npm.
Use this if you are a Node.js developer building an application that needs to interact with multiple Large Language Model providers and you want a unified, simplified way to manage those connections.
Not ideal if you are not a developer, or if you only need to use a single LLM provider and prefer to use their native SDK.
Stars
120
Forks
13
Language
JavaScript
License
MIT
Category
Last pushed
Mar 08, 2026
Commits (30d)
0
Dependencies
5
Reverse dependents
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/samestrin/llm-interface"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related tools
lmstudio-ai/lmstudio-js
LM Studio TypeScript SDK
lmstudio-ai/lms
LM Studio CLI
nbonamy/multi-llm-ts
A Typescript library to use LLM providers APIs in a unified way.
token-js/token.js
Integrate 200+ LLMs with one TypeScript SDK using OpenAI's format.
gregreindel/llm-exe
A package that provides simplified base components to make building and maintaining LLM-powered...