LangChain logo

LangChain

by LangChainFramework / SDKlangchain.com

LangChain composes models, tools, memory and retrieval into chains and agents in Python and TypeScript. Give its OpenAI chat model Opper's base URL and an Opper key, and everything downstream of the model, including the tools, the retrievers and the agent loop, stays exactly as you wrote it, while the model itself becomes any of 700+ on one key.

Build with LangChain on Opper

LangChain reaches Opper over the OpenAI-compatible endpoint. Point it at https://api.opper.ai/v3/compat with your Opper key and pick a model.

Get your API key

In your code

import os
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="anthropic/claude-fable-5",
base_url="https://api.opper.ai/v3/compat",
api_key=os.environ["OPPER_API_KEY"],
)

More apps on Opper

Build with LangChain on any model

One key, 700+ models, a choice of region, and zero data retention. Switch the model behind your app without changing your workflow.

Get startedView Documentation