Create an API Key
After registering and signing in, create an access token (API Key) in the console.
Steps
- Sign in to the Smartx AI console.
- Open Token Management in the console (usually
/console/token). - Click Add Token.
- Set the token name, quota, expiration, model limits, IP restrictions, or other fields as needed. Available fields depend on the current console version.
- Save and copy the API Key immediately. For security, the full Key may only be shown once after creation.
💡 Tip
Leave model and IP restrictions at their defaults when you do not need them. Before configuring a client, confirm that the token's user group and permissions include the model you want to call.
Security recommendations
🔐 Security reminder
- Do not share your Key
- Do not commit it to a code repository
- Do not display it publicly
- Mask the Key when asking for configuration help
- Store it in environment variables or a configuration file
- Rotate Keys regularly
Save the Key
Save your Key immediately after creation:
bash
# Example Key (replace with your actual Key)
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1
2
2
Next Steps
- Modify token settings — Adjust token parameters
- Configure environment variables — Use the Key in your tools
