Blaxel features SDKs in three languages: Python, TypeScript, and Go. Check out down below the installation instructions, as well as documentation on how the SDK authenticates to Blaxel.Documentation Index
Fetch the complete documentation index at: https://docs.blaxel.ai/llms.txt
Use this file to discover all available pages before exploring further.
Install
TypeScript SDK
Install the TypeScript SDK.
Python SDK
Install the Python SDK.
Go SDK
Install the Go SDK.
Prerequisites
To use any Blaxel SDK, you need a Blaxel account and the following environment variables:| Variable | Description |
|---|---|
BL_WORKSPACE | Your Blaxel workspace name |
BL_API_KEY | Your Blaxel API key |
app.blaxel.ai/{workspace}).
Set them as environment variables:
.env file at the root of your project.
How authentication works
The Blaxel SDK does not accept credentials as constructor arguments. Credentials must be supplied through one of the following sources, checked in priority order:- when running on Blaxel, authentication is handled automatically
BL_WORKSPACEandBL_API_KEYenvironment variables or.envfile (see this page for other authentication options)- configuration file created locally when you log in through Blaxel CLI (or deploy on Blaxel)
Data collection and privacy
Read more about the data collected by the Blaxel SDKs.Complete SDK reference
Visit the GitHub pages below for detailed documentation on each SDK’s commands and classes.TypeScript SDK
Open the GitHub repository for Blaxel SDK in TypeScript.
Python SDK
Open the GitHub repository for Blaxel SDK in Python.
Go SDK
Open the GitHub repository for Blaxel SDK in Go.
