Skip to main content

LangChain

LangChain’s ChatOpenAI class works with OpenAI-compatible APIs. Point it at Radium and continue using normal LangChain messages, chains, and agents.

Before you start

You need Python 3.10 or newer, a Radium API key, and a terminal or PowerShell window.

1. Create a project and install LangChain

2. Set your Radium credentials

3. Create main.py

4. Run it

Expected output:

Choose a model

Use any validated Radium model:

Migrate an existing LangChain app

Replace the model initialization used by your chain or agent:
Your prompts, chains, tools, and message objects can remain unchanged. This integration uses Chat Completions, so do not enable use_responses_api.

Troubleshooting

Validation

These instructions were verified with Python 3.12.7 and langchain-openai==1.6.0 on August 20, 2026. You do not need that exact package version.
Text generation and bound-tool calling passed with hal-1.0, clarke-1.0, and tycho-1.0.

Next steps

API quickstart

Call Radium directly

Tool calling

The tool_use and tool_result contract