LangChain
title: LangChain subtitle: Using OpenRouter with LangChain headline: ‘LangChain Integration | OpenRouter SDK Support’ canonical-url: https://openrouter.ai/docs/guides/community/langchain og:site_name: OpenRouter Documentation og:title: ‘LangChain Integration - OpenRouter SDK Support’ og:description: ‘Integrate OpenRouter using LangChain framework. Complete guide for LangChain integration with OpenRouter for Python and JavaScript.’ og:image: https://openrouter.ai/dynamic-og?title=LangChain&description=LangChain%20Integration og:image:width: 1200 og:image:height: 630 twitter:card: summary_large_image twitter:site: ‘@OpenRouterAI’ noindex: false nofollow: false
Using LangChain
LangChain provides a standard interface for working with chat models. You can use OpenRouter with LangChain by setting the base_url parameter to point to OpenRouter’s API. For more details on LangChain’s model interface, see the LangChain Models documentation.
Resources:
- Using LangChain for Python: github
- Using LangChain.js: github
- Using Streamlit: github