Show HN: Integrate 60 LLMs with one TypeScript SDK (docs.tokenjs.ai)

3 points by pdxpate ↗ HN
I'm excited to introduce Token.js, a free and open source TypeScript SDK that allows you to integrate with over 60 LLMs using OpenAI's format, without the need for a proxy server.

Features:

- Use OpenAI's format to call 60+ LLMs from 9 providers (Anthropic, AWS Bedrock, Cohere, Gemini, Mistral, etc).

- Supports function calls, JSON outputs, image inputs, streaming, and more.

- Runs completely on the client side. No proxy server needed.

- Free and open source under the MIT License.

We built Token.js because we wanted a simple abstraction to try out a lot of different LLMs without rewriting our code, routing our API calls through a proxy server unnecessarily, or locking ourselves into a single LLM provider.

Check out our docs and let us know what you think!

https://docs.tokenjs.ai/

1 comment

[ 0.29 ms ] story [ 239 ms ] thread
Hey HN! I'm Sam, one of the creators of Token.js. We're really excited to show you all what we've been working on! Happy to answer any questions :)