With our SDK, you can perform nearly every action available in the AryaXAI GUI.
To get started, you'll need an invitation to sign up. If you haven't received one yet, please reach out to our team at [email] with your request.
Once these steps are completed, a confirmation of account verification is sent to your inbox, through which your organization can be accessed.
Prerequisite:
- Sign up and log in to AryaXAI using the steps mentioned above.
- After logging in, generate an Access Token for your user account. You can find this option in the profile dropdown menu at the top right corner of AryaXAI dashboard.
- Set the environment variables ‘XAI_ACCESS_TOKEN’ with the generated value.
You can create multiple tokens from here.
Once you've completed these steps, you're all set! Now, you can easily log in and start using the AryaXAI SDK:
- Log in by importing the "xai" object instance from the "arya_xai" package.
- Call the "login" method. This method automatically takes the access token value from the "XAI_ACCESS_TOKEN" environment variable and stores the JWT in the object instance. This means that all your future SDK operations will be authorized automatically, making it simple and hassle-free!
AryaXAI SDK installation and usage
Importing & Authenticating SDK
With our SDK, you can perform nearly every action available in the AryaXAI GUI.
To get started, you'll need an invitation to sign up. If you haven't received one yet, please reach out to our team at [email] with your request.
Once these steps are completed, a confirmation of account verification is sent to your inbox, through which your organization can be accessed.
Prerequisite:
- Sign up and log in to AryaXAI using the steps mentioned above.
- After logging in, generate an Access Token for your user account. You can find this option in the profile dropdown menu at the top right corner of AryaXAI dashboard.
- Set the environment variables ‘XAI_ACCESS_TOKEN’ with the generated value.
You can create multiple tokens from here.
Once you've completed these steps, you're all set! Now, you can easily log in and start using the AryaXAI SDK:
- Log in by importing the "xai" object instance from the "arya_xai" package.
- Call the "login" method. This method automatically takes the access token value from the "XAI_ACCESS_TOKEN" environment variable and stores the JWT in the object instance. This means that all your future SDK operations will be authorized automatically, making it simple and hassle-free!