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 qynio's base URL and an qynio 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 qynio

LangChain reaches qynio over the OpenAI-compatible endpoint. Point it at https://api.qyn.io/v3/compat with your qynio 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.qyn.io/v3/compat",
api_key=os.environ["QYN_API_KEY"],
)

More apps on qynio

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