PaLMLink functions call the PaLM API. As such, they need access to an PaLM API key from the user's account. These can be generated from the account page on the PaLM website, or from
. Finally, if that is not set, it checks for the "PALM_API_KEY" environment variable. If Wolfram Language was not launched from a command line, it may not have access to many environment variables set in ~/.bash_profile, etc.
Remark: This API key handling design follows that of