Follow these steps to create a token for a specific model through the LatticaAI web console:
Navigate to Model's Token Management
Go to the Token Management section of the specific Model on the dashboard.
Create a New Token
Enter a name for the token for easy identification.
Specify the AI model to which the token will be linked.
Generate
Click Generate to generate the token.
The new token will appear in the list, where you can manage its attributes, status, or assignment.
Copy the Token Value
After the token is generated, the system displays the token value. Copy this token value for future use.
The token is not stored in the system and cannot be retrieved later.
Review and Confirm
Verify all token details.
Click Done to save the token.
Delete if Incorrect
If the token details were entered incorrectly, click Delete to remove the token and start the process again.
You can create tokens directly from the Tokens List page. This process is useful for creating unassigned tokens or managing tokens centrally.
Navigate to the Tokens Page
Log in to the web console and go to the Tokens section.
Click "Add Token"
Click the Add Token button to open the token creation window.
Fill in the token details
Note: The end user cannot use unassigned tokens until they are linked to a model.
Generate the Token
Click Generate Token to create the token.
Copy the Token Value
After the token is generated, the system displays the token value.
Important: Copy this token value for future use. The token is not stored in the system and cannot be retrieved later.
Review and Confirm
Verify all token details.
Click Done to save the token.
Delete if Incorrect
If the token details were entered incorrectly, click Delete to remove the token and start the process again.
# Generate Token
import LatticaManagement
# Authenticate
lattica = LatticaManagement("your_license_from_lattica_console")
# Register a new model...
model_id = lattica.create_model("model_name")
# Generate a token
token_id, token = lattica.generate_query_token(model_id, "token_name")