Effect AI SDK
title: Effect AI SDK subtitle: Integrate OpenRouter using the Effect AI SDK headline: ‘Effect AI SDK Integration | OpenRouter SDK Support’ canonical-url: https://openrouter.ai/docs/guides/community/effect-ai-sdk og:site_name: OpenRouter Documentation og:title: ‘Effect AI SDK Integration - OpenRouter SDK Support’ og:description: ‘Integrate OpenRouter using the Effect AI SDK. Complete guide for integrating the Effect AI SDK with OpenRouter.’ og:image: https://openrouter.ai/dynamic-og?title=Effect%20AI%20SDK&description=Effect%20AI%20SDK%20Integration og:image:width: 1200 og:image:height: 630 twitter:card: summary_large_image twitter:site: ‘@OpenRouterAI’ noindex: false nofollow: false
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