Getting Started · JavaScript
JavaScript Quickstart
Get started with XALEN API in JavaScript/TypeScript. Install the SDK, configure authentication, and make your first inference call.
1. Install
npm install xalen-sdk
2. Code
#89B4FA;">import XALEN from 'xalen-sdk';
#89B4FA;">const client = new XALEN({ apiKey: 'xln_test_YOUR_KEY' });
#89B4FA;">const response = await client.chat.completions.create({
model: 'vedika-standard',
messages: [{ role: 'user', content: 'Analyze Gajakesari Yoga' }]
});
console.log(response.choices[0].message.content);
Related Tutorials
Python Quickstart Getting Started · Python
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