zya/litellmjs
JavaScript implementation of LiteLLM.
This is a JavaScript library for developers to interact with large language models (LLMs) from various providers like OpenAI, Cohere, and Anthropic. It provides a standardized way to send text prompts to different models and receive text completions or embeddings, simplifying the integration of AI capabilities into web applications or Node.js services. The end-user persona for this tool is a JavaScript developer building applications that need to leverage LLMs.
146 stars. No commits in the last 6 months.
Use this if you are a JavaScript developer who needs to integrate various large language models into your applications with a consistent API.
Not ideal if you are a non-developer looking for a no-code solution to use LLMs or if you primarily work with Python, as the original LiteLLM library is in Python.
Stars
146
Forks
23
Language
TypeScript
License
MIT
Category
Last pushed
Mar 21, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/zya/litellmjs"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
lmstudio-ai/lmstudio-js
LM Studio TypeScript SDK
lmstudio-ai/lms
LM Studio CLI
samestrin/llm-interface
A simple NPM interface for seamlessly interacting with 36 Large Language Model (LLM) providers,...
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.