LlamaIndex
LlamaIndex providesOpenAILike for third-party OpenAI-compatible APIs. Use it to connect a LlamaIndex application to Radium.
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 LlamaIndex
2. Set your Radium credentials
3. Create main.py
LlamaIndex calls the endpoint setting
api_base, not base_url.4. Run it
Choose a model
Migrate an existing LlamaIndex app
Replace its current LLM object:llm to the existing index, query engine, workflow, or agent. A RAG application still needs a separate embedding model; do not use these chat model IDs as embedding model IDs.
Troubleshooting
Validation
These instructions were verified with Python 3.12.7 and
llama-index-llms-openai-like==0.7.2 on August 20, 2026. You do not need that exact package version.FunctionAgent 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