Effect AI SDK
Integrate OpenRouter using the Effect AI SDK
Effect AI SDK
Integrate OpenRouter using the Effect AI SDK. Complete guide for integrating the Effect AI SDK with OpenRouter.
Effect AI SDK
You can use the Effect AI SDK to integrate OpenRouter with your Effect applications. To get started, install the following packages:
- effect: the Effect core (if not already installed)
- @effect/ai: the core Effect AI SDK abstractions
- @effect/ai-openrouter: the Effect AI provider integration for OpenRouter
- @effect/platform: platform-agnostic abstractions for Effect
Once that’s done you can use the LanguageModel module to define interactions with a large language model via OpenRouter.
TypeScript