Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

PaLMLink

Guides

  • PaLMLink

Tech Notes

  • Configuring PaLM API Credentials

Symbols

  • ConformResponse
  • PaLMEmbedText
  • PaLMGeneratedMessageObject
  • PaLMGeneratedTextObject
  • PaLMGenerateMessage
  • PaLMGenerateText
  • PaLMModels
  • PaLMRequest
  • $PaLMAPIKey
  • $PaLMAPIUser
Configuring PaLM API Credentials
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 https://developers.generativeai.google/products/palm when logged in.
In order to find the API key, PaLMLink first checks
SystemCredential
["PaLMAPIKey"]
. If that is not set, it checks
SystemCredential
["PALM_API_KEY"]
. 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.
Evaluate $PaLMAPIKey to check if the API key is set
In[24]:=
$PaLMAPIKey
Out[24]=
AI...I
If the API key is not set, it can be set for the current session:
$PaLMAPIKey
="<YOUR API KEY>";
Alternatively, it can be set persistently for future sessions:
SystemCredential["PaLMAPIKey"]="<YOUR API KEY>";
RelatedGuides
▪
PaLMLink
​
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com