Prerequisites
Before using the AiHubMix CLI, you need to:- An AIHubMix account
- Generate an Access Token by clicking “Generate System Access Token” on the AIHubMix Settings page;
- Install the necessary Python dependencies:
The aihubmix_cli.py script can be downloaded here
Features Overview
The AIHubMix CLI offers the following key functionalities:API Endpoint Overview
Retrieve Balance Information
Key Management
Create New Key
Retrieve Key List
Search for Key
Update Key
Delete Key
Retrieve User Key
Model Management
Retrieve User’s Available Models
Output in JSON Format
All CLI commands support outputting results in JSON format, making it easier for programmatic processing:Troubleshooting
If you encounter issues, you can try the following solutions:-
Connection Issues: If the main domain fails to connect, try using an alternative domain:
-
Invalid Access Token: Ensure that the provided access token is a valid key obtained from the AIHubMix website. The format of the access token is usually like
fd***. - Insufficient Permissions: Some operations may require specific permissions, so ensure your account has adequate permissions.
- Request Failure: Check your network connection or try again later.
Notes
- The access token is different from the regular API Key used to access AI models.
- Each user has their own system access token, and the access level is determined by the user’s role (regular user, administrator, or root user).
Last updated: 2026-06-01