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

OpenAILink

Guides

  • OpenAILink

Tech Notes

  • Configuring OpenAI Credentials

Symbols

  • OpenAIChatMessageObject
  • OpenAIChatObject
  • OpenAICompletion
  • OpenAICompletionObject
  • OpenAICreateImage
  • OpenAIEmbedding
  • $OpenAIKey
  • OpenAIModels
  • $OpenAIKey
  • $OpenAIUser
ChristopherWolfram`OpenAILink`
$OpenAIKey
​
$OpenAIKey
is a settable global variable used as the default OpenAI API key.
​
Details and Options

Examples  
(2)
Basic Examples  
(2)
Get the current
$OpenAIKey
:
In[1]:=
$OpenAIKey
Out[1]=
sk-m7......xG
If the
$OpenAIKey
is not set correctly, calls to OpenAI API functions will not work without the
OpenAIKey
option.
​
The
$OpenAIKey
can be persistently set across sessions with:
In[1]:=
SystemCredential["OPENAI_API_KEY"]="<YOUR API KEY>"
SeeAlso
SystemCredential
 
▪
OpenAIKey
TechNotes
▪
Configuring OpenAI Credentials
RelatedGuides
▪
OpenAILink
RelatedLinks
https://beta.openai.com/account/api-keys
""

© 2025 Wolfram. All rights reserved.

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