X25: Autonomous LLM Routing
X25 routes every LLM call to the cheapest model that meets your quality bar. It learns per project using Thompson Sampling, judges quality automatically, escalates when needed, and trains a custom model on your call history at Stage 4.
5-minute setup
-
Install the SDK
pip install x25-sdkbash -
Generate your API key
Login into your dashboard with appropriate credentials after creating an account. Go to the hamburger menu on the top navigation bar and click on Generate API Key. Check your organisation name, then click Proceed. You can now copy your retrieved API key to authenticate your SDK calls.
-
Route your first call
from x25 import X25 agent = X25( api_key="sk-x25-a1b2c3d4...", prompt="your-prompt", org="my-research-lab") result = agent.complete() print(result)python -
Run the example script
Alternatively, download our ready-to-run example script: Download example.py
Before running, make sure to change the
api_key,promptandorginside the script.Execute the script from your terminal:
python example.pybash