Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XALEN Python SDK

The official Python SDK for the XALEN AI API. Drop-in replacement for the OpenAI SDK — just change the base URL.

Installation

pip install xalen

Quick Start

from 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)

Async Usage

from xalen import AsyncXALEN

client = AsyncXALEN()

response = await client.chat.completions.create(
    model="vedika-fast",
    messages=[{"role": "user", "content": "Analyze my birth chart"}]
)

Environment Variable

Set XALEN_API_KEY to avoid passing the key explicitly:

export XALEN_API_KEY=xln_live_your_key_here

API Base URL

Default: https://api.xalen.io/v1

Documentation

Full API docs: xalen.io/docs

License

MIT

About

Official XALEN Python SDK — pip install xalen

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages