Skip to content

Deci Lab Client

Getting an API token from the platform

Go to https://console.deci.ai and log into your account.

login_screen.png

Open the Settings page:

settings_menu.png

Click on the copy button to copy the token to your clipboard:

token_copy.png

Run the following snippet in order to log in with the client:

from deci_lab_client.client import DeciPlatformClient

client = DeciPlatformClient()
client.login(token="<YOUR TOKEN HERE>")

# You can now use the client to send requests to our API
model = client.get_model(name="My Model", version="1.1")
...