Skip to main content
Swytcho is designed to fit into your existing workflow without friction. Whether you’re building with the OpenAI SDK, orchestrating AI pipelines with LangChain or LlamaIndex, or reacting to model events in real time with webhooks, Swytcho provides a consistent, OpenAI-compatible interface that plugs in wherever you need it.

OpenAI Compatibility

Use Swytcho as a drop-in replacement for the OpenAI SDK by changing one line of configuration.

Webhooks

Receive real-time event notifications from Swytcho — including completions, failures, and usage alerts.

LangChain

Connect Swytcho to LangChain chains, agents, and memory modules using the familiar ChatOpenAI interface.

LlamaIndex

Use Swytcho as the LLM backend for LlamaIndex queries, indexes, and retrieval-augmented generation pipelines.

LangChain

LangChain’s ChatOpenAI class accepts a base_url parameter, so you can route all LangChain calls through Swytcho without changing any other part of your chain.
Python
Install the required package with pip install langchain-openai if you haven’t already.

LlamaIndex

LlamaIndex uses OpenAI-compatible LLMs through its OpenAI class. Point it at Swytcho’s base URL to use any Swytcho model inside your LlamaIndex pipelines.
Python
Swytcho is compatible with any library or tool that supports a custom OpenAI base URL. If a framework has a base_url, api_base, or baseURL parameter, you can point it at https://api.swytcho.com/v1 and it will work out of the box.