System requirements
Before installing the SDK, ensure your environment meets these requirements:Node.jsVersion 18 or higher
TypeScriptVersion 5.0+ recommended (optional)
While TypeScript is recommended for the best developer experience, the SDK works perfectly with plain JavaScript.
Install the SDK
Choose your preferred package manager to install@avala-ai/sdk:
Verify installation
Once installed, verify that the SDK is working by importing it:Module formats
The SDK ships with multiple build formats to ensure compatibility:| Format | Entry Point | Use Case |
|---|---|---|
| ESM | dist/index.js | Modern Node.js projects using import |
| CommonJS | dist/index.cjs | Legacy Node.js projects using require |
| TypeScript | dist/index.d.ts | Type definitions for TypeScript projects |
Your bundler or Node.js runtime will automatically select the correct format based on your project configuration.
TypeScript configuration
If you’re using TypeScript, ensure yourtsconfig.json includes these recommended settings:
tsconfig.json
Next steps
Set up authentication
Configure your API key to start making requests. See Authentication.
Make your first API call
Follow the Quick start guide to list datasets and create exports.
Explore the API
Browse the API Reference to discover all available resources and methods.