The official Python SDK for the XALEN AI API. Drop-in replacement for the OpenAI SDK — just change the base URL.
pip install xalenfrom xalen import XALEN
client = XALEN(api_key="xln_live_your_key_here")
response = client.chat.completions.create(
model="vedika-standard",
messages=[
{"role": "user", "content": "What is Shakata Yoga?"}
]
)
print(response.choices[0].message.content)from xalen import AsyncXALEN
client = AsyncXALEN()
response = await client.chat.completions.create(
model="vedika-fast",
messages=[{"role": "user", "content": "Analyze my birth chart"}]
)Set XALEN_API_KEY to avoid passing the key explicitly:
export XALEN_API_KEY=xln_live_your_key_hereDefault: https://api.xalen.io/v1
Full API docs: xalen.io/docs
MIT