LatticaAI Documentation
  • Welcome to LatticaAI
  • Conceptual Guide
  • Architecture Overview
    • Management Client
    • Query Client
  • Platform Workflows
    • Account Management
    • Model Management
    • User Access Management
    • Query Submission
    • Credit Management
    • Worker Management
  • How-To Guides
    • Client Installation
      • How-To: Install Management Client
      • How-To: Install Query Client
    • Model Lifecycle
      • How-To: Deploy AI model
      • How-To: Modify AI Model Settings
    • Access Control
      • How-To: Create User Access Token
      • How-To: Modify User Access Token Setting
      • How-To: Remove Token's Assignment
      • How-To: Assign Token to Model
      • How-To: See List of Tokens
    • Resource Management
      • How-To: Start Worker
      • How-To: Stop Worker
      • How-To: Monitor Worker Performance
    • Secure Query Processing
      • How To: Upload Evaluation Key
      • How-To: Encrypt Input Message
      • How To: Execute Query
      • How-To: Decrypt Output Data
      • How-To: Encrypt, Execute, and Decrypt in One Step
    • Account and Finance Operations
      • How-To: View Payment Transaction History
      • How-To: Update Account Information
      • How-To: View Credit Balance and Add Credit to Your Account
      • How-To: Monitor Balance and Usage
  • Demo Tutorials
    • Image Sharpening with LatticaAI Demo Tutorial
    • Sentiment Analysis with LatticaAI Demo Tutorial
    • Health Analysis with LatticaAI Demo Tutorial
    • Digit Recognition with LatticaAI Demo Tutorial
    • Zooming Into Each Step of Demo Run with LatticaAI flow
Powered by GitBook
On this page
  • Via Token's Attributes Modification (Web Console or Python SDK)
  • Via the Model's Details Management Screen

Was this helpful?

  1. How-To Guides
  2. Access Control

How-To: Assign Token to Model

PreviousHow-To: Remove Token's AssignmentNextHow-To: See List of Tokens

Last updated 3 months ago

Was this helpful?

A User Access Token provides access permission for a specific user to a specific AI model. Tokens can be assigned to a model either during their or later if the token is unassigned. This guide explains how to assign a token to a model using the web console, focusing on assignment from the Model's Details Management Screen

Via Token's Attributes Modification (Web Console or Python SDK)

Tokens can be assigned to models by modifying their attributes. This method allows you to assign tokens from the Tokens Page in the web console or through the Python SDK. For detailed instructions, see: [How-To: ].

Via the Model's Details Management Screen

Follow these steps to assign a token directly from the model's details screen:

1

Navigate to Model's Details Management

Go to the Models section. Find and click the model you want. Then click the button showing the model's token information.

2

Access the Token Tab

In the model's details screen, navigate to the Token tab.

3

Start Typing the Token's Name

Begin typing the name of the unassigned token you want to assign.

4

Select the Required Token

A dropdown list will appear showing unassigned tokens that match the substring you typed.

  • Choose the desired token from the list.

  • If the required token does not exist, you can create a new one using the "Add Token" option.

Unassigned Tokens Only: Only unassigned tokens can be linked to a model. If a token is currently assigned, remove the existing assignment first (see: [How-To: ]).

5

Save the Assignment

Click the Save button to confirm the token assignment. The token will now be linked to the model.

# Assign Token to Model

import LatticaManagement

# Authenticate
lattica = LatticaManagement("your_license_from_lattica_console")

# Get a model_id and a token_id...
model_id = lattica.list_models()[0].model_id
token_id = lattica.list_tokens()[0].token_id

# Assign token to model
lattica.assign_token_to_model(token_id, model_id)

When a token is reassigned from one model to another, a new Evaluation Key (EVK) must be generated for the new model. For instructions, refer to: [].

How-To: Generate Evaluation Key
creation
Modify Token's Parameters
Remove Token's Assignment
Assign Token to a Model