Getting Started · Python
Python Quickstart
Get started with XALEN API in Python. Install the SDK, make your first API call, and build a simple astrology chatbot in under 5 minutes.
1. Install
pip install xalen
2. Code
#89B4FA;">from xalen import XALEN
client = XALEN(api_key=#A6E3A1;">"xln_test_YOUR_KEY")
response = client.chat.completions.create(
model=#A6E3A1;">"vedika-standard",
messages=[{#A6E3A1;">"role": "user", "content": "What yogas are in my chart? DOB: 1990-03-15, 14:30, Mumbai"}]
)
#89B4FA;">print(response.choices[0].message.content)
Related Tutorials
JavaScript Quickstart Getting Started · JavaScript
cURL Quickstart Getting Started · cURL
Streaming Responses API Features · Python
Function Calling API Features · Python
JSON Mode API Features · Python
Batch Processing (50% Off) API Features · Python
200+ AI models. One API. Start building in 5 minutes.
Get API KeyLast updated: 2026-05-21