LangChain

Using OpenRouter with LangChain

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: