|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.SaveKey |
Top |
MiniRobotLanguage (MRL)
AIC.SaveKey
Save API key to file
Intention
The AIC.SaveKey command saves the current API key to a file for later use. This allows you to persist keys securely and reload them with AIC.SetKey.
Syntax
AIC.SaveKey|$$FilePath[|$$RetVar]
P1 - $$FilePath - Path to save the key file
P2 - $$RetVar (optional) - Returns success/fail
Example
' Save key to file
AIC.SetKey|sk-your-api-key
AIC.SaveKey|C:\Config\OpenAI.key|$$Result
' Load key later
AIC.SetKey|File|C:\Config\OpenAI.key
Security Note
Store key files in a secure location. Consider using encryption or file permissions to protect your API keys.
Related Commands
- AIC.SetKey - Load API key