Get Started in 5 Minutes
Learn how to make your first API request and start saving money on LLM costs.
1
Get Your API Key
Sign up for a free account and get your API key from the dashboard.
2
Install the SDK
Choose your language and install the KairosRoute SDK.
Python
pip install kairosrouteTypeScript / Node.js
npm install kairosroutecURL (no installation needed)
curl https://kairosroute.com/v1/chat/completions ...3
Make Your First Request
Use your API key to make a request.
from kairosroute import KairosRoute
client = KairosRoute(api_key="kr_live_...")
response = client.chat.completions.create(
model="kr-auto",
messages=[
{
"role": "user",
"content": "Summarize this article: https://..."
}
]
)
print(response.choices[0].message.content)
print(f"Saved: {response.headers.get('X-KairosRoute-Savings')}")Note: Replace kr_live_... with your actual API key from the dashboard.
4
View Savings in Dashboard
Track your cost savings and routing statistics in real-time.
Next Steps
- →Read the API Reference
Learn about all available endpoints and parameters.
- →Migrate from OpenAI
See how to switch your existing OpenAI code to KairosRoute.
- →Check the FAQ
Find answers to common questions.