Skip to content


Train, deploy, optimize and serve your models using Deci's platform, in your cloud or on premise.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 4.0.0
  • Package version: 4.29.1b31922
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen


Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+
(you may need to run pip with root permission: sudo pip install git+

Then import the package:

import deci_lab_client


Install via Setuptools.

python install --user
(or sudo python install to install the package for all users)

Then import the package:

import deci_lab_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import deci_lab_client
from import ApiException
from pprint import pprint

configuration = deci_lab_client.Configuration()
# Configure OAuth2 access token for authorization: OAuth2PasswordBearer
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Defining host is optional and default to http://localhost = "http://localhost"

# Defining host is optional and default to http://localhost = "http://localhost"
# Enter a context with an instance of the API client
with deci_lab_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = deci_lab_client.PlatformApi(api_client)
    type = deci_lab_client.UserEventType() # UserEventType | The type of the event to add.
user_event_form = deci_lab_client.UserEventForm() # UserEventForm | 

        # Add Event
        api_response = api_instance.add_event(type, user_event_form)
    except ApiException as e:
        print("Exception when calling PlatformApi->add_event: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
PlatformApi add_event POST /events/{type} Add Event
PlatformApi add_model POST /model-repository/models Add Model
PlatformApi add_model_v2 POST /model-repository/v2/models Add Model V2
PlatformApi add_optimized_model PUT /model-repository/models/{model_id}/optimized Add Optimized Model
PlatformApi assert_model_arguments POST /model-repository/models/verify Assert Model Arguments Before Upload
PlatformApi autonac_model POST /model-repository/models/{model_id}/autonac Autonac Model
PlatformApi buy_model POST /events/buy-model Buy Model
PlatformApi cancel_colleague_invite DELETE /invites/ Cancel Colleague Invite
PlatformApi compare_models_in_model_zoo GET /events/compare-models-in-model-zoo Compare Models In Model Zoo
PlatformApi create_workspace POST /workspaces/ Create Workspace
PlatformApi delete_conversion_parameters DELETE /conversion/{model_id} Delete Conversion Parameters
PlatformApi delete_model DELETE /model-repository/models/{model_id} Delete Model
PlatformApi delete_workspace DELETE /workspaces/{id} Delete Workspace
PlatformApi deploy_model_to_infery GET /model-repository/models/{model_id}/deploy/infery Deploy Model To Infery
PlatformApi edit_model PUT /model-repository/models/{model_id} Edit Model
PlatformApi edit_user PUT /users/{user_id} Edit User
PlatformApi get_all_accuracy_metrics GET /global-configuration/accuracy-metrics Get All Accuracy Metrics
PlatformApi get_all_architectures GET /global-configuration/architectures Get All Architecture
PlatformApi get_all_batch_sizes GET /global-configuration/batch-sizes Get All Batch Sizes
PlatformApi get_all_dp_tasks GET /global-configuration/deep-learning-tasks Get All Dp Tasks
PlatformApi get_all_feature_flags GET /global-configuration/feature-flags Get All Feature Flags
PlatformApi get_all_frameworks GET /global-configuration/frameworks Get All Frameworks
PlatformApi get_all_hardware_types GET /global-configuration/hardware-types Get All Hardware Types
PlatformApi get_all_hardwares GET /global-configuration/hardware Get All Hardwares
PlatformApi get_all_models GET /model-repository/models Get Models
PlatformApi get_all_performance_metrics GET /global-configuration/performance-metrics Get All Performance Metrics
PlatformApi get_all_quantization_levels GET /global-configuration/quantization-levels Get All Quantization Levels
PlatformApi get_all_users GET /users/ Get All Users
PlatformApi get_all_workspaces GET /workspaces/ Get Workspaces
PlatformApi get_api_version GET /version Request Version
PlatformApi get_architectures GET /architectures Get Architectures
PlatformApi get_autonac_model_file_link GET /autonac/{model_name}/{file_name} Get Model File Download Link
PlatformApi get_benchmark_request GET /model-repository/models/benchmark/{benchmark_request_id} Get Benchmark Request
PlatformApi get_company GET /companies/ Get Company
PlatformApi get_company_stats GET /companies/stats Get Company Stats
PlatformApi get_conversion_parameters GET /conversion/{model_id} Get Conversion Parameters
PlatformApi get_events GET /events/ Get Events
PlatformApi get_experiment_upload_url GET /experiments/{experiment_id}/upload_url Get Experiment Upload Url
PlatformApi get_experiments_counter GET /experiments/counter Get Experiments Counter
PlatformApi get_invite_by_token GET /invites/{token} Get Invite By Token
PlatformApi get_invites GET /invites/ Get Invites
PlatformApi get_model_by_id GET /model-repository/models/{model_id} Get Model By Id
PlatformApi get_model_by_name GET /model-repository/models/name/{name} Get Model By Name
PlatformApi get_model_signed_url_for_download GET /model-repository/models/{model_id}/download-url Get Model Signed Url For Download
PlatformApi get_model_signed_url_for_upload GET /model-repository/models/{model_name}/upload-url Get Model Signed Url For Upload
PlatformApi get_model_zoo GET /model-repository/model-zoo Get Model Zoo
PlatformApi get_optimized_models GET /model-repository/models/{model_id}/optimized_models Get Optimized Models
PlatformApi get_snippets_from_template GET /snippets/template/{name} Get Snippets From Template
PlatformApi get_user_activity_by_user_id GET /users/{user_id}/activity Get User Activity By User Id
PlatformApi get_user_by_id GET /users/{user_id} Get User By Id
PlatformApi get_workspace_by_id GET /workspaces/{id} Get Workspace
PlatformApi get_workspace_experiments GET /experiments/ Get Workspace Experiments
PlatformApi get_workspace_members GET /workspaces/{workspace_id}/members Get Workspace Members
PlatformApi get_workspace_stats GET /workspaces/stats Get Workspace Stats
PlatformApi gru_model POST /model-repository/models/{model_id}/gru Gru Model
PlatformApi health_check GET /healthz Health
PlatformApi import_public_model POST /model-repository/models/public Import Public Model
PlatformApi invite_colleague_to_join_workspace POST /invites/ Invite Colleague
PlatformApi log POST /support/log Upload Log
PlatformApi login POST /auth/verification_token Get Access Token
PlatformApi optimize_model POST /model-repository/models/{model_id}/optimize Optimize Model
PlatformApi quota_increase POST /events/quota-increase Request Quota Increase
PlatformApi register_user_architecture POST /architectures/user Register User Architecture
PlatformApi request_model POST /events/request-model Request Model
PlatformApi request_public_architecture GET /events/request-public-architecture Request Public Architecture
PlatformApi request_support POST /events/support Request Support
PlatformApi reset_password POST /auth/reset-password Reset Password
PlatformApi send_model_benchmark_request POST /model-repository/models/{model_id}/benchmark Benchmark Model
PlatformApi set_conversion_parameters POST /conversion/{model_id} Set Conversion Parameters
PlatformApi set_password POST /auth/set-password Set Password
PlatformApi sign_in_with_provider POST /auth/sign_in/{provider} Auth With Provider
PlatformApi sign_up_user POST /users/ Sign Up User
PlatformApi start_experiment POST /experiments/ Register Experiment
PlatformApi switch_to_workspace GET /workspaces/{workspace_id}/switch Switch Workspace
PlatformApi update_user_activity PUT /users/{user_id}/activity Update User Activity
PlatformApi update_workspace PATCH /workspaces/{id} Update Workspace
PlatformApi upgrade_plan POST /events/upgrade Request Platform Upgrade
PlatformApi upload_log_url GET /support/upload-log-url Get Upload Support Log Url
PlatformApi validate_model_name POST /model-repository/models/verify/name Validate Model Name
PlatformApi verify_email POST /auth/email/verify/{token_key} Verify Email Token

Documentation For Models

Documentation For Authorization


  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A