Overview
The OpenAI TypeScript and JavaScript SDK is the standard tool for calling large language models in the JavaScript ecosystem. Integrating with Eden AI makes it even easier: simply change one line (baseURL), and your existing code will automatically route through Eden AI’s gateway, giving you access to GPT-4, Claude, Gemini, Llama, Cohere Command, and hundreds of other models.
Whether you're working with Node.js, Express, Next.js, or just regular browser JS, you won’t need to change your types, streaming logic, or error handling, just let Eden AI does the routing.
How it works
To get started, create an account on Eden AI and connect it to your TypeScript or JavaScript project. With this integration you can:
- Access models from OpenAI, Anthropic, Google and more without changing your existing code structure
- Stream responses in real time, ideal for building chat interfaces and interactive tools
- Use it with any JavaScript framework ) Node.js, Express, Next.js or plain browser scripts
- Monitor usage and spending across all providers from a single Eden AI dashboard

