token-js/token.js
Integrate 200+ LLMs with one TypeScript SDK using OpenAI's format.
This is a TypeScript SDK that helps developers integrate their applications with over 200 large language models (LLMs) from various providers, all using a consistent OpenAI-like format. It allows you to send text or image prompts to an LLM and receive generated text, JSON outputs, or even streaming responses. Developers who build applications that need to leverage multiple LLMs will find this useful.
304 stars. Used by 1 other package. No commits in the last 6 months. Available on npm.
Use this if you are a developer building an application in TypeScript and need to easily switch between or combine different LLMs without rewriting your integration code for each one.
Not ideal if you are not a developer, or if your application only needs to interact with a single LLM provider and you prefer to use that provider's native SDK.
Stars
304
Forks
42
Language
TypeScript
License
MIT
Category
Last pushed
Apr 21, 2025
Commits (30d)
0
Dependencies
9
Reverse dependents
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/token-js/token.js"
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
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.
gregreindel/llm-exe
A package that provides simplified base components to make building and maintaining LLM-powered...