Framework integrations
KairosRoute speaks OpenAI. Every framework that accepts a base URL works — point it at us, pass model="auto", done.
Install
pip install langchain-openai
Minimal example
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
base_url="https://api.kairosroute.com/v1",
api_key="kr-your-key",
model="auto", # router picks the cheapest model that clears the quality bar
)
print(llm.invoke("Summarise this thread.").content)Full examples, streaming, tool use, and end-to-end agent graphs live in kairosroute/examples.
Don't see your framework?
If it supports the OpenAI API shape, it works. Set OPENAI_API_BASE=https://api.kairosroute.com/v1 and OPENAI_API_KEY=kr-your-key. The API reference covers every parameter and header.