Getting started

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.

79% cheaper than always-frontier, with equal or better quality on most tasks. Three lines of code. No model selection. No fallback logic. No prompt engineering for routing.

5-minute setup

  1. Install the SDK
    pip install x25-sdk
    bash
  2. 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.

  3. 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
  4. Run the example script

    Alternatively, download our ready-to-run example script: Download example.py

    Before running, make sure to change the api_key, prompt and org inside the script.

    Execute the script from your terminal:

    python example.py
    bash