Quick Start
This guide will help you quickly get started with AI-POOL, from registering an account to creating your first API token.
Register an Account
- Visit the AI-POOL platform
- Click the "Register" button in the upper right corner
- Fill in the registration information:
- Phone number
- Password (strong password recommended)
- Complete registration and log in
Account Recharge
Before using AI model services, you need to recharge your account first.
- After logging in, click the "Wallet" or "Recharge" button in the navigation bar
- Select recharge amount:
- Quick selection: ¥10, ¥50, ¥100, ¥500
- Custom amount: ¥10 - ¥10,000 (integers only)
- Click "Recharge Now" to generate a payment QR code
- Scan with Alipay or WeChat to pay
- After successful payment, the balance will be credited in real-time
💡 Tip: For first-time use, it's recommended to recharge a small amount for testing.
Create API Token
API tokens are credentials for calling AI-POOL services. You need to create at least one token to start using the service.
Step 1: Enter Token Management Page
- Log in to the AI-POOL platform
- Click "Token Management" in the left navigation bar
- Click the "Create Token" button in the upper right corner
Step 2: Configure Token Information
In the create token dialog, fill in the following information:
Basic Information
- Token Name: Set an easily identifiable name for the token (e.g., Production Environment, Test Environment, Project A, etc.)
- Token Description (optional): Add detailed description for easier management
Quota Settings
- Usage Quota: Set the maximum available quota for this token
- Leave blank for unlimited
- Set a specific amount to prevent overspending
Validity Period Settings
- Expiration Time (optional): Set the validity period of the token
- Leave blank for permanent validity
- Recommended to set a shorter validity period for test tokens
Model Permissions
- Available Models: Select which AI models this token can access
- Can select one or multiple models
- Recommended to select based on actual needs to avoid unnecessary permissions
Step 3: Save and Get Token
- After confirming the information is correct, click the "Create" button
- After successful token creation, the complete API Key will be displayed
- Important: Please copy and save the API Key immediately. For security reasons, you will not be able to view the complete key again later
- Click the "Copy" button to copy the API Key to clipboard
Step 4: Test Token
After creating the token, you can start using it immediately. Here's a simple call example:
curl https://ai-gate.haozcloud.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Hello, AI-POOL!"
}
]
}'
Replace YOUR_API_KEY with the API Key you just created.
Token Management
View Token List
On the token management page, you can see all created tokens, including:
- Token name and description
- Creation time
- Expiration time
- Usage quota and remaining quota
- Status (enabled/disabled)
- Number of associated models
Edit Token
- Find the token you need to edit in the token list
- Click the "Edit" button in the action column
- Modify token information (name, description, quota, expiration time, model permissions)
- Click "Save" to confirm changes
⚠️ Note: Editing a token does not change the API Key itself, the original API Key remains valid.
Enable/Disable Token
If you need to temporarily disable a token:
- Find the target token in the token list
- Click the status switch to set the token to "Disabled"
- After disabling, API calls using this token will be rejected
- To restore, click the switch again to enable
Delete Token
If you no longer need a token:
- Find the target token in the token list
- Click the "Delete" button in the action column
- Confirm the deletion operation
- After deletion, the API Key will be immediately invalidated
⚠️ Warning: Deleting a token is irreversible. Please ensure no applications are using this token.
Monitor Usage
After creating tokens, it's recommended to regularly check usage:
- View overall usage statistics in "Personal Center"
- View quota consumption for each token in "Token Management"
- View detailed consumption records in "Balance Flow"
- Track each API call in "Audit Log"
Next Steps
Now that you have successfully created your first API token, you can:
Best Practices
Token Naming Convention
- Use meaningful names, such as "Production-Main Service" "Test Environment"
- Create separate tokens for different projects or environments
- Add detailed description information
Security Recommendations
- Do not hardcode API Keys in code
- Use environment variables or configuration files to store API Keys
- Regularly rotate API Keys in production environments
- Set lower quota limits for test tokens
- Delete tokens that are no longer in use promptly
Quota Management
- Set reasonable quota limits for each token
- Regularly check token usage
- Recharge promptly when balance is insufficient
- Use quota limits to prevent accidental overspending
Permission Control
- Follow the principle of least privilege, only grant necessary model access permissions
- Configure different model permissions for tokens with different purposes
- Regularly review token permission configurations